aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Benz <allenbenz@users.noreply.github.com>2022-12-24 20:23:12 -0800
committerGitHub <noreply@github.com>2022-12-24 20:23:12 -0800
commit61a273236ffd1366456cac7040e30972ca65dc2c (patch)
tree2e98081529e2991f6aa3e0a12e58c05cc8a062bd
parentc5bdba2089dc7060be2631bcbc83313b6358cbf2 (diff)
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.
-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