From b094ac820bcbbccd0dd43f437fc087899b205829 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Sun, 23 Jun 2024 16:21:10 +0200 Subject: [PATCH] fix: only allow one image number if enhance image has been uploaded --- modules/async_worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/async_worker.py b/modules/async_worker.py index 677a3cef..ef84523a 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -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