refactor: code cleanup

This commit is contained in:
Manuel Schmid 2024-06-18 22:16:48 +02:00
parent c0f7c3a8ee
commit dd866616bc
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
2 changed files with 1 additions and 7 deletions

View File

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

View File

@ -107,7 +107,6 @@ metadata_scheme = [
]
controlnet_image_count = 4
preparation_step_count = 13
class OutputFormat(Enum):