mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: only allow one image number if enhance image has been uploaded
This commit is contained in:
@@ -1171,6 +1171,7 @@ def worker():
|
||||
|
||||
images_to_enhance = []
|
||||
if 'enhance' in goals:
|
||||
async_task.image_number = 1
|
||||
images_to_enhance += [async_task.enhance_input_image]
|
||||
height, width, _ = async_task.enhance_input_image.shape
|
||||
# input image already provided, processing is skipped
|
||||
|
||||
Reference in New Issue
Block a user