From 0b2e23a97e35d30207486200b7d700c9d56123fe Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Thu, 27 Jun 2024 23:48:32 +0200 Subject: [PATCH] fix: add handling for only enhance upscale fast to not divide by 0 --- modules/async_worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/async_worker.py b/modules/async_worker.py index 3d8e5102..0a907a12 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -1237,6 +1237,7 @@ def worker(): 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 = max(all_steps, 1) print(f'[Parameters] Denoising Strength = {denoising_strength}')