Fix Video Stitch subgraph issue

This commit is contained in:
ComfyUI Wiki 2026-04-29 22:22:45 +08:00
parent 9618fa7133
commit 2178e250a5

View File

@ -1,21 +1,21 @@
{ {
"revision": 0, "revision": 0,
"last_node_id": 84, "last_node_id": 85,
"last_link_id": 0, "last_link_id": 0,
"nodes": [ "nodes": [
{ {
"id": 84, "id": 85,
"type": "8e8aa94a-647e-436d-8440-8ee4691864de", "type": "637913e7-0206-46ba-8ded-70ae3a7c2e19",
"pos": [ "pos": [
-6100, -880,
2620 -2260
], ],
"size": [ "size": [
290, 290,
160 160
], ],
"flags": {}, "flags": {},
"order": 0, "order": 2,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
@ -76,31 +76,26 @@
"properties": { "properties": {
"proxyWidgets": [ "proxyWidgets": [
[ [
"-1", "79",
"direction" "direction"
], ],
[ [
"-1", "79",
"match_image_size" "match_image_size"
], ],
[ [
"-1", "79",
"spacing_width" "spacing_width"
], ],
[ [
"-1", "79",
"spacing_color" "spacing_color"
] ]
], ],
"cnr_id": "comfy-core", "cnr_id": "comfy-core",
"ver": "0.13.0" "ver": "0.13.0"
}, },
"widgets_values": [ "widgets_values": [],
"right",
true,
0,
"white"
],
"title": "Video Stitch" "title": "Video Stitch"
} }
], ],
@ -109,12 +104,12 @@
"definitions": { "definitions": {
"subgraphs": [ "subgraphs": [
{ {
"id": "8e8aa94a-647e-436d-8440-8ee4691864de", "id": "637913e7-0206-46ba-8ded-70ae3a7c2e19",
"version": 1, "version": 1,
"state": { "state": {
"lastGroupId": 1, "lastGroupId": 1,
"lastNodeId": 84, "lastNodeId": 97,
"lastLinkId": 262, "lastLinkId": 282,
"lastRerouteId": 0 "lastRerouteId": 0
}, },
"revision": 0, "revision": 0,
@ -123,8 +118,8 @@
"inputNode": { "inputNode": {
"id": -10, "id": -10,
"bounding": [ "bounding": [
-6580, -6810,
2649, 2580,
143.55859375, 143.55859375,
160 160
] ]
@ -132,8 +127,8 @@
"outputNode": { "outputNode": {
"id": -20, "id": -20,
"bounding": [ "bounding": [
-5720, -4770,
2659, 2600,
120, 120,
60 60
] ]
@ -149,8 +144,8 @@
"localized_name": "video", "localized_name": "video",
"label": "Before Video", "label": "Before Video",
"pos": [ "pos": [
-6456.44140625, -6686.44140625,
2669 2600
] ]
}, },
{ {
@ -163,8 +158,8 @@
"localized_name": "video_1", "localized_name": "video_1",
"label": "After Video", "label": "After Video",
"pos": [ "pos": [
-6456.44140625, -6686.44140625,
2689 2620
] ]
}, },
{ {
@ -175,8 +170,8 @@
259 259
], ],
"pos": [ "pos": [
-6456.44140625, -6686.44140625,
2709 2640
] ]
}, },
{ {
@ -187,8 +182,8 @@
260 260
], ],
"pos": [ "pos": [
-6456.44140625, -6686.44140625,
2729 2660
] ]
}, },
{ {
@ -199,8 +194,8 @@
261 261
], ],
"pos": [ "pos": [
-6456.44140625, -6686.44140625,
2749 2680
] ]
}, },
{ {
@ -211,8 +206,8 @@
262 262
], ],
"pos": [ "pos": [
-6456.44140625, -6686.44140625,
2769 2700
] ]
} }
], ],
@ -226,8 +221,8 @@
], ],
"localized_name": "VIDEO", "localized_name": "VIDEO",
"pos": [ "pos": [
-5700, -4750,
2679 2620
] ]
} }
], ],
@ -238,11 +233,11 @@
"type": "GetVideoComponents", "type": "GetVideoComponents",
"pos": [ "pos": [
-6390, -6390,
2560 2600
], ],
"size": [ "size": [
193.530859375, 230,
66 120
], ],
"flags": {}, "flags": {},
"order": 1, "order": 1,
@ -278,9 +273,9 @@
} }
], ],
"properties": { "properties": {
"Node name for S&R": "GetVideoComponents",
"cnr_id": "comfy-core", "cnr_id": "comfy-core",
"ver": "0.13.0", "ver": "0.13.0"
"Node name for S&R": "GetVideoComponents"
} }
}, },
{ {
@ -291,8 +286,8 @@
2420 2420
], ],
"size": [ "size": [
193.530859375, 230,
66 120
], ],
"flags": {}, "flags": {},
"order": 0, "order": 0,
@ -332,21 +327,254 @@
} }
], ],
"properties": { "properties": {
"Node name for S&R": "GetVideoComponents",
"cnr_id": "comfy-core", "cnr_id": "comfy-core",
"ver": "0.13.0", "ver": "0.13.0"
"Node name for S&R": "GetVideoComponents"
} }
}, },
{
"id": 90,
"type": "GetImageSize",
"pos": [
-6390,
3030
],
"size": [
230,
120
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"link": 266
}
],
"outputs": [
{
"localized_name": "width",
"name": "width",
"type": "INT",
"links": [
274
]
},
{
"localized_name": "height",
"name": "height",
"type": "INT",
"links": [
276
]
},
{
"localized_name": "batch_size",
"name": "batch_size",
"type": "INT",
"links": null
}
],
"properties": {
"Node name for S&R": "GetImageSize"
}
},
{
"id": 80,
"type": "CreateVideo",
"pos": [
-5190,
2420
],
"size": [
270,
130
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"localized_name": "images",
"name": "images",
"type": "IMAGE",
"link": 282
},
{
"localized_name": "audio",
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": 251
},
{
"localized_name": "fps",
"name": "fps",
"type": "FLOAT",
"widget": {
"name": "fps"
},
"link": 252
}
],
"outputs": [
{
"localized_name": "VIDEO",
"name": "VIDEO",
"type": "VIDEO",
"links": [
255
]
}
],
"properties": {
"Node name for S&R": "CreateVideo",
"cnr_id": "comfy-core",
"ver": "0.13.0"
},
"widgets_values": [
30
]
},
{
"id": 95,
"type": "ComfyMathExpression",
"pos": [
-6040,
3020
],
"size": [
400,
200
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"label": "a",
"localized_name": "values.a",
"name": "values.a",
"type": "FLOAT,INT",
"link": 274
},
{
"label": "b",
"localized_name": "values.b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT",
"link": null
},
{
"localized_name": "expression",
"name": "expression",
"type": "STRING",
"widget": {
"name": "expression"
},
"link": null
}
],
"outputs": [
{
"localized_name": "FLOAT",
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"localized_name": "INT",
"name": "INT",
"type": "INT",
"links": [
279
]
}
],
"properties": {
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"a & ~1"
]
},
{
"id": 96,
"type": "ComfyMathExpression",
"pos": [
-6040,
3290
],
"size": [
400,
200
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"label": "a",
"localized_name": "values.a",
"name": "values.a",
"type": "FLOAT,INT",
"link": 276
},
{
"label": "b",
"localized_name": "values.b",
"name": "values.b",
"shape": 7,
"type": "FLOAT,INT",
"link": null
},
{
"localized_name": "expression",
"name": "expression",
"type": "STRING",
"widget": {
"name": "expression"
},
"link": null
}
],
"outputs": [
{
"localized_name": "FLOAT",
"name": "FLOAT",
"type": "FLOAT",
"links": null
},
{
"localized_name": "INT",
"name": "INT",
"type": "INT",
"links": [
280
]
}
],
"properties": {
"Node name for S&R": "ComfyMathExpression"
},
"widgets_values": [
"a & ~1"
]
},
{ {
"id": 79, "id": 79,
"type": "ImageStitch", "type": "ImageStitch",
"pos": [ "pos": [
-6390, -6390,
2700 2780
], ],
"size": [ "size": [
270, 270,
150 160
], ],
"flags": {}, "flags": {},
"order": 2, "order": 2,
@ -408,14 +636,15 @@
"name": "IMAGE", "name": "IMAGE",
"type": "IMAGE", "type": "IMAGE",
"links": [ "links": [
250 266,
281
] ]
} }
], ],
"properties": { "properties": {
"Node name for S&R": "ImageStitch",
"cnr_id": "comfy-core", "cnr_id": "comfy-core",
"ver": "0.13.0", "ver": "0.13.0"
"Node name for S&R": "ImageStitch"
}, },
"widgets_values": [ "widgets_values": [
"right", "right",
@ -425,60 +654,91 @@
] ]
}, },
{ {
"id": 80, "id": 97,
"type": "CreateVideo", "type": "ResizeImageMaskNode",
"pos": [ "pos": [
-6040, -5560,
2610 2790
], ],
"size": [ "size": [
270, 270,
78 160
], ],
"flags": {}, "flags": {},
"order": 3, "order": 7,
"mode": 0, "mode": 0,
"inputs": [ "inputs": [
{ {
"localized_name": "images", "localized_name": "input",
"name": "images", "name": "input",
"type": "IMAGE", "type": "IMAGE,MASK",
"link": 250 "link": 281
}, },
{ {
"localized_name": "audio", "localized_name": "resize_type",
"name": "audio", "name": "resize_type",
"shape": 7, "type": "COMFY_DYNAMICCOMBO_V3",
"type": "AUDIO",
"link": 251
},
{
"localized_name": "fps",
"name": "fps",
"type": "FLOAT",
"widget": { "widget": {
"name": "fps" "name": "resize_type"
}, },
"link": 252 "link": null
},
{
"localized_name": "width",
"name": "resize_type.width",
"type": "INT",
"widget": {
"name": "resize_type.width"
},
"link": 279
},
{
"localized_name": "height",
"name": "resize_type.height",
"type": "INT",
"widget": {
"name": "resize_type.height"
},
"link": 280
},
{
"localized_name": "crop",
"name": "resize_type.crop",
"type": "COMBO",
"widget": {
"name": "resize_type.crop"
},
"link": null
},
{
"localized_name": "scale_method",
"name": "scale_method",
"type": "COMBO",
"widget": {
"name": "scale_method"
},
"link": null
} }
], ],
"outputs": [ "outputs": [
{ {
"localized_name": "VIDEO", "localized_name": "resized",
"name": "VIDEO", "name": "resized",
"type": "VIDEO", "type": "*",
"links": [ "links": [
255 282
] ]
} }
], ],
"properties": { "properties": {
"cnr_id": "comfy-core", "Node name for S&R": "ResizeImageMaskNode"
"ver": "0.13.0",
"Node name for S&R": "CreateVideo"
}, },
"widgets_values": [ "widgets_values": [
30 "scale dimensions",
512,
512,
"center",
"area"
] ]
} }
], ],
@ -500,14 +760,6 @@
"target_slot": 1, "target_slot": 1,
"type": "IMAGE" "type": "IMAGE"
}, },
{
"id": 250,
"origin_id": 79,
"origin_slot": 0,
"target_id": 80,
"target_slot": 0,
"type": "IMAGE"
},
{ {
"id": 251, "id": 251,
"origin_id": 77, "origin_id": 77,
@ -579,13 +831,70 @@
"target_id": 79, "target_id": 79,
"target_slot": 5, "target_slot": 5,
"type": "COMBO" "type": "COMBO"
},
{
"id": 266,
"origin_id": 79,
"origin_slot": 0,
"target_id": 90,
"target_slot": 0,
"type": "IMAGE"
},
{
"id": 274,
"origin_id": 90,
"origin_slot": 0,
"target_id": 95,
"target_slot": 0,
"type": "INT"
},
{
"id": 276,
"origin_id": 90,
"origin_slot": 1,
"target_id": 96,
"target_slot": 0,
"type": "INT"
},
{
"id": 279,
"origin_id": 95,
"origin_slot": 1,
"target_id": 97,
"target_slot": 2,
"type": "INT"
},
{
"id": 280,
"origin_id": 96,
"origin_slot": 1,
"target_id": 97,
"target_slot": 3,
"type": "INT"
},
{
"id": 281,
"origin_id": 79,
"origin_slot": 0,
"target_id": 97,
"target_slot": 0,
"type": "IMAGE"
},
{
"id": 282,
"origin_id": 97,
"origin_slot": 0,
"target_id": 80,
"target_slot": 0,
"type": "IMAGE"
} }
], ],
"extra": { "extra": {
"workflowRendererVersion": "LG" "workflowRendererVersion": "LG"
}, },
"category": "Video Tools/Stitch videos" "category": "Video Tools"
} }
] ]
} },
"extra": {}
} }