fix: add handling for only enhance upscale fast to not divide by 0

This commit is contained in:
Manuel Schmid
2024-06-27 23:48:32 +02:00
parent 1bc5363e43
commit 0b2e23a97e
+1
View File
@@ -1237,6 +1237,7 @@ def worker():
enhance_steps, _, _, _ = apply_overrides(async_task, async_task.original_steps, height, width) enhance_steps, _, _, _ = apply_overrides(async_task, async_task.original_steps, height, width)
all_steps += async_task.image_number * len(async_task.enhance_ctrls) * enhance_steps all_steps += async_task.image_number * len(async_task.enhance_ctrls) * enhance_steps
all_steps = max(all_steps, 1)
print(f'[Parameters] Denoising Strength = {denoising_strength}') print(f'[Parameters] Denoising Strength = {denoising_strength}')