mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Added information about diffusion and total execution time (#463)
This commit is contained in:
@@ -336,6 +336,8 @@ def worker():
|
||||
outputs.append(['preview', (13, 'Starting tasks ...', None)])
|
||||
for current_task_id, task in enumerate(tasks):
|
||||
try:
|
||||
execution_start_time = time.perf_counter()
|
||||
|
||||
imgs = pipeline.process_diffusion(
|
||||
positive_cond=task['c'],
|
||||
negative_cond=task['uc'],
|
||||
@@ -353,6 +355,9 @@ def worker():
|
||||
if inpaint_worker.current_task is not None:
|
||||
imgs = [inpaint_worker.current_task.post_process(x) for x in imgs]
|
||||
|
||||
execution_time = time.perf_counter() - execution_start_time
|
||||
print(f'Diffusion time: {execution_time:.2f} seconds')
|
||||
|
||||
for x in imgs:
|
||||
d = [
|
||||
('Prompt', raw_prompt),
|
||||
|
||||
Reference in New Issue
Block a user