From ee9d4870811a34533ad5d20ed8aca2ff116fd3b9 Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Sat, 13 Jan 2024 02:23:16 +0900 Subject: [PATCH] fix gallery black image issue --- modules/txt2img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/txt2img.py b/modules/txt2img.py index daf8f51a9..7a1a16267 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