Skip to content

Commit

Permalink
hotfix: yield enhance_input_image to correctly preview debug masks (#…
Browse files Browse the repository at this point in the history
…3497)

sort images starts from index <images_to_enhance_count>, which is 1 if enhance_input_image has been provided
  • Loading branch information
mashb1t authored Aug 11, 2024
1 parent b0d16a3 commit 14895eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/async_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,8 @@ def handler(async_task: AsyncTask):
height, width, _ = async_task.enhance_input_image.shape
# input image already provided, processing is skipped
steps = 0
yield_result(async_task, async_task.enhance_input_image, current_progress, async_task.black_out_nsfw, False,
async_task.disable_intermediate_results)

all_steps = steps * async_task.image_number

Expand Down

1 comment on commit 14895eb

@mhd978
Copy link

@mhd978 mhd978 commented on 14895eb Aug 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uploading 1694534315322.jpg…

Please sign in to comment.