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:
@@ -15,6 +15,8 @@ from modules.sdxl_styles import style_keys, aspect_ratios, fooocus_expansion, de
|
||||
|
||||
|
||||
def generate_clicked(*args):
|
||||
execution_start_time = time.perf_counter()
|
||||
|
||||
yield gr.update(visible=True, value=modules.html.make_progress_html(1, 'Initializing ...')), \
|
||||
gr.update(visible=True, value=None), \
|
||||
gr.update(visible=False)
|
||||
@@ -36,6 +38,9 @@ def generate_clicked(*args):
|
||||
gr.update(visible=False), \
|
||||
gr.update(visible=True, value=product)
|
||||
finished = True
|
||||
|
||||
execution_time = time.perf_counter() - execution_start_time
|
||||
print(f'Total time: {execution_time:.2f} seconds')
|
||||
return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user