Add face swap workflow

This commit is contained in:
moshferatu 2023-10-24 13:07:20 -07:00
parent 10a81ac579
commit 7618f1fcd2
3 changed files with 197 additions and 0 deletions

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# ComfyUI Workflows
## Face Swap
![Face Swap Image](./face-swap.png)

192
face-swap.json Normal file
View File

@ -0,0 +1,192 @@
{
"last_node_id": 5,
"last_link_id": 3,
"nodes": [
{
"id": 5,
"type": "SaveImage",
"pos": [
1337,
207
],
"size": {
"0": 945.2976684570312,
"1": 916.4913940429688
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 3
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 4,
"type": "ReActorFaceSwap",
"pos": [
896,
502
],
"size": {
"0": 348.47991943359375,
"1": 285.94317626953125
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "source_image",
"type": "IMAGE",
"link": 2
},
{
"name": "input_image",
"type": "IMAGE",
"link": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ReActorFaceSwap"
},
"widgets_values": [
true,
"inswapper_128.onnx",
"retinaface_resnet50",
"codeformer.pth",
"no",
"no",
"0",
"0",
2
]
},
{
"id": 1,
"type": "LoadImage",
"pos": [
258,
75
],
"size": {
"0": 534.3468017578125,
"1": 549.0333251953125
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
2
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"source.jpg",
"image"
]
},
{
"id": 3,
"type": "LoadImage",
"pos": [
259,
688
],
"size": {
"0": 534.3468017578125,
"1": 549.0333251953125
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"input.png",
"image"
]
}
],
"links": [
[
1,
3,
0,
4,
1,
"IMAGE"
],
[
2,
1,
0,
4,
0,
"IMAGE"
],
[
3,
4,
0,
5,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}

BIN
face-swap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB