mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: add handling for only enhance upscale fast to not divide by 0
This commit is contained in:
@@ -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}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user