mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 07:12:58 +03:00
Merge pull request #1188 from cheald/fix-preview-error
Fix errors on early termination
This commit is contained in:
commit
47e39df7a1
@ -787,6 +787,8 @@ def ModelLoader(models,load=False,unload=False,imgproc_realesrgan_model_name='Re
|
||||
#
|
||||
@retry(tries=5)
|
||||
def generation_callback(img, i=0):
|
||||
if "update_preview_frequency" not in st.session_state:
|
||||
return
|
||||
|
||||
try:
|
||||
if i == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user