aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2024-01-12 17:23:16 +0000
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2024-01-14 08:57:42 +0000
commitee9d4870811a34533ad5d20ed8aca2ff116fd3b9 (patch)
treea3c401da393a411e18e22ed73bbc14467fa946f8
parentcfb90a938eff6d5d4cfa39f58ebc0ab32ffedfb3 (diff)
downloadstable-diffusion-webui-gfx803-ee9d4870811a34533ad5d20ed8aca2ff116fd3b9.tar.gz
stable-diffusion-webui-gfx803-ee9d4870811a34533ad5d20ed8aca2ff116fd3b9.tar.bz2
stable-diffusion-webui-gfx803-ee9d4870811a34533ad5d20ed8aca2ff116fd3b9.zip
fix gallery black image issue
-rw-r--r--modules/txt2img.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index daf8f51a..7a1a1626 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -93,7 +93,7 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g
new_gallery.extend(processed.images)
else:
fake_image = Image.new(mode="RGB", size=(1, 1))
- fake_image.already_saved_as = image["name"]
+ fake_image.already_saved_as = image["name"].rsplit('?', 1)[0]
new_gallery.append(fake_image)
geninfo["infotexts"][gallery_index] = processed.info