From dd866616bca194efae20872ac2ce5ad34aa4b0a3 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Tue, 18 Jun 2024 22:16:48 +0200 Subject: [PATCH] refactor: code cleanup --- modules/async_worker.py | 7 +------ modules/flags.py | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/async_worker.py b/modules/async_worker.py index dfdcd1d1..85116a85 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -1157,7 +1157,6 @@ def worker(): stop_processing(async_task, processing_start_time) return - # enhance progressbar(async_task, current_progress, 'Processing enhance ...') total_count = sum([len(imgs) for _, imgs in generated_imgs.items()]) * len(async_task.enhance_ctrls) base_progress = current_progress @@ -1223,11 +1222,7 @@ def worker(): enhance_negative_prompt = prepare_enhance_prompt(enhance_negative_prompt, async_task.negative_prompt, async_task.translate_prompts, 'negative prompt') - # positive and negative conditioning aren't available here anymore - # if not inpaint_parameterized_enhance and enhance_prompt == async_task.prompt and enhance_negative_prompt == async_task.negative_prompt: - # task_enhance = task.copy() - # tasks_enhance = tasks.copy() - # else: + # positive and negative conditioning aren't available here anymore, process prompt again tasks_enhance, use_expansion, loras, current_progress = process_prompt(async_task, enhance_prompt, enhance_negative_prompt, base_model_additional_loras_enhance, diff --git a/modules/flags.py b/modules/flags.py index f15222c6..1ee39465 100644 --- a/modules/flags.py +++ b/modules/flags.py @@ -107,7 +107,6 @@ metadata_scheme = [ ] controlnet_image_count = 4 -preparation_step_count = 13 class OutputFormat(Enum):