mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
refactor: code cleanup
This commit is contained in:
@@ -1157,7 +1157,6 @@ def worker():
|
|||||||
stop_processing(async_task, processing_start_time)
|
stop_processing(async_task, processing_start_time)
|
||||||
return
|
return
|
||||||
|
|
||||||
# enhance
|
|
||||||
progressbar(async_task, current_progress, 'Processing enhance ...')
|
progressbar(async_task, current_progress, 'Processing enhance ...')
|
||||||
total_count = sum([len(imgs) for _, imgs in generated_imgs.items()]) * len(async_task.enhance_ctrls)
|
total_count = sum([len(imgs) for _, imgs in generated_imgs.items()]) * len(async_task.enhance_ctrls)
|
||||||
base_progress = current_progress
|
base_progress = current_progress
|
||||||
@@ -1223,11 +1222,7 @@ def worker():
|
|||||||
enhance_negative_prompt = prepare_enhance_prompt(enhance_negative_prompt, async_task.negative_prompt,
|
enhance_negative_prompt = prepare_enhance_prompt(enhance_negative_prompt, async_task.negative_prompt,
|
||||||
async_task.translate_prompts, 'negative prompt')
|
async_task.translate_prompts, 'negative prompt')
|
||||||
|
|
||||||
# positive and negative conditioning aren't available here anymore
|
# positive and negative conditioning aren't available here anymore, process prompt again
|
||||||
# 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:
|
|
||||||
tasks_enhance, use_expansion, loras, current_progress = process_prompt(async_task, enhance_prompt,
|
tasks_enhance, use_expansion, loras, current_progress = process_prompt(async_task, enhance_prompt,
|
||||||
enhance_negative_prompt,
|
enhance_negative_prompt,
|
||||||
base_model_additional_loras_enhance,
|
base_model_additional_loras_enhance,
|
||||||
|
|||||||
@@ -107,7 +107,6 @@ metadata_scheme = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
controlnet_image_count = 4
|
controlnet_image_count = 4
|
||||||
preparation_step_count = 13
|
|
||||||
|
|
||||||
|
|
||||||
class OutputFormat(Enum):
|
class OutputFormat(Enum):
|
||||||
|
|||||||
Reference in New Issue
Block a user