Files
melMass-comfy_mtb/examples/01-faceswap.json
T
2023-07-18 03:37:30 +02:00

1012 lines
16 KiB
JSON

{
"last_node_id": 76,
"last_link_id": 161,
"nodes": [
{
"id": 59,
"type": "Reroute",
"pos": [
-150.35178124999982,
644.4360633544919
],
"size": [
75,
26
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 124
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
139
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 56,
"type": "Reroute",
"pos": [
-1580.8297949218763,
644.7740239257807
],
"size": [
75,
26
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 117
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
124
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 57,
"type": "Reroute",
"pos": [
-673.8297949218747,
-185.22597607421872
],
"size": [
75,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 135
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
120
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 65,
"type": "Reroute",
"pos": [
-1512.8297949218763,
-181.22597607421872
],
"size": [
75,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 134
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
135
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
-834.8297949218747,
206.77402392578134
],
"size": [
210,
54
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 142
},
{
"name": "text",
"type": "STRING",
"link": 87,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"worst quality, hands, embedding:EasyNegative,"
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
-913.8297949218747,
326.77402392578125
],
"size": [
315,
106
],
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
2
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
768,
512,
1
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
-1040,
-2
],
"size": [
422.84503173828125,
164.31304931640625
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 141
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"Closeup portrait of an old bearded Caucasian man smiling, (NYC 1995), trench coat, golden ring, brown eyes"
]
},
{
"id": 16,
"type": "CheckpointLoaderSimple",
"pos": [
-2001,
193
],
"size": [
315,
98
],
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
134
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
141,
142
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
117
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"revAnimated_v122.safetensors"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
-483,
-21
],
"size": [
315,
474
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 120
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 2
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
138
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
542821171532982,
"fixed",
45,
8,
"dpmpp_sde",
"simple",
1
]
},
{
"id": 66,
"type": "VAEDecodeTiled",
"pos": [
205,
-28
],
"size": [
210,
46
],
"flags": {
"collapsed": false
},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 138
},
{
"name": "vae",
"type": "VAE",
"link": 139,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
153,
161
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecodeTiled"
}
},
{
"id": 25,
"type": "PreviewImage",
"pos": [
2338.9229387812507,
-632.8275743593749
],
"size": [
726.28564453125,
475.3432312011719
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 150
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 75,
"type": "PreviewImage",
"pos": [
1573.5946044921875,
-629.80322265625
],
"size": [
691.7459716796875,
479.6098327636719
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 156
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 70,
"type": "Restore Face (mtb)",
"pos": [
1899,
-51
],
"size": [
315,
150
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 149
},
{
"name": "model",
"type": "FACEENHANCE_MODEL",
"link": 151,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
150
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Restore Face (mtb)"
},
"widgets_values": [
"false",
"false",
0.5,
"true"
]
},
{
"id": 67,
"type": "Face Swap (mtb)",
"pos": [
1127,
-26
],
"size": [
315,
122
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 161
},
{
"name": "reference",
"type": "IMAGE",
"link": 160,
"slot_index": 1
},
{
"name": "faceswap_model",
"type": "FACESWAP_MODEL",
"link": 147,
"slot_index": 2
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
149,
156
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Face Swap (mtb)"
},
"widgets_values": [
"0",
"false"
]
},
{
"id": 71,
"type": "Load Face Enhance Model (mtb)",
"pos": [
1476,
240
],
"size": [
315,
82
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "bg_upsampler",
"type": "UPSCALE_MODEL",
"link": 152,
"slot_index": 0
}
],
"outputs": [
{
"name": "model",
"type": "FACEENHANCE_MODEL",
"links": [
151
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "Load Face Enhance Model (mtb)"
},
"widgets_values": [
"GFPGANv1.4.pth",
2
]
},
{
"id": 72,
"type": "UpscaleModelLoader",
"pos": [
1110,
241
],
"size": [
315,
58
],
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "UPSCALE_MODEL",
"type": "UPSCALE_MODEL",
"links": [
152
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
"4x-UltraSharp.pth"
]
},
{
"id": 73,
"type": "PreviewImage",
"pos": [
760,
-630
],
"size": [
671.1859741210938,
483.1548156738281
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 153
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 76,
"type": "Load Image From Url (mtb)",
"pos": [
161,
231
],
"size": [
315,
58
],
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
160
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Load Image From Url (mtb)"
},
"widgets_values": [
"https://lucasmuseum.org/assets/general/Lucas_Headshot_Color_web.jpg"
]
},
{
"id": 69,
"type": "Load Face Swap Model (mtb)",
"pos": [
172,
503
],
"size": [
315,
58
],
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "FACESWAP_MODEL",
"type": "FACESWAP_MODEL",
"links": [
147
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "Load Face Swap Model (mtb)"
},
"widgets_values": [
"inswapper_128.onnx"
]
},
{
"id": 20,
"type": "Styles Loader (mtb)",
"pos": [
-1341,
276
],
"size": [
315,
78
],
"flags": {
"collapsed": false
},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "positive",
"type": "STRING",
"links": [],
"shape": 3
},
{
"name": "negative",
"type": "STRING",
"links": [
87
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "Styles Loader (mtb)"
},
"widgets_values": [
"❌Low Token"
]
}
],
"links": [
[
2,
5,
0,
3,
3,
"LATENT"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
87,
20,
1,
7,
1,
"STRING"
],
[
117,
16,
2,
56,
0,
"*"
],
[
120,
57,
0,
3,
0,
"MODEL"
],
[
124,
56,
0,
59,
0,
"*"
],
[
134,
16,
0,
65,
0,
"*"
],
[
135,
65,
0,
57,
0,
"*"
],
[
138,
3,
0,
66,
0,
"LATENT"
],
[
139,
59,
0,
66,
1,
"VAE"
],
[
141,
16,
1,
6,
0,
"CLIP"
],
[
142,
16,
1,
7,
0,
"CLIP"
],
[
147,
69,
0,
67,
2,
"FACESWAP_MODEL"
],
[
149,
67,
0,
70,
0,
"IMAGE"
],
[
150,
70,
0,
25,
0,
"IMAGE"
],
[
151,
71,
0,
70,
1,
"FACEENHANCE_MODEL"
],
[
152,
72,
0,
71,
0,
"UPSCALE_MODEL"
],
[
153,
66,
0,
73,
0,
"IMAGE"
],
[
156,
67,
0,
75,
0,
"IMAGE"
],
[
160,
76,
0,
67,
1,
"IMAGE"
],
[
161,
66,
0,
67,
0,
"IMAGE"
]
],
"groups": [
{
"title": "Txt2Img",
"bounding": [
-2061,
-234,
1932,
973
],
"color": "#a1309b",
"locked": false
},
{
"title": "Save Intermediate Image",
"bounding": [
147,
-152,
303,
213
],
"color": "#3f789e",
"locked": false
},
{
"title": "SWAP & RESTORED",
"bounding": [
2305,
-741,
789,
638
],
"color": "#3f789e",
"locked": false
},
{
"title": "SWAP",
"bounding": [
1520,
-743,
774,
642
],
"color": "#3f789e",
"locked": false
},
{
"title": "SD OUTPUT",
"bounding": [
655,
-745,
854,
648
],
"color": "#3f789e",
"locked": false
}
],
"config": {},
"extra": {},
"version": 0.4
}