Files
Fannovel16-ComfyUI-Video-Ma…/example_matting_workflow.json
2023-12-03 11:47:59 +07:00

358 lines
5.7 KiB
JSON

{
"last_node_id": 8,
"last_link_id": 9,
"nodes": [
{
"id": 1,
"type": "VHS_LoadVideo",
"pos": [
-4,
5
],
"size": {
"0": 315,
"1": 222
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3
],
"shape": 3,
"slot_index": 0
},
{
"name": "frame_count",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideo"
},
"widgets_values": [
"Shootout_in_the_lobby_The_Matrix_Open_Matte_2.mp4",
0,
"Disabled",
0,
0,
2,
"video"
]
},
{
"id": 4,
"type": "ImageScaleBy",
"pos": [
-9,
-142
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 3
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
4,
6
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"nearest-exact",
0.75
]
},
{
"id": 2,
"type": "Robust Video Matting",
"pos": [
346,
-141
],
"size": {
"0": 315,
"1": 150
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "video_frames",
"type": "IMAGE",
"link": 4
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
7
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
8
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "Robust Video Matting"
},
"widgets_values": [
"resnet50",
true,
"green",
4
]
},
{
"id": 7,
"type": "MaskToImage",
"pos": [
777,
-9
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskToImage"
}
},
{
"id": 6,
"type": "VHS_VideoCombine",
"pos": [
559,
62
],
"size": [
210,
436
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 7
}
],
"outputs": [
{
"name": "GIF",
"type": "GIF",
"links": null,
"shape": 3
}
],
"title": "Foreground",
"properties": {},
"widgets_values": [
15,
0,
"RVM",
"video/h264-mp4",
false,
true,
null,
"/view?filename=RVM_00002_.mp4&subfolder=&type=output&format=video%2Fh264-mp4"
]
},
{
"id": 8,
"type": "VHS_VideoCombine",
"pos": [
778,
63
],
"size": [
210,
436
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"outputs": [
{
"name": "GIF",
"type": "GIF",
"links": null,
"shape": 3
}
],
"title": "Mask",
"properties": {},
"widgets_values": [
15,
0,
"RVM",
"video/h264-mp4",
false,
true,
null,
"/view?filename=RVM_00003_.mp4&subfolder=&type=output&format=video%2Fh264-mp4"
]
},
{
"id": 5,
"type": "VHS_VideoCombine",
"pos": [
340,
61
],
"size": [
210,
436
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 6
}
],
"outputs": [
{
"name": "GIF",
"type": "GIF",
"links": null,
"shape": 3
}
],
"title": "Original",
"properties": {},
"widgets_values": [
15,
0,
"RVM",
"video/h264-mp4",
false,
true,
null,
"/view?filename=RVM_00001_.mp4&subfolder=&type=output&format=video%2Fh264-mp4"
]
}
],
"links": [
[
3,
1,
0,
4,
0,
"IMAGE"
],
[
4,
4,
0,
2,
0,
"IMAGE"
],
[
6,
4,
0,
5,
0,
"IMAGE"
],
[
7,
2,
0,
6,
0,
"IMAGE"
],
[
8,
2,
1,
7,
0,
"MASK"
],
[
9,
7,
0,
8,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}