Skip to content

Commit

Permalink
fix: reset last enhance prompts for each enhancement iteration, bump …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
mashb1t committed Jun 24, 2024
1 parent dfa586d commit 32d7790
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fooocus_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '2.5.0-rc5 (mashb1t)'
version = '2.5.0-rc6 (mashb1t)'
5 changes: 3 additions & 2 deletions modules/async_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,12 +1315,13 @@ def callback(step, x0, x, total_steps, y):
current_task_id = 0
done_steps_upscaling = 0
done_steps_inpainting = 0
last_enhance_prompt = async_task.prompt
last_enhance_negative_prompt = async_task.negative_prompt
enhance_steps, _, _, _ = apply_overrides(async_task, async_task.original_steps, height, width)
for img in images_to_enhance:
enhancement_image_start_time = time.perf_counter()

last_enhance_prompt = async_task.prompt
last_enhance_negative_prompt = async_task.negative_prompt

if should_process_enhance_uov and async_task.enhance_uov_processing_order == flags.enhancement_uov_before:
current_task_id, done_steps_inpainting, done_steps_upscaling, img, exception_result = enhance_upscale(
all_steps, async_task, base_progress, callback, controlnet_canny_path, controlnet_cpds_path,
Expand Down

0 comments on commit 32d7790

Please sign in to comment.