fix: reset last enhance prompts for each enhancement iteration, bump version

This commit is contained in:
Manuel Schmid 2024-06-24 21:58:00 +02:00
parent dfa586d483
commit 32d77909f8
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
version = '2.5.0-rc5 (mashb1t)'
version = '2.5.0-rc6 (mashb1t)'

View File

@ -1315,12 +1315,13 @@ def worker():
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,