mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 07:17:00 +08:00
nit
This commit is contained in:
parent
415281fb72
commit
34c7bfea12
@ -118,7 +118,7 @@ parser.add_argument("--quick-test-for-ci", action="store_true", help="Quick test
|
|||||||
parser.add_argument("--windows-standalone-build", action="store_true", help="Windows standalone build: Enable convenient things that most people using the standalone windows build will probably enjoy (like auto opening the page on startup).")
|
parser.add_argument("--windows-standalone-build", action="store_true", help="Windows standalone build: Enable convenient things that most people using the standalone windows build will probably enjoy (like auto opening the page on startup).")
|
||||||
|
|
||||||
parser.add_argument("--disable-metadata", action="store_true", help="Disable saving prompt metadata in files.")
|
parser.add_argument("--disable-metadata", action="store_true", help="Disable saving prompt metadata in files.")
|
||||||
parser.add_argument("--no-custom-node", action="store_true", help="Disable loading custom nodes.")
|
parser.add_argument("--disable-all-custom-nodes", action="store_true", help="Disable loading all custom nodes.")
|
||||||
|
|
||||||
parser.add_argument("--multi-user", action="store_true", help="Enables per-user storage.")
|
parser.add_argument("--multi-user", action="store_true", help="Enables per-user storage.")
|
||||||
|
|
||||||
|
|||||||
8
main.py
8
main.py
@ -20,7 +20,7 @@ def execute_prestartup_script():
|
|||||||
print(f"Failed to execute startup-script: {script_path} / {e}")
|
print(f"Failed to execute startup-script: {script_path} / {e}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if args.no_custom_node:
|
if args.disable_all_custom_nodes:
|
||||||
return
|
return
|
||||||
|
|
||||||
node_paths = folder_paths.get_folder_paths("custom_nodes")
|
node_paths = folder_paths.get_folder_paths("custom_nodes")
|
||||||
@ -81,7 +81,7 @@ import yaml
|
|||||||
import execution
|
import execution
|
||||||
import server
|
import server
|
||||||
from server import BinaryEventTypes
|
from server import BinaryEventTypes
|
||||||
from nodes import init_builtin_custom_nodes, init_external_custom_nodes
|
from nodes import init_builtin_extra_nodes, init_external_custom_nodes
|
||||||
import comfy.model_management
|
import comfy.model_management
|
||||||
|
|
||||||
def cuda_malloc_warning():
|
def cuda_malloc_warning():
|
||||||
@ -219,8 +219,8 @@ if __name__ == "__main__":
|
|||||||
for config_path in itertools.chain(*args.extra_model_paths_config):
|
for config_path in itertools.chain(*args.extra_model_paths_config):
|
||||||
load_extra_path_config(config_path)
|
load_extra_path_config(config_path)
|
||||||
|
|
||||||
init_builtin_custom_nodes()
|
init_builtin_extra_nodes()
|
||||||
if not args.no_custom_node:
|
if not args.disable_all_custom_nodes:
|
||||||
init_external_custom_nodes()
|
init_external_custom_nodes()
|
||||||
else:
|
else:
|
||||||
logging.info("Skipping loading of custom nodes")
|
logging.info("Skipping loading of custom nodes")
|
||||||
|
|||||||
8
nodes.py
8
nodes.py
@ -1961,12 +1961,12 @@ def init_external_custom_nodes():
|
|||||||
logging.info("{:6.1f} seconds{}: {}".format(n[0], import_message, n[1]))
|
logging.info("{:6.1f} seconds{}: {}".format(n[0], import_message, n[1]))
|
||||||
logging.info("")
|
logging.info("")
|
||||||
|
|
||||||
def init_builtin_custom_nodes():
|
def init_builtin_extra_nodes():
|
||||||
"""
|
"""
|
||||||
Initializes the built-in custom nodes in ComfyUI.
|
Initializes the built-in extra nodes in ComfyUI.
|
||||||
|
|
||||||
This function loads the custom node files located in the "comfy_extras" directory and imports them into ComfyUI.
|
This function loads the extra node files located in the "comfy_extras" directory and imports them into ComfyUI.
|
||||||
If any of the custom node files fail to import, a warning message is logged.
|
If any of the extra node files fail to import, a warning message is logged.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
None
|
None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user