more general case of adding an infotext when no images have been generated

This commit is contained in:
AUTOMATIC1111 2023-10-14 07:49:03 +03:00
parent 27fdc26a74
commit a109c7aeb8
1 changed files with 3 additions and 1 deletions

View File

@ -820,7 +820,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
state.skipped = False state.skipped = False
if state.interrupted: if state.interrupted:
infotexts.append(Processed(p, []).infotext(p, 0))
break break
sd_models.reload_model_weights() # model can be changed for example by refiner sd_models.reload_model_weights() # model can be changed for example by refiner
@ -961,6 +960,9 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
state.nextjob() state.nextjob()
if not infotexts:
infotexts.append(Processed(p, []).infotext(p, 0))
p.color_corrections = None p.color_corrections = None
index_of_first_image = 0 index_of_first_image = 0