-
Notifications
You must be signed in to change notification settings - Fork 10
/
__init__.py
70 lines (66 loc) · 3.11 KB
/
__init__.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from .components.clip import DareClipMerger
from .components.dare import DareUnetMerger, DareUnetMergerGradient
from .components.dare_mbw import DareUnetMergerMBW
from .components.dare_element import DareUnetMergerElement
from .components.gradients import BlockLayerGradient, ShellLayerGradient, AttentionLayerGradient, MBWLayerGradient, LayerGradientOperations, LayerGradientEdit
from .components.block import BlockUnetMerger, GradientUnetMerger
from .components.normalize import NormalizeUnet
from .components.mask_model import MagnitudeMasker, MaskOperations, MaskEdit, SimpleMasker, QuadMasker
from .components.reports import MaskReporting, ModelReporting, LoRAReporting, LayerGradientReporting
from .components.lora import LoraLoaderTags
from .components.model import ModelNoiseInjector
NODE_CLASS_MAPPINGS = {
"DM_AdvancedModelMerger": GradientUnetMerger,
"DM_AdvancedDareModelMerger": DareUnetMergerGradient,
"DM_BlockModelMerger": BlockUnetMerger,
"DM_DareModelMergerBlock": DareUnetMerger,
"DM_DareModelMergerMBW": DareUnetMergerMBW,
"DM_DareModelMergerElement": DareUnetMergerElement,
"DM_DareClipMerger": DareClipMerger,
"DM_SimpleMasker": SimpleMasker,
"DM_MagnitudeMasker": MagnitudeMasker,
"DM_QuadMasker": QuadMasker,
"DM_MaskOperations": MaskOperations,
"DM_MaskEdit": MaskEdit,
"DM_GradientOperations": LayerGradientOperations,
"DM_GradientEdit": LayerGradientEdit,
"DM_BlockGradient": BlockLayerGradient,
"DM_ShellGradient": ShellLayerGradient,
"DM_AttentionGradient": AttentionLayerGradient,
"DM_MBWGradient": MBWLayerGradient,
"DM_ModelReporting": ModelReporting,
"DM_MaskReporting": MaskReporting,
"DM_LoRAReporting": LoRAReporting,
"DM_GradientReporting": LayerGradientReporting,
"DM_NormalizeModel": NormalizeUnet,
"DM_InjectNoise": ModelNoiseInjector,
"DM_LoRALoaderTags": LoraLoaderTags,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"DM_AdvancedModelMerger": "Model Merger (Advanced)",
"DM_AdvancedDareModelMerger": "Model Merger (Advanced/DARE)",
"DM_BlockModelMerger": "Model Merger (Block)",
"DM_DareModelMergerBlock": "Model Merger (Block/DARE)",
"DM_DareModelMergerMBW": "Model Merger (MBW/DARE)",
"DM_DareModelMergerElement": "Model Merger (Attention/DARE)",
"DM_DareClipMerger": "CLIP Merger (DARE)",
"DM_SimpleMasker": "Simple Masker",
"DM_MagnitudeMasker": "Magnitude Masker",
"DM_QuadMasker": "Quad Masker",
"DM_MaskOperations": "Mask Operations",
"DM_MaskEdit": "Mask Edit",
"DM_GradientOperations": "Gradient Operations",
"DM_GradientEdit": "Gradient Edit",
"DM_BlockGradient": "Block Gradient",
"DM_ShellGradient": "Shell Gradient",
"DM_AttentionGradient": "Attention Gradient",
"DM_MBWGradient": "MBW Gradient",
"DM_ModelReporting": "Model Reporting",
"DM_MaskReporting": "Mask Reporting",
"DM_LoRAReporting": "LoRA Reporting",
"DM_GradientReporting": "Gradient Reporting",
"DM_NormalizeModel": "Normalize Model",
"DM_InjectNoise": "Inject Noise",
"DM_LoRALoaderTags": "LoRA Loader (Tags)",
}
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']