-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path__init__.py
More file actions
33 lines (27 loc) · 1.08 KB
/
__init__.py
File metadata and controls
33 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import sys
import traceback
NODE_CLASS_MAPPINGS = {}
# A dictionary that contains the friendly/humanly readable titles for the nodes
NODE_DISPLAY_NAME_MAPPINGS = {}
try:
from .cache_nodes import CacheModelAdaptive, CacheModelAuto, CacheModelPeriodic
from .compile_node import PrunaCompileModel
PRUNA_NODE_CLASS_MAPPINGS = {
"PrunaCompileModel": PrunaCompileModel,
"CacheModelAdaptive": CacheModelAdaptive,
"CacheModelPeriodic": CacheModelPeriodic,
"CacheModelAuto": CacheModelAuto,
}
PRUNA_NODE_DISPLAY_NAME_MAPPINGS = {
"PrunaCompileModel": "Pruna Compile",
"CacheModelAdaptive": "Pruna Cache Adaptive",
"CacheModelPeriodic": "Pruna Cache Periodic",
"CacheModelAuto": "Pruna Cache Auto",
}
NODE_CLASS_MAPPINGS.update(PRUNA_NODE_CLASS_MAPPINGS)
NODE_DISPLAY_NAME_MAPPINGS.update(PRUNA_NODE_DISPLAY_NAME_MAPPINGS)
except Exception:
print("ComfyUI_pruna: Pruna node import failed.")
traceback.print_exception(*sys.exc_info())
if len(NODE_CLASS_MAPPINGS) == 0:
raise Exception("import failed")