forked from pamparamm/sd-perturbed-attention
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
25 lines (23 loc) · 1.13 KB
/
Copy path__init__.py
File metadata and controls
25 lines (23 loc) · 1.13 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
from . import nag_nodes, tpg_nodes, pladis_nodes
from .pag_nodes import PerturbedAttention, SlidingWindowGuidanceAdvanced, SmoothedEnergyGuidanceAdvanced
from .pag_trt_nodes import TRTAttachPag, TRTPerturbedAttention
NODE_CLASS_MAPPINGS = {
"PerturbedAttention": PerturbedAttention,
"SmoothedEnergyGuidanceAdvanced": SmoothedEnergyGuidanceAdvanced,
"SlidingWindowGuidanceAdvanced": SlidingWindowGuidanceAdvanced,
"TRTAttachPag": TRTAttachPag,
"TRTPerturbedAttention": TRTPerturbedAttention,
**nag_nodes.NODE_CLASS_MAPPINGS,
**tpg_nodes.NODE_CLASS_MAPPINGS,
**pladis_nodes.NODE_CLASS_MAPPINGS,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"PerturbedAttention": "Perturbed-Attention Guidance (Advanced)",
"SmoothedEnergyGuidanceAdvanced": "Smoothed Energy Guidance (Advanced)",
"SlidingWindowGuidanceAdvanced": "Sliding Window Guidance (Advanced)",
"TRTAttachPag": "TensorRT Attach PAG",
"TRTPerturbedAttention": "TensorRT Perturbed-Attention Guidance",
**nag_nodes.NODE_DISPLAY_NAME_MAPPINGS,
**tpg_nodes.NODE_DISPLAY_NAME_MAPPINGS,
**pladis_nodes.NODE_DISPLAY_NAME_MAPPINGS,
}