Add files via upload

This commit is contained in:
AI Lab
2025-05-01 23:58:14 -07:00
committed by GitHub
parent 31910d51cb
commit c380d4660a
+6 -1
View File
@@ -3,6 +3,8 @@ import sys
import os
import importlib.util
__version__ = "2.3.0"
# Add module directory to Python path
current_dir = Path(__file__).parent
if str(current_dir) not in sys.path:
@@ -12,6 +14,7 @@ if str(current_dir) not in sys.path:
# Initialize mappings
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
WEB_DIRECTORY = "./web"
def load_nodes():
"""Automatically discover and load node definitions"""
@@ -45,4 +48,6 @@ load_nodes()
__all__ = [
"NODE_CLASS_MAPPINGS",
"NODE_DISPLAY_NAME_MAPPINGS"
]
]
# print(f'\033[34m[ComfyUI-RMBG] v{__version__} \033[92mLoaded\033[0m')
print(f'\033[34m[ComfyUI-RMBG]\033[0m v\033[93m{__version__}\033[0m | \033[93m{len(NODE_CLASS_MAPPINGS)} nodes\033[0m \033[92mLoaded\033[0m')