1
This commit is contained in:
+12
-5
@@ -1,4 +1,7 @@
|
||||
print("ComfyUI_node_Lilly.__init__")
|
||||
from .Colors import cprint, Colors as Colors
|
||||
import os
|
||||
py_name=os.path.basename(__file__)
|
||||
cprint(py_name, Colors.BLUE)
|
||||
|
||||
import os
|
||||
import sys
|
||||
@@ -42,13 +45,14 @@ if not md.startswith("custom_nodes."):
|
||||
}
|
||||
|
||||
def add(name):
|
||||
print(f"Load : {name}")
|
||||
#print(f"Load : {name}")
|
||||
try:
|
||||
pkg = importlib.import_module(f"{md}.{name}")
|
||||
NODE_CLASS_MAPPINGS[name]=eval(f"pkg.{name}")
|
||||
print(f"ok : {name}")
|
||||
cprint(f"Load ok : {name}")
|
||||
except Exception as e:
|
||||
print(f"Exception : {e}")
|
||||
cprint(f"Load fail : {name}",Colors.YELLOW)
|
||||
cprint(f"Exception : {e}",Colors.YELLOW)
|
||||
|
||||
add("CheckpointLoaderRandom")
|
||||
add("CheckpointLoaderSimpleText")
|
||||
@@ -56,4 +60,7 @@ if not md.startswith("custom_nodes."):
|
||||
add("LoraLoaderText")
|
||||
add("LoraLoaderTextRandom")
|
||||
add("Random_Sampler")
|
||||
add("VAELoaderDecode")
|
||||
add("VAELoaderDecode")
|
||||
add("SimpleSampler")
|
||||
add("SaveImageSimple")
|
||||
#add("test")
|
||||
Reference in New Issue
Block a user