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
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 1 additions and 0 deletions

View File

@ -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}')