Skip to content

Commit

Permalink
Merge pull request #1188 from cheald/fix-preview-error
Browse files Browse the repository at this point in the history
Fix errors on early termination
  • Loading branch information
ZeroCool940711 authored Sep 16, 2022
2 parents ac99b65 + 419f3f9 commit 47e39df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/sd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 47e39df

Please sign in to comment.