抠图模型上一篇已经安装了
工作流, 导入并安装缺失节点,基础大模型选择一个自己喜欢的就好了
{
"last_node_id": 41,
"last_link_id": 65,
"nodes": [
{
"id": 39,
"type": "Image Rembg (Remove Background)",
"pos": [
796,
1542
],
"size": {
"0": 315,
"1": 250
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 61,
"label": "图像"
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
62,
65
],
"shape": 3,
"label": "images",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Image Rembg (Remove Background)"
},
"widgets_values": [
true,
"u2net",
false,
true,
false,
240,
10,
10,
"none"
],
"serialize_values": [
null,
null,
null,
null,
null,
null,
null,
null,
null
]
},
{
"id": 40,
"type": "ImageToMask",
"pos": [
1260,
1367
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 62,
"label": "图像"
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
63
],
"shape": 3,
"label": "遮罩",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageToMask"
},
"widgets_values": [
"red"
],
"serialize_values": [
null
]
},
{
"id": 38,
"type": "VAEEncode",
"pos": [
845,
1235
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 57,
"label": "图像"
},
{
"name": "vae",
"type": "VAE",
"link": 64,
"label": "VAE",
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
58
],
"shape": 3,
"label": "Latent",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 26,
"type": "VAEEncode",
"pos": [
1571,
933
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 54,
"label": "图像"
},
{
"name": "vae",
"type": "VAE",
"link": 29,
"label": "VAE",
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [],
"shape": 3,
"label": "Latent",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 28,
"type": "VAEEncode",
"pos": [
1202,
1008
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 39,
"label": "图像"
},
{
"name": "vae",
"type": "VAE",
"link": 34,
"label": "VAE",
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
59
],
"shape": 3,
"label": "Latent",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 37,
"type": "LatentCompositeMasked",
"pos": [
1711,
1170
],
"size": {
"0": 315,
"1": 146
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "destination",
"type": "LATENT",
"link": 59,
"label": "目标 Latent"
},
{
"name": "source",
"type": "LATENT",
"link": 58,
"label": "源 Latent"
},
{
"name": "mask",
"type": "MASK",
"link": 63,
"label": "遮罩"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
60
],
"shape": 3,
"label": "Latent",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentCompositeMasked"
},
"widgets_values": [
0,
0,
false
],
"serialize_values": [
null,
null,
null
]
},
{
"id": 5,
"type": "CLIPSetLastLayer",
"pos": [
306,
575
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
6,
7
],
"shape": 3,
"label": "CLIP",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPSetLastLayer"
},
"widgets_values": [
-2
],
"serialize_values": [
null
]
},
{
"id": 3,
"type": "CLIPTextEncode",
"pos": [
796,
474
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 6,
"label": "CLIP"
},
{
"name": "text",
"type": "STRING",
"link": 16,
"widget": {
"name": "text"
},
"label": "文本"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
25
],
"shape": 3,
"label": "条件",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"1girl,"
],
"color": "#232",
"bgcolor": "#353",
"serialize_values": [
"1girl,"
]
},
{
"id": 4,
"type": "CLIPTextEncode",
"pos": [
789,
723
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 7,
"label": "CLIP"
},
{
"name": "text",
"type": "STRING",
"link": 17,
"widget": {
"name": "text"
},
"label": "文本"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4
],
"shape": 3,
"label": "条件"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533",
"serialize_values": [
""
]
},
{
"id": 12,
"type": "VAEDecode",
"pos": [
2184,
627
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 13,
"label": "Latent"
},
{
"name": "vae",
"type": "VAE",
"link": 14,
"label": "VAE"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
15
],
"shape": 3,
"label": "图像",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 13,
"type": "PreviewImage",
"pos": [
2504,
624
],
"size": {
"0": 383.6465148925781,
"1": 414.4710388183594
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 15,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 1,
"type": "KSampler",
"pos": [
1727,
575
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 2,
"label": "模型",
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 25,
"label": "正面条件",
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 4,
"label": "负面条件",
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 60,
"label": "Latent",
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
13
],
"shape": 3,
"label": "Latent",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
1025954431145377,
"randomize",
25,
3,
"dpmpp_2m_sde_gpu",
"karras",
0.1
],
"serialize_values": [
null,
null,
null,
null,
null,
null,
null
]
},
{
"id": 41,
"type": "PreviewImage",
"pos": [
2310,
1457
],
"size": {
"0": 279.9791259765625,
"1": 246
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 65,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 2,
"type": "CheckpointLoaderSimple",
"pos": [
-126,
564
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
2
],
"shape": 3,
"label": "模型"
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
5
],
"shape": 3,
"label": "CLIP",
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": null,
"shape": 3,
"label": "VAE",
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"majicMIX realistic(v7)"
],
"serialize_values": [
"192_3750_4424@7c819b6d13.safetensors"
]
},
{
"id": 14,
"type": "SDXLPromptStyler",
"pos": [
224,
706
],
"size": {
"0": 400,
"1": 242
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "text_positive",
"type": "STRING",
"links": [
16
],
"shape": 3,
"label": "正面条件",
"slot_index": 0
},
{
"name": "text_negative",
"type": "STRING",
"links": [
17
],
"shape": 3,
"label": "负面条件",
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "SDXLPromptStyler"
},
"widgets_values": [
"1 girl",
"",
"base",
true,
true,
true
],
"serialize_values": [
null,
null,
null,
null,
null,
null
]
},
{
"id": 10,
"type": "VAELoader",
"pos": [
2071,
949
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
14,
29,
34,
64
],
"shape": 3,
"label": "VAE",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"vae-ft-mse-840000-ema-pruned.ckpt"
],
"serialize_values": [
null
]
},
{
"id": 30,
"type": "ImageScale",
"pos": [
825,
1051
],
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 38,
"label": "图像"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
39
],
"shape": 3,
"label": "图像",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"nearest-exact",
1024,
1024,
"disabled"
],
"serialize_values": [
null,
null,
null,
null
]
},
{
"id": 27,
"type": "LoadImage",
"pos": [
-165,
1066
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
38
],
"shape": 3,
"label": "图像",
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3,
"label": "遮罩"
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"https://bfs.esheep.com/bfs/aikobo-bfs/app/comfy/6c547074e19b644b7c0bb078dff1c80d72ac3d44.png@1536w_1536h_0e",
"image"
],
"serialize_values": [
null,
null
]
},
{
"id": 24,
"type": "LoadImage",
"pos": [
365,
1109
],
"size": {
"0": 315,
"1": 314.00006103515625
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
54,
57,
61
],
"shape": 3,
"label": "图像",
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3,
"label": "遮罩"
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"https://bfs.esheep.com/bfs/aikobo-bfs/app/comfy/67ef4940037a6dd7d3eb442105f8afbc5cc9dee1.webp",
"image"
],
"serialize_values": [
null,
null
]
}
],
"links": [
[
2,
2,
0,
1,
0,
"MODEL"
],
[
4,
4,
0,
1,
2,
"CONDITIONING"
],
[
5,
2,
1,
5,
0,
"CLIP"
],
[
6,
5,
0,
3,
0,
"CLIP"
],
[
7,
5,
0,
4,
0,
"CLIP"
],
[
13,
1,
0,
12,
0,
"LATENT"
],
[
14,
10,
0,
12,
1,
"VAE"
],
[
15,
12,
0,
13,
0,
"IMAGE"
],
[
16,
14,
0,
3,
1,
"STRING"
],
[
17,
14,
1,
4,
1,
"STRING"
],
[
25,
3,
0,
1,
1,
"CONDITIONING"
],
[
29,
10,
0,
26,
1,
"VAE"
],
[
34,
10,
0,
28,
1,
"VAE"
],
[
38,
27,
0,
30,
0,
"IMAGE"
],
[
39,
30,
0,
28,
0,
"IMAGE"
],
[
54,
24,
0,
26,
0,
"IMAGE"
],
[
57,
24,
0,
38,
0,
"IMAGE"
],
[
58,
38,
0,
37,
1,
"LATENT"
],
[
59,
28,
0,
37,
0,
"LATENT"
],
[
60,
37,
0,
1,
3,
"LATENT"
],
[
61,
24,
0,
39,
0,
"IMAGE"
],
[
62,
39,
0,
40,
0,
"IMAGE"
],
[
63,
40,
0,
37,
2,
"MASK"
],
[
64,
10,
0,
38,
1,
"VAE"
],
[
65,
39,
0,
41,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9646149645000006,
"offset": [
-1212.7758448938648,
-97.35939963069306
]
}
},
"version": 0.4
}
效果

大模型重绘工作流
{
"last_node_id": 84,
"last_link_id": 154,
"nodes": [
{
"id": 50,
"type": "ControlNetApplyAdvanced",
"pos": [
3643,
-2109
],
"size": {
"0": 315,
"1": 166
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 144,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 145,
"label": "负面条件"
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 84,
"slot_index": 2,
"label": "ControlNet"
},
{
"name": "image",
"type": "IMAGE",
"link": 112,
"label": "图像"
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
89,
93
],
"shape": 3,
"slot_index": 0,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
90,
94
],
"shape": 3,
"slot_index": 1,
"label": "负面条件"
}
],
"properties": {
"Node name for S&R": "ControlNetApplyAdvanced"
},
"widgets_values": [
1,
0.8,
0.8
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 66,
"type": "Image Canny Filter",
"pos": [
3646,
-1885
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 111,
"label": "图像"
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
112,
113
],
"shape": 3,
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "Image Canny Filter"
},
"widgets_values": [
"false",
0.2,
0.6
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 51,
"type": "ControlNetLoaderAdvanced",
"pos": [
3981,
-2102
],
"size": {
"0": 329.20562744140625,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "timestep_keyframe",
"type": "TIMESTEP_KEYFRAME",
"link": null,
"label": "帧间隔"
}
],
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
84
],
"shape": 3,
"slot_index": 0,
"label": "ControlNet"
}
],
"properties": {
"Node name for S&R": "ControlNetLoaderAdvanced"
},
"widgets_values": [
"control_v11p_sd15_canny.pth"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 7,
"type": "Convert Masks to Images",
"pos": [
3361,
-2093
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "masks",
"type": "MASK",
"link": 7,
"label": "遮罩"
}
],
"outputs": [
{
"name": "IMAGES",
"type": "IMAGE",
"links": [
12
],
"shape": 3,
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "Convert Masks to Images"
},
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 6,
"type": "InvertMask (segment anything)",
"pos": [
3345,
-1998
],
"size": {
"0": 243.60000610351562,
"1": 26
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 6,
"label": "遮罩"
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": [
7,
70
],
"shape": 3,
"slot_index": 0,
"label": "遮罩"
}
],
"properties": {
"Node name for S&R": "InvertMask (segment anything)"
},
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 72,
"type": "ImageScale",
"pos": [
2360,
-2130.118061658263
],
"size": {
"0": 477.9818420410156,
"1": 130
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 124,
"label": "图像"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
122
],
"shape": 3,
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"nearest-exact",
512,
512,
"center"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 33,
"type": "KSamplerAdvanced",
"pos": [
2754.0866197946993,
-1316.3456515932182
],
"size": {
"0": 297.1166076660156,
"1": 306
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 146,
"label": "模型"
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 89,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 90,
"label": "负面条件"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 77,
"label": "Latent"
},
{
"name": "noise_seed",
"type": "INT",
"link": 48,
"widget": {
"name": "noise_seed"
},
"label": "随机种"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
45
],
"shape": 3,
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"enable",
1078923011068764,
"randomize",
21,
5.5,
"dpmpp_3m_sde_gpu",
"karras",
0,
9700,
"disable"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 60,
"type": "KSamplerAdvanced",
"pos": [
2758.0866197946993,
-968.3456515932178
],
"size": {
"0": 292.6867370605469,
"1": 357.90618896484375
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 147,
"label": "模型",
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 93,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 94,
"label": "负面条件"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 102,
"label": "Latent"
},
{
"name": "noise_seed",
"type": "INT",
"link": 99,
"widget": {
"name": "noise_seed"
},
"label": "随机种"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
96
],
"shape": 3,
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"enable",
491129035863062,
"randomize",
21,
6.5,
"dpmpp_3m_sde_gpu",
"karras",
16,
10000,
"disable"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 39,
"type": "VAEDecode",
"pos": [
3409.0866197946993,
-1302.3456515932182
],
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 45,
"label": "Latent"
},
{
"name": "vae",
"type": "VAE",
"link": 150,
"label": "VAE"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
47,
127
],
"shape": 3,
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 61,
"type": "VAEDecode",
"pos": [
3559.0866197946993,
-1300.3456515932182
],
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 96,
"label": "Latent"
},
{
"name": "vae",
"type": "VAE",
"link": 151,
"label": "VAE"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
110,
148
],
"shape": 3,
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 63,
"type": "VAEEncode",
"pos": [
3713.0866197946993,
-1298.3456515932182
],
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 127,
"label": "图像"
},
{
"name": "vae",
"type": "VAE",
"link": 152,
"label": "VAE"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
102
],
"shape": 3,
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "VAEEncode"
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 40,
"type": "PreviewImage",
"pos": [
3071.0866197946993,
-1043.3456515932182
],
"size": {
"0": 403.4054260253906,
"1": 433.56561279296875
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 47,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 80,
"type": "PreviewImage",
"pos": [
3985.0866197946993,
-1307.3456515932182
],
"size": {
"0": 671.9193115234375,
"1": 698.9853515625
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 149,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 65,
"type": "SaveImage",
"pos": [
3491.0866197946993,
-1140.3456515932182
],
"size": {
"0": 478.9574890136719,
"1": 530.525634765625
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 110,
"label": "图像"
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 79,
"type": "CR Upscale Image",
"pos": [
3068.0866197946993,
-1308.3456515932182
],
"size": {
"0": 325.8299560546875,
"1": 222
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 148,
"label": "图像"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
149
],
"shape": 3,
"label": "图像",
"slot_index": 0
},
{
"name": "show_help",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CR Upscale Image"
},
"widgets_values": [
"RealESRGAN_x4plus.pth",
"rescale",
2,
1024,
"lanczos",
"true",
8
]
},
{
"id": 13,
"type": "PreviewImage",
"pos": [
3262,
-1703
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 12,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 14,
"type": "PreviewImage",
"pos": [
3006,
-1705
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 13,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 53,
"type": "PreviewImage",
"pos": [
3656,
-1718
],
"size": {
"0": 233.3446044921875,
"1": 261.93719482421875
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 113,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 41,
"type": "Seed (rgthree)",
"pos": [
2341.0866197946993,
-744.3456515932178
],
"size": {
"0": 395.2820129394531,
"1": 130
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "SEED",
"type": "INT",
"links": [
48,
99
],
"shape": 3,
"slot_index": 0,
"dir": 4,
"label": "随机种"
}
],
"properties": {
"Node name for S&R": "Seed (rgthree)"
},
"widgets_values": [
-1,
null,
null,
null
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 54,
"type": "VAEEncodeForInpaint",
"pos": [
3966,
-1697
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 126,
"label": "图像"
},
{
"name": "vae",
"type": "VAE",
"link": 153,
"label": "VAE"
},
{
"name": "mask",
"type": "MASK",
"link": 70,
"label": "遮罩"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
77
],
"shape": 3,
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "VAEEncodeForInpaint"
},
"widgets_values": [
5
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 4,
"type": "LoadImage",
"pos": [
2348,
-1948.1180616582626
],
"size": {
"0": 500,
"1": 480
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
124
],
"shape": 3,
"slot_index": 0,
"label": "图像"
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"shape": 3,
"slot_index": 1,
"label": "遮罩"
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
")Q%1F}WIRRB[I%MJ4(N8M)L (18).png",
"image"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 75,
"type": "Simple String",
"pos": [
3352,
-1890
],
"size": {
"0": 230.7894744873047,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
133
],
"shape": 3,
"label": "字符串"
}
],
"properties": {
"Node name for S&R": "Simple String"
},
"widgets_values": [
"girl,car"
]
},
{
"id": 3,
"type": "SAMModelLoader (segment anything)",
"pos": [
2913,
-2129
],
"size": {
"0": 380,
"1": 60
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "SAM_MODEL",
"type": "SAM_MODEL",
"links": [
3
],
"shape": 3,
"slot_index": 0,
"label": "SAM 模型"
}
],
"properties": {
"Node name for S&R": "SAMModelLoader (segment anything)"
},
"widgets_values": [
"sam_hq_vit_h (2.57GB)"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 1,
"type": "GroundingDinoModelLoader (segment anything)",
"pos": [
2912.5839331054685,
-2015.36017578125
],
"size": {
"0": 380,
"1": 60
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "GROUNDING_DINO_MODEL",
"type": "GROUNDING_DINO_MODEL",
"links": [
1
],
"shape": 3,
"label": "G-Dino 模型"
}
],
"properties": {
"Node name for S&R": "GroundingDinoModelLoader (segment anything)"
},
"widgets_values": [
"GroundingDINO_SwinT_OGC (694MB)"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 2,
"type": "GroundingDinoSAMSegment (segment anything)",
"pos": [
2920.5839331054685,
-1901.36017578125
],
"size": {
"0": 360,
"1": 122
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "sam_model",
"type": "SAM_MODEL",
"link": 3,
"label": "SAM 模型"
},
{
"name": "grounding_dino_model",
"type": "GROUNDING_DINO_MODEL",
"link": 1,
"slot_index": 1,
"label": "G-Dino 模型"
},
{
"name": "image",
"type": "IMAGE",
"link": 122,
"label": "图像"
},
{
"name": "prompt",
"type": "STRING",
"link": 133,
"widget": {
"name": "prompt"
},
"label": "提示词",
"slot_index": 3
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
13,
111,
126
],
"shape": 3,
"slot_index": 0,
"label": "图像"
},
{
"name": "MASK",
"type": "MASK",
"links": [
6
],
"shape": 3,
"slot_index": 1,
"label": "遮罩"
}
],
"properties": {
"Node name for S&R": "GroundingDinoSAMSegment (segment anything)"
},
"widgets_values": [
"girl",
0.3
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 78,
"type": "Efficient Loader",
"pos": [
2342.0866197946993,
-1323.3456515932182
],
"size": {
"0": 390.9649658203125,
"1": 536.2842407226562
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "lora_stack",
"type": "LORA_STACK",
"link": null,
"label": "LoRA 堆"
},
{
"name": "cnet_stack",
"type": "CONTROL_NET_STACK",
"link": null,
"label": "ControlNet 堆"
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
146,
147
],
"shape": 3,
"label": "模型",
"slot_index": 0
},
{
"name": "CONDITIONING+",
"type": "CONDITIONING",
"links": [
144
],
"shape": 3,
"label": "正面条件",
"slot_index": 1
},
{
"name": "CONDITIONING-",
"type": "CONDITIONING",
"links": [
145
],
"shape": 3,
"label": "负面条件",
"slot_index": 2
},
{
"name": "LATENT",
"type": "LATENT",
"links": null,
"shape": 3,
"label": "Latent"
},
{
"name": "VAE",
"type": "VAE",
"links": [
150,
151,
152,
153
],
"shape": 3,
"label": "VAE",
"slot_index": 4
},
{
"name": "CLIP",
"type": "CLIP",
"links": null,
"shape": 3,
"label": "CLIP"
},
{
"name": "DEPENDENCIES",
"type": "DEPENDENCIES",
"links": null,
"shape": 3,
"label": "依赖"
}
],
"properties": {
"Node name for S&R": "Efficient Loader"
},
"widgets_values": [
"majicmixRealistic_v7.safetensors",
"vae-ft-mse-840000-ema-pruned.safetensors",
-3,
"None",
1,
1,
"Professional photography, garden,HD,8k,4K",
"embedding:EasyNegative,",
"none",
"comfy",
512,
512,
1
],
"color": "#223333",
"bgcolor": "#335555",
"shape": 1
}
],
"links": [
[
1,
1,
0,
2,
1,
"GROUNDING_DINO_MODEL"
],
[
3,
3,
0,
2,
0,
"SAM_MODEL"
],
[
6,
2,
1,
6,
0,
"MASK"
],
[
7,
6,
0,
7,
0,
"MASK"
],
[
12,
7,
0,
13,
0,
"IMAGE"
],
[
13,
2,
0,
14,
0,
"IMAGE"
],
[
45,
33,
0,
39,
0,
"LATENT"
],
[
47,
39,
0,
40,
0,
"IMAGE"
],
[
48,
41,
0,
33,
4,
"INT"
],
[
70,
6,
0,
54,
2,
"MASK"
],
[
77,
54,
0,
33,
3,
"LATENT"
],
[
84,
51,
0,
50,
2,
"CONTROL_NET"
],
[
89,
50,
0,
33,
1,
"CONDITIONING"
],
[
90,
50,
1,
33,
2,
"CONDITIONING"
],
[
93,
50,
0,
60,
1,
"CONDITIONING"
],
[
94,
50,
1,
60,
2,
"CONDITIONING"
],
[
96,
60,
0,
61,
0,
"LATENT"
],
[
99,
41,
0,
60,
4,
"INT"
],
[
102,
63,
0,
60,
3,
"LATENT"
],
[
110,
61,
0,
65,
0,
"IMAGE"
],
[
111,
2,
0,
66,
0,
"IMAGE"
],
[
112,
66,
0,
50,
3,
"IMAGE"
],
[
113,
66,
0,
53,
0,
"IMAGE"
],
[
122,
72,
0,
2,
2,
"IMAGE"
],
[
124,
4,
0,
72,
0,
"IMAGE"
],
[
126,
2,
0,
54,
0,
"IMAGE"
],
[
127,
39,
0,
63,
0,
"IMAGE"
],
[
133,
75,
0,
2,
3,
"STRING"
],
[
144,
78,
1,
50,
0,
"CONDITIONING"
],
[
145,
78,
2,
50,
1,
"CONDITIONING"
],
[
146,
78,
0,
33,
0,
"MODEL"
],
[
147,
78,
0,
60,
0,
"MODEL"
],
[
148,
61,
0,
79,
0,
"IMAGE"
],
[
149,
79,
0,
80,
0,
"IMAGE"
],
[
150,
78,
4,
39,
1,
"VAE"
],
[
151,
78,
4,
61,
1,
"VAE"
],
[
152,
78,
4,
63,
1,
"VAE"
],
[
153,
78,
4,
54,
1,
"VAE"
]
],
"groups": [
{
"title": "Group",
"bounding": [
2898,
-2217,
705,
780
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
3618,
-2217,
708,
779
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
2291,
-2216,
594,
780
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
2287,
-1413,
2388,
823
],
"color": "#3f789e",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {},
"version": 0.4
}