fix: only allow one image number if enhance image has been uploaded

This commit is contained in:
Manuel Schmid 2024-06-23 16:21:10 +02:00
parent bd3a29ba68
commit b094ac820b
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 1 additions and 0 deletions

View File

@ -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