diff options
author | Allen Benz <allenbenz@users.noreply.github.com> | 2022-12-25 04:23:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-25 04:23:12 +0000 |
commit | 61a273236ffd1366456cac7040e30972ca65dc2c (patch) | |
tree | 2e98081529e2991f6aa3e0a12e58c05cc8a062bd /modules/ui.py | |
parent | c5bdba2089dc7060be2631bcbc83313b6358cbf2 (diff) | |
download | stable-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.py | 2 |
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
|