mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: do not attempt to remove non-existing image grid file (#2456)
image grid is actually not an image here but a numpy array, as the grid isn't saved by default
This commit is contained in:
@@ -76,7 +76,8 @@ def generate_clicked(task):
|
|||||||
# delete Fooocus temp images, only keep gradio temp images
|
# delete Fooocus temp images, only keep gradio temp images
|
||||||
if args_manager.args.disable_image_log:
|
if args_manager.args.disable_image_log:
|
||||||
for filepath in product:
|
for filepath in product:
|
||||||
os.remove(filepath)
|
if isinstance(filepath, str) and os.path.exists(filepath):
|
||||||
|
os.remove(filepath)
|
||||||
|
|
||||||
execution_time = time.perf_counter() - execution_start_time
|
execution_time = time.perf_counter() - execution_start_time
|
||||||
print(f'Total time: {execution_time:.2f} seconds')
|
print(f'Total time: {execution_time:.2f} seconds')
|
||||||
|
|||||||
Reference in New Issue
Block a user