mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-14 02:57:24 +08:00
Fix format
This commit is contained in:
parent
139d4a7e86
commit
79825dbd32
11
main.py
11
main.py
@ -317,15 +317,8 @@ def prompt_worker(q, server_instance):
|
|||||||
need_gc = True
|
need_gc = True
|
||||||
|
|
||||||
remove_sensitive = lambda prompt: prompt[:5] + prompt[6:]
|
remove_sensitive = lambda prompt: prompt[:5] + prompt[6:]
|
||||||
history_result = e.history_result
|
|
||||||
if benchmark_mode:
|
|
||||||
history_result = {
|
|
||||||
"outputs": {},
|
|
||||||
"meta": {},
|
|
||||||
}
|
|
||||||
|
|
||||||
q.task_done(item_id,
|
q.task_done(item_id,
|
||||||
history_result,
|
e.history_result,
|
||||||
status=execution.PromptQueue.ExecutionStatus(
|
status=execution.PromptQueue.ExecutionStatus(
|
||||||
status_str='success' if e.success else 'error',
|
status_str='success' if e.success else 'error',
|
||||||
completed=e.success,
|
completed=e.success,
|
||||||
@ -344,7 +337,7 @@ def prompt_worker(q, server_instance):
|
|||||||
logging.info("Prompt executed in {:.2f} seconds".format(execution_time))
|
logging.info("Prompt executed in {:.2f} seconds".format(execution_time))
|
||||||
|
|
||||||
if benchmark_mode:
|
if benchmark_mode:
|
||||||
history_result["benchmark"] = {
|
e.history_result["benchmark"] = {
|
||||||
"execution_ms": execution_time * 1000.0,
|
"execution_ms": execution_time * 1000.0,
|
||||||
"nodes": e.node_timing_ms,
|
"nodes": e.node_timing_ms,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user