aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAllen Benz <allenbenz@users.noreply.github.com>2022-12-25 04:23:12 +0000
committerGitHub <noreply@github.com>2022-12-25 04:23:12 +0000
commit61a273236ffd1366456cac7040e30972ca65dc2c (patch)
tree2e98081529e2991f6aa3e0a12e58c05cc8a062bd /modules/ui.py
parentc5bdba2089dc7060be2631bcbc83313b6358cbf2 (diff)
downloadstable-diffusion-webui-gfx803-61a273236ffd1366456cac7040e30972ca65dc2c.tar.gz
stable-diffusion-webui-gfx803-61a273236ffd1366456cac7040e30972ca65dc2c.tar.bz2
stable-diffusion-webui-gfx803-61a273236ffd1366456cac7040e30972ca65dc2c.zip
Fix clip interrogate from the webui
A recent change made the image RGBA, which makes the clip interrogator unhappy. deepbooru and calling the interrogator from the api already do the conversion so this is the only place that needed it.
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 9dec61d5..7bf5abd9 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -270,7 +270,7 @@ def apply_styles(prompt, prompt_neg, style1_name, style2_name):
def interrogate(image):
- prompt = shared.interrogator.interrogate(image)
+ prompt = shared.interrogator.interrogate(image.convert("RGB"))
return gr_show(True) if prompt is None else prompt