Skip to content

Commit

Permalink
fix extras big batch crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
light-and-ray committed Jan 19, 2024
1 parent cb5b335 commit d31dc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def get_images(extras_mode, image, image_folder, input_dir):
else:
image_data = image_placeholder

shared.state.assign_current_image(image_data)

parameters, existing_pnginfo = images.read_info_from_image(image_data)
if parameters:
existing_pnginfo["parameters"] = parameters
Expand Down Expand Up @@ -92,6 +90,8 @@ def get_images(extras_mode, image, image_folder, input_dir):
pp.image.info = existing_pnginfo
pp.image.info["postprocessing"] = infotext

shared.state.assign_current_image(pp.image)

if save_output:
fullfn, _ = images.save_image(pp.image, path=outpath, basename=basename, extension=opts.samples_format, info=infotext, short_filename=True, no_prompt=True, grid=False, pnginfo_section_name="extras", existing_info=existing_pnginfo, forced_filename=forced_filename, suffix=suffix)

Expand Down

0 comments on commit d31dc7a

Please sign in to comment.