fix naming

This commit is contained in:
kaidu
2024-11-24 21:24:07 +01:00
parent 768d5c0d24
commit a2e2032c8c
2 changed files with 187 additions and 188 deletions
+184 -185
View File
@@ -1,6 +1,6 @@
{
"last_node_id": 53,
"last_link_id": 162,
"last_node_id": 54,
"last_link_id": 168,
"nodes": [
{
"id": 16,
@@ -252,7 +252,7 @@
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 161,
"link": 168,
"slot_index": 1
}
],
@@ -588,150 +588,6 @@
"ComfyUI"
]
},
{
"id": 26,
"type": "FluxGuidance",
"pos": [
480,
144
],
"size": [
317.4000244140625,
58
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 41
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
157
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
3.5
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 42,
"type": "StyleModelLoader",
"pos": [
400,
-180
],
"size": [
340,
60
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STYLE_MODEL",
"type": "STYLE_MODEL",
"links": [
158
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "StyleModelLoader"
},
"widgets_values": [
"flux1-redux-dev.safetensors"
]
},
{
"id": 38,
"type": "CLIPVisionLoader",
"pos": [
60,
-410
],
"size": [
370,
60
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
159
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"sigclip_vision_patch14_384.safetensors"
]
},
{
"id": 40,
"type": "LoadImage",
"pos": [
63,
-301
],
"size": [
315,
314
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
160
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"pasted/image (114).png",
"image"
]
},
{
"id": 6,
"type": "CLIPTextEncode",
@@ -774,11 +630,123 @@
"bgcolor": "#353"
},
{
"id": 52,
"type": "StyleModelApplyAdvanced",
"id": 38,
"type": "CLIPVisionLoader",
"pos": [
767,
-386
60,
-410
],
"size": [
370,
60
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
163
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"sigclip_vision_patch14_384.safetensors"
]
},
{
"id": 40,
"type": "LoadImage",
"pos": [
63,
-301
],
"size": [
315,
314
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
164
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"pasted/image (114).png",
"image"
]
},
{
"id": 26,
"type": "FluxGuidance",
"pos": [
480,
144
],
"size": [
317.4000244140625,
58
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 41
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
167
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
3.5
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 54,
"type": "ReduxAdvanced",
"pos": [
751,
-387
],
"size": [
317.4000244140625,
@@ -791,22 +759,22 @@
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 157
"link": 167
},
{
"name": "style_model",
"type": "STYLE_MODEL",
"link": 158
"link": 165
},
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 159
"link": 163
},
{
"name": "image",
"type": "IMAGE",
"link": 160
"link": 164
},
{
"name": "mask",
@@ -820,15 +788,14 @@
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
161
168
],
"slot_index": 0
},
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"slot_index": 1
"links": null
},
{
"name": "MASK",
@@ -837,15 +804,47 @@
}
],
"properties": {
"Node name for S&R": "StyleModelApplyAdvanced"
"Node name for S&R": "ReduxAdvanced"
},
"widgets_values": [
3,
"area",
"keep aspect ratio",
"center crop (square)",
1,
0.1
]
},
{
"id": 42,
"type": "StyleModelLoader",
"pos": [
444,
-71
],
"size": [
340,
60
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STYLE_MODEL",
"type": "STYLE_MODEL",
"links": [
165
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "StyleModelLoader"
},
"widgets_values": [
"flux1-redux-dev.safetensors"
]
}
],
"links": [
@@ -986,40 +985,40 @@
"MODEL"
],
[
157,
26,
0,
52,
0,
"CONDITIONING"
],
[
158,
42,
0,
52,
1,
"STYLE_MODEL"
],
[
159,
163,
38,
0,
52,
54,
2,
"CLIP_VISION"
],
[
160,
164,
40,
0,
52,
54,
3,
"IMAGE"
],
[
161,
52,
165,
42,
0,
54,
1,
"STYLE_MODEL"
],
[
167,
26,
0,
54,
0,
"CONDITIONING"
],
[
168,
54,
0,
22,
1,
@@ -1044,10 +1043,10 @@
"config": {},
"extra": {
"ds": {
"scale": 1,
"scale": 0.8264462809917354,
"offset": [
-331.0938046855913,
279.16310986747857
155.27574076895425,
405.621837140206
]
},
"groupNodes": {}
+3 -3
View File
@@ -195,7 +195,7 @@ IMAGE_MODES = [
"autocrop with mask"
]
class StyleModelApplyAdvanced:
class ReduxAdvanced:
@classmethod
def INPUT_TYPES(s):
return {"required": {"conditioning": ("CONDITIONING", ),
@@ -251,11 +251,11 @@ class StyleModelApplyAdvanced:
# NOTE: names should be globally unique
NODE_CLASS_MAPPINGS = {
"StyleModelApplySimple": StyleModelApplySimple,
"StyleModelApplyAdvanced": StyleModelApplyAdvanced
"ReduxAdvanced": ReduxAdvanced
}
# A dictionary that contains the friendly/humanly readable titles for the nodes
NODE_DISPLAY_NAME_MAPPINGS = {
"StyleModelApplySimple": "Apply style model (simple)",
"StyleModelApplyAdvanced": "Apply Style model (advanced)"
"ReduxAdvanced": "Apply Redux model (advanced)"
}