Files
chflame163-ComfyUI_LayerStyle/workflow/sam2_video_ultra_example.json
T

514 lines
9.5 KiB
JSON

{
"last_node_id": 127,
"last_link_id": 73,
"nodes": [
{
"id": 116,
"type": "VHS_LoadVideoPath",
"pos": {
"0": -312,
"1": 180,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": [
283.1399841308594,
238
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
60,
68,
73
],
"slot_index": 0,
"shape": 3
},
{
"name": "frame_count",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "audio",
"type": "AUDIO",
"links": null,
"shape": 3
},
{
"name": "video_info",
"type": "VHS_VIDEOINFO",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_LoadVideoPath"
},
"widgets_values": {
"video": "D:\\AIRes\\video\\3822765.mp4",
"force_rate": 0,
"force_size": "Disabled",
"custom_width": 512,
"custom_height": 512,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 2,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"frame_load_cap": 0,
"skip_first_frames": 0,
"force_rate": 0,
"filename": "D:\\AIRes\\video\\3822765.mp4",
"type": "path",
"format": "video/mp4",
"select_every_nth": 2
},
"muted": false
}
}
},
{
"id": 127,
"type": "VHS_VideoCombine",
"pos": {
"0": -303,
"1": 647,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": [
721.9566040039062,
718.8505897521973
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 73
},
{
"name": "audio",
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": [],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 15,
"loop_count": 0,
"filename_prefix": "orig",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"pingpong": false,
"save_output": true,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "orig_00007.mp4",
"subfolder": "",
"type": "output",
"format": "video/h264-mp4",
"frame_rate": 15
},
"muted": false
}
}
},
{
"id": 122,
"type": "VHS_VideoCombine",
"pos": {
"0": 456,
"1": 646,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": [
721.9566040039062,
718.8505897521973
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 71
},
{
"name": "audio",
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": [],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 15,
"loop_count": 0,
"filename_prefix": "sam2",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"pingpong": false,
"save_output": true,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "sam2_00006.mp4",
"subfolder": "",
"type": "output",
"format": "video/h264-mp4",
"frame_rate": 15
},
"muted": false
}
}
},
{
"id": 120,
"type": "LayerUtility: BatchSelector",
"pos": {
"0": 29,
"1": 328,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 235.1999969482422,
"1": 78
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 60
},
{
"name": "masks",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
61
],
"slot_index": 0,
"shape": 3
},
{
"name": "mask",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LayerUtility: BatchSelector"
},
"widgets_values": [
"0,"
]
},
{
"id": 118,
"type": "LayerMask: ObjectDetectorYOLOWorld",
"pos": {
"0": 333,
"1": 225,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 310.79998779296875,
"1": 198
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 61
}
],
"outputs": [
{
"name": "bboxes",
"type": "BBOXES",
"links": [
72
],
"slot_index": 0,
"shape": 3
},
{
"name": "preview",
"type": "IMAGE",
"links": [],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LayerMask: ObjectDetectorYOLOWorld"
},
"widgets_values": [
"yolo_world/v2-x",
0.05,
0.3,
"person",
"first",
"0,"
]
},
{
"id": 126,
"type": "LayerMask: SAM2VideoUltra",
"pos": {
"0": 810,
"1": 164,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 340.20001220703125,
"1": 386
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 68
},
{
"name": "bboxes",
"type": "BBOXES",
"link": 72
},
{
"name": "pre_mask",
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [],
"slot_index": 0,
"shape": 3
},
{
"name": "preview",
"type": "IMAGE",
"links": [
71
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LayerMask: SAM2VideoUltra"
},
"widgets_values": [
"sam2_hiera_base_plus.safetensors",
"fp16",
false,
false,
"#FF0080",
"VITMatte",
6,
4,
0.15,
0.99,
true,
"cuda",
0.5
]
}
],
"links": [
[
60,
116,
0,
120,
0,
"IMAGE"
],
[
61,
120,
0,
118,
0,
"IMAGE"
],
[
68,
116,
0,
126,
0,
"IMAGE"
],
[
71,
126,
1,
122,
0,
"IMAGE"
],
[
72,
118,
0,
126,
1,
"BBOXES"
],
[
73,
116,
0,
127,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.7513148009015777,
"offset": [
936.8487199573502,
-11.582724235849595
]
}
},
"version": 0.4
}