This commit is contained in:
lilly
2023-03-21 21:35:41 +09:00
parent 782c329ae9
commit 8d14509bbe
8 changed files with 395 additions and 164 deletions
+12 -5
View File
@@ -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")