aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakura-Luna <53183413+Sakura-Luna@users.noreply.github.com>2023-04-20 13:23:56 +0000
committerSakura-Luna <53183413+Sakura-Luna@users.noreply.github.com>2023-04-21 04:34:38 +0000
commiteff00413ae76e01b9a24b13dee6a0dda98f643f2 (patch)
tree3a7264343b8db973f0a53ba9eb6d9f3dfb2b2459
parent988dd02632bf38e64bc0cf394ece2a5f7a64e15b (diff)
downloadstable-diffusion-webui-gfx803-eff00413ae76e01b9a24b13dee6a0dda98f643f2.tar.gz
stable-diffusion-webui-gfx803-eff00413ae76e01b9a24b13dee6a0dda98f643f2.tar.bz2
stable-diffusion-webui-gfx803-eff00413ae76e01b9a24b13dee6a0dda98f643f2.zip
Refresh bug fix
-rw-r--r--modules/img2img.py3
-rw-r--r--modules/txt2img.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/img2img.py b/modules/img2img.py
index 6da974e4..fea51667 100644
--- a/modules/img2img.py
+++ b/modules/img2img.py
@@ -181,7 +181,8 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s
print(generation_info_js)
for img in processed.images:
- img.already_saved_as += f'?{int(time())}'
+ if hasattr(img, 'already_saved_as'):
+ img.already_saved_as += f'?{int(time())}'
if opts.do_not_show_images:
processed.images = []
diff --git a/modules/txt2img.py b/modules/txt2img.py
index 6ebca656..57278bdc 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -65,7 +65,8 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step
print(generation_info_js)
for img in processed.images:
- img.already_saved_as += f'?{int(time())}'
+ if hasattr(img, 'already_saved_as'):
+ img.already_saved_as += f'?{int(time())}'
if opts.do_not_show_images:
processed.images = []