mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
--disable-image-log
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import args_manager
|
||||
import modules.config
|
||||
|
||||
from PIL import Image
|
||||
@@ -16,6 +17,9 @@ def get_current_html_path():
|
||||
|
||||
|
||||
def log(img, dic, single_line_number=3):
|
||||
if args_manager.args.disable_image_log:
|
||||
return
|
||||
|
||||
date_string, local_temp_filename, only_name = generate_temp_filename(folder=modules.config.path_outputs, extension='png')
|
||||
os.makedirs(os.path.dirname(local_temp_filename), exist_ok=True)
|
||||
Image.fromarray(img).save(local_temp_filename)
|
||||
|
||||
Reference in New Issue
Block a user