mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
Refresh bug fix
This commit is contained in:
parent
988dd02632
commit
eff00413ae
@ -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 = []
|
||||
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user