mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-13 15:03:33 +00:00
Merge aada34288f
into 22ad513c72
This commit is contained in:
commit
d6a16f3856
@ -190,9 +190,9 @@ parser.add_argument("--user-directory", type=is_valid_directory, default=None, h
|
|||||||
parser.add_argument("--enable-compress-response-body", action="store_true", help="Enable compressing response body.")
|
parser.add_argument("--enable-compress-response-body", action="store_true", help="Enable compressing response body.")
|
||||||
|
|
||||||
if comfy.options.args_parsing:
|
if comfy.options.args_parsing:
|
||||||
args = parser.parse_args()
|
args, unknown_args = parser.parse_known_args()
|
||||||
else:
|
else:
|
||||||
args = parser.parse_args([])
|
args, unknown_args = parser.parse_known_args([])
|
||||||
|
|
||||||
if args.windows_standalone_build:
|
if args.windows_standalone_build:
|
||||||
args.auto_launch = True
|
args.auto_launch = True
|
||||||
|
4
main.py
4
main.py
@ -5,7 +5,7 @@ import os
|
|||||||
import importlib.util
|
import importlib.util
|
||||||
import folder_paths
|
import folder_paths
|
||||||
import time
|
import time
|
||||||
from comfy.cli_args import args
|
from comfy.cli_args import args, unknown_args
|
||||||
from app.logger import setup_logger
|
from app.logger import setup_logger
|
||||||
import itertools
|
import itertools
|
||||||
import utils.extra_config
|
import utils.extra_config
|
||||||
@ -18,6 +18,8 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
|
|
||||||
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
|
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
|
||||||
|
if unknown_args:
|
||||||
|
logging.info("Found arguments not defined in the ComfyUI core: %s", unknown_args)
|
||||||
|
|
||||||
def apply_custom_paths():
|
def apply_custom_paths():
|
||||||
# extra model paths
|
# extra model paths
|
||||||
|
Loading…
Reference in New Issue
Block a user