ComfyUI-WanVideoWrapper / example_workflows /wanvideo_skyreels_a2_example_01.json
aliensmn's picture
Mirror from https://github.com/kijai/ComfyUI-WanVideoWrapper
cf812a0 verified
{
"id": "206247b6-9fec-4ed2-8927-e4f388c674d4",
"revision": 0,
"last_node_id": 176,
"last_link_id": 323,
"nodes": [
{
"id": 46,
"type": "WanVideoTextEmbedBridge",
"pos": [
1292.4471435546875,
1285.966796875
],
"size": [
315,
46
],
"flags": {},
"order": 55,
"mode": 2,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 54
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 55
}
],
"outputs": [
{
"name": "text_embeds",
"type": "WANVIDEOTEXTEMBEDS",
"links": null
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoTextEmbedBridge"
},
"widgets_values": []
},
{
"id": 50,
"type": "CLIPTextEncode",
"pos": [
842.447021484375,
1545.966796875
],
"size": [
400,
200
],
"flags": {},
"order": 42,
"mode": 2,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 53
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
55
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
]
},
{
"id": 48,
"type": "CLIPLoader",
"pos": [
482.4471435546875,
1295.966796875
],
"size": [
315,
106
],
"flags": {},
"order": 0,
"mode": 2,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 0,
"links": [
52,
53
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"umt5_xxl_fp16.safetensors",
"wan",
"default"
]
},
{
"id": 49,
"type": "CLIPTextEncode",
"pos": [
842.447021484375,
1295.966796875
],
"size": [
400,
200
],
"flags": {},
"order": 41,
"mode": 2,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 52
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
54
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"high quality nature video featuring a red panda balancing on a bamboo stem while a bird lands on it's head, on the background there is a waterfall"
]
},
{
"id": 42,
"type": "Note",
"pos": [
-923.5550537109375,
-1187.346923828125
],
"size": [
314.96246337890625,
152.77333068847656
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Adjust the blocks to swap based on your VRAM, this is a tradeoff between speed and memory usage.\n\nAlternatively there's option to use VRAM management introduced in DiffSynt-Studios. This is usually slower, but saves even more VRAM compared to BlockSwap"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 36,
"type": "Note",
"pos": [
-183.5550079345703,
-1437.346923828125
],
"size": [
374.3061828613281,
171.9547576904297
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"fp8_fast seems to cause huge quality degradation\n\nfp_16_fast enables \"Full FP16 Accmumulation in FP16 GEMMs\" feature available in the very latest pytorch nightly, this is around 20% speed boost. \n\nSageattn if you have it installed can be used for almost double inference speed"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 33,
"type": "Note",
"pos": [
-173.5550079345703,
-1577.346923828125
],
"size": [
359.0753479003906,
88
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Models:\nhttps://huggingface.co/Kijai/WanVideo_comfy/tree/main"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 51,
"type": "Note",
"pos": [
512.4469604492188,
1125.9661865234375
],
"size": [
253.16725158691406,
88
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"You can also use native ComfyUI text encoding with these nodes instead of the original, the models are node specific and can't otherwise be mixed."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 44,
"type": "Note",
"pos": [
-963.5550537109375,
-1477.346923828125
],
"size": [
303.0501403808594,
88
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"If you have Triton installed, connect this for ~30% speed increase"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 75,
"type": "ImageRemoveBackground+",
"pos": [
-1700.6025390625,
1160.5380859375
],
"size": [
327.5999755859375,
46
],
"flags": {},
"order": 53,
"mode": 0,
"inputs": [
{
"name": "rembg_session",
"type": "REMBG_SESSION",
"link": 92
},
{
"name": "image",
"type": "IMAGE",
"link": 93
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": []
},
{
"name": "MASK",
"type": "MASK",
"links": [
110
]
}
],
"properties": {
"aux_id": "kijai/ComfyUI_essentials",
"ver": "76e9d1e4399bd025ce8b12c290753d58f9f53e93",
"Node name for S&R": "ImageRemoveBackground+"
},
"widgets_values": []
},
{
"id": 76,
"type": "ImageCompositeMasked",
"pos": [
-1700.6025390625,
940.5386962890625
],
"size": [
315,
146
],
"flags": {},
"order": 64,
"mode": 0,
"inputs": [
{
"name": "destination",
"type": "IMAGE",
"link": 102
},
{
"name": "source",
"type": "IMAGE",
"link": 114
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 110
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
287
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "ImageCompositeMasked"
},
"widgets_values": [
0,
0,
false
]
},
{
"id": 77,
"type": "EmptyImage",
"pos": [
-1570.6025390625,
880.5386962890625
],
"size": [
315,
130
],
"flags": {
"collapsed": true
},
"order": 62,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 99
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 100
},
{
"name": "batch_size",
"type": "INT",
"widget": {
"name": "batch_size"
},
"link": 101
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
102
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "EmptyImage"
},
"widgets_values": [
512,
512,
1,
16777215
]
},
{
"id": 78,
"type": "GetImageSizeAndCount",
"pos": [
-1690.6025390625,
740.5386962890625
],
"size": [
277.20001220703125,
86
],
"flags": {},
"order": 54,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 111
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
114
]
},
{
"label": "1250 width",
"name": "width",
"type": "INT",
"links": [
99
]
},
{
"label": "1250 height",
"name": "height",
"type": "INT",
"links": [
100
]
},
{
"label": "1 count",
"name": "count",
"type": "INT",
"links": [
101
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "GetImageSizeAndCount"
},
"widgets_values": []
},
{
"id": 81,
"type": "WanVideoSLG",
"pos": [
903.119140625,
281.57733154296875
],
"size": [
315,
106
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "slg_args",
"type": "SLGARGS",
"links": [
118
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "ae40c3c13191f7a3e5a307ff1ae22f23fd57d4f1",
"Node name for S&R": "WanVideoSLG"
},
"widgets_values": [
"9",
0.20000000000000004,
0.7000000000000002
]
},
{
"id": 82,
"type": "WanVideoExperimentalArgs",
"pos": [
909.5502319335938,
448.05810546875
],
"size": [
327.5999755859375,
130
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "exp_args",
"type": "EXPERIMENTALARGS",
"links": [
119
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "ae40c3c13191f7a3e5a307ff1ae22f23fd57d4f1",
"Node name for S&R": "WanVideoExperimentalArgs"
},
"widgets_values": [
"",
true,
false,
0
]
},
{
"id": 52,
"type": "WanVideoTeaCache",
"pos": [
1324.5167236328125,
-668.5154418945312
],
"size": [
315,
178
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "cache_args",
"type": "CACHEARGS",
"links": [
56
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoTeaCache"
},
"widgets_values": [
0.22000000000000006,
6,
-1,
"offload_device",
"true",
"e0"
]
},
{
"id": 45,
"type": "WanVideoVRAMManagement",
"pos": [
-553.5551147460938,
-977.3466186523438
],
"size": [
315,
58
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "vram_management_args",
"type": "VRAM_MANAGEMENTARGS",
"links": []
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoVRAMManagement"
},
"widgets_values": [
1
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 119,
"type": "TransparentBGSession+",
"pos": [
-1680,
340
],
"size": [
340.20001220703125,
82
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "REMBG_SESSION",
"type": "REMBG_SESSION",
"links": [
216
]
}
],
"properties": {
"aux_id": "kijai/ComfyUI_essentials",
"ver": "76e9d1e4399bd025ce8b12c290753d58f9f53e93",
"Node name for S&R": "TransparentBGSession+"
},
"widgets_values": [
"base",
true
]
},
{
"id": 120,
"type": "ImageRemoveBackground+",
"pos": [
-1680,
220
],
"size": [
327.5999755859375,
46
],
"flags": {},
"order": 52,
"mode": 0,
"inputs": [
{
"name": "rembg_session",
"type": "REMBG_SESSION",
"link": 216
},
{
"name": "image",
"type": "IMAGE",
"link": 227
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": []
},
{
"name": "MASK",
"type": "MASK",
"links": [
219
]
}
],
"properties": {
"aux_id": "kijai/ComfyUI_essentials",
"ver": "76e9d1e4399bd025ce8b12c290753d58f9f53e93",
"Node name for S&R": "ImageRemoveBackground+"
},
"widgets_values": []
},
{
"id": 122,
"type": "EmptyImage",
"pos": [
-1550,
-60
],
"size": [
315,
130
],
"flags": {
"collapsed": true
},
"order": 61,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 220
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 221
},
{
"name": "batch_size",
"type": "INT",
"widget": {
"name": "batch_size"
},
"link": 222
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
217
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "EmptyImage"
},
"widgets_values": [
512,
512,
1,
16777215
]
},
{
"id": 123,
"type": "GetImageSizeAndCount",
"pos": [
-1670,
-200
],
"size": [
277.20001220703125,
86
],
"flags": {},
"order": 51,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 225
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
218
]
},
{
"label": "1280 width",
"name": "width",
"type": "INT",
"links": [
220
]
},
{
"label": "720 height",
"name": "height",
"type": "INT",
"links": [
221
]
},
{
"label": "1 count",
"name": "count",
"type": "INT",
"links": [
222
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "GetImageSizeAndCount"
},
"widgets_values": []
},
{
"id": 74,
"type": "TransparentBGSession+",
"pos": [
-1710.6025390625,
1260.5380859375
],
"size": [
340.20001220703125,
82
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "REMBG_SESSION",
"type": "REMBG_SESSION",
"links": [
92
]
}
],
"properties": {
"aux_id": "kijai/ComfyUI_essentials",
"ver": "76e9d1e4399bd025ce8b12c290753d58f9f53e93",
"Node name for S&R": "TransparentBGSession+"
},
"widgets_values": [
"base",
true
]
},
{
"id": 28,
"type": "WanVideoDecode",
"pos": [
1695.649658203125,
-665.0869140625
],
"size": [
315,
174
],
"flags": {},
"order": 79,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "WANVAE",
"link": 43
},
{
"name": "samples",
"type": "LATENT",
"link": 213
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"slot_index": 0,
"links": [
262
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoDecode"
},
"widgets_values": [
false,
272,
272,
144,
128
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 128,
"type": "ImageBatch",
"pos": [
-429.6429748535156,
976.2911376953125
],
"size": [
210,
46
],
"flags": {},
"order": 71,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 268
},
{
"name": "image2",
"type": "IMAGE",
"link": 269
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
237
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "ImageBatch"
},
"widgets_values": []
},
{
"id": 130,
"type": "ImageBatchRepeatInterleaving",
"pos": [
-166.9401397705078,
967.5706176757812
],
"size": [
352.79998779296875,
58
],
"flags": {},
"order": 72,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 237
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
241
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "ImageBatchRepeatInterleaving"
},
"widgets_values": [
4
]
},
{
"id": 156,
"type": "SetNode",
"pos": [
-1390,
-870
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 278
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_GenWidth",
"properties": {
"previousName": "GenWidth"
},
"widgets_values": [
"GenWidth"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 121,
"type": "ImageCompositeMasked",
"pos": [
-1680,
0
],
"size": [
315,
146
],
"flags": {},
"order": 63,
"mode": 0,
"inputs": [
{
"name": "destination",
"type": "IMAGE",
"link": 217
},
{
"name": "source",
"type": "IMAGE",
"link": 218
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 219
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
284
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "ImageCompositeMasked"
},
"widgets_values": [
0,
0,
false
]
},
{
"id": 158,
"type": "GetNode",
"pos": [
-1470,
500
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 12,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
280,
282
]
}
],
"title": "Get_GenWidth",
"properties": {},
"widgets_values": [
"GenWidth"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 159,
"type": "GetNode",
"pos": [
-1470,
560
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 13,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
281,
283
]
}
],
"title": "Get_GenHeight",
"properties": {},
"widgets_values": [
"GenHeight"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 161,
"type": "GetNode",
"pos": [
221.53013610839844,
96.24537658691406
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 14,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
293
]
}
],
"title": "Get_GenWidth",
"properties": {},
"widgets_values": [
"GenWidth"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 162,
"type": "GetNode",
"pos": [
229.25967407226562,
161.2519989013672
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 15,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
294
]
}
],
"title": "Get_GenHeight",
"properties": {},
"widgets_values": [
"GenHeight"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 141,
"type": "GetNode",
"pos": [
-1360.6025390625,
1050.5380859375
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 16,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
255,
289
]
}
],
"title": "Get_GenHeight",
"properties": {},
"widgets_values": [
"GenHeight"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 131,
"type": "ImageBatch",
"pos": [
-225.80328369140625,
321.16888427734375
],
"size": [
210,
46
],
"flags": {},
"order": 73,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 276
},
{
"name": "image2",
"type": "IMAGE",
"link": 241
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
295
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "ImageBatch"
},
"widgets_values": []
},
{
"id": 79,
"type": "PreviewImage",
"pos": [
377.4047546386719,
372.54791259765625
],
"size": [
431.28045654296875,
436.768798828125
],
"flags": {},
"order": 75,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 296
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 164,
"type": "GetImageSizeAndCount",
"pos": [
29.78023338317871,
319.7062683105469
],
"size": [
277.20001220703125,
86
],
"flags": {},
"order": 74,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 295
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
296,
297
]
},
{
"label": "832 width",
"name": "width",
"type": "INT",
"links": null
},
{
"label": "480 height",
"name": "height",
"type": "INT",
"links": null
},
{
"label": "9 count",
"name": "count",
"type": "INT",
"links": [
298
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "GetImageSizeAndCount"
}
},
{
"id": 165,
"type": "SetNode",
"pos": [
144.23558044433594,
473.40380859375
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 77,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 298
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_ExtraImages",
"properties": {
"previousName": "ExtraImages"
},
"widgets_values": [
"ExtraImages"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 166,
"type": "GetNode",
"pos": [
2110.546142578125,
-773.3720703125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 17,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
299,
300
]
}
],
"title": "Get_ExtraImages",
"properties": {},
"widgets_values": [
"ExtraImages"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 149,
"type": "SetNode",
"pos": [
-871.8597412109375,
1702.301513671875
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 60,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 270
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
269
]
}
],
"title": "Set_BackgroundImage",
"properties": {
"previousName": "BackgroundImage"
},
"widgets_values": [
"BackgroundImage"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 70,
"type": "ImageResizeKJ",
"pos": [
-1190.6025390625,
940.5386962890625
],
"size": [
315,
266
],
"flags": {},
"order": 66,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 287
},
{
"name": "get_image_size",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "width_input"
},
"link": null
},
{
"name": "height_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "height_input"
},
"link": null
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 254
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 255
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
291
]
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": []
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028",
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
624,
624,
"lanczos",
true,
16,
0,
0,
"disabled"
]
},
{
"id": 110,
"type": "GetNode",
"pos": [
1740,
-190
],
"size": [
283.871337890625,
58
],
"flags": {
"collapsed": true
},
"order": 18,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
205
]
}
],
"title": "Get_Subject2Image",
"properties": {},
"widgets_values": [
"Subject2Image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 115,
"type": "AddLabel",
"pos": [
1970,
-190
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 43,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 205
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"widget": {
"name": "caption"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
303
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "AddLabel"
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Subject2",
"up",
""
]
},
{
"id": 167,
"type": "GetNode",
"pos": [
1742.682861328125,
-120.10194396972656
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 19,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
301
]
}
],
"title": "Get_BackgroundImage",
"properties": {},
"widgets_values": [
"BackgroundImage"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 111,
"type": "GetNode",
"pos": [
1742.629150390625,
-263.4481506347656
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 20,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
203
]
}
],
"title": "Get_Subject1Image",
"properties": {},
"widgets_values": [
"Subject1Image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 114,
"type": "AddLabel",
"pos": [
1966.7239990234375,
-261.8102722167969
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 45,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 203
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"widget": {
"name": "caption"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
302
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "AddLabel"
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Subject1",
"up",
""
]
},
{
"id": 168,
"type": "AddLabel",
"pos": [
1983.461181640625,
-123.37776947021484
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 301
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"widget": {
"name": "caption"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
304
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "AddLabel"
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Background",
"up",
""
]
},
{
"id": 124,
"type": "ImageResizeKJ",
"pos": [
-1270,
0
],
"size": [
315,
266
],
"flags": {},
"order": 65,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 284
},
{
"name": "get_image_size",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "width_input"
},
"link": 280
},
{
"name": "height_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "height_input"
},
"link": 281
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
285
]
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": []
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028",
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
624,
624,
"lanczos",
true,
16,
0,
0,
"disabled"
]
},
{
"id": 133,
"type": "PreviewImage",
"pos": [
-638.5439453125,
-294.6226806640625
],
"size": [
399.8673095703125,
314.4845886230469
],
"flags": {},
"order": 57,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 248
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 152,
"type": "SetNode",
"pos": [
-834.1018676757812,
365.6247253417969
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 69,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 292
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
276
]
}
],
"title": "Set_Subject1Image",
"properties": {
"previousName": "Subject1Image"
},
"widgets_values": [
"Subject1Image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 107,
"type": "SetNode",
"pos": [
-810.4757080078125,
1044.2935791015625
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 70,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 290
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
268
]
}
],
"title": "Set_Subject2Image",
"properties": {
"previousName": "Subject2Image"
},
"widgets_values": [
"Subject2Image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 154,
"type": "INTConstant",
"pos": [
-1630,
-900
],
"size": [
210,
58
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "value",
"type": "INT",
"links": [
278
]
}
],
"title": "GenWidth",
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "INTConstant"
},
"widgets_values": [
832
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 153,
"type": "GetNode",
"pos": [
-530.282470703125,
-461.08135986328125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 22,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
277
]
}
],
"title": "Get_Subject1Image",
"properties": {},
"widgets_values": [
"Subject1Image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 151,
"type": "GetNode",
"pos": [
-528.3908081054688,
-410
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 23,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
273
]
}
],
"title": "Get_Subject2Image",
"properties": {},
"widgets_values": [
"Subject2Image"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 150,
"type": "GetNode",
"pos": [
-534.2462768554688,
-354.0542297363281
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 24,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
274
]
}
],
"title": "Get_BackgroundImage",
"properties": {},
"widgets_values": [
"BackgroundImage"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 132,
"type": "ImageBatchMulti",
"pos": [
-293.3455810546875,
-401.7143249511719
],
"size": [
315,
122
],
"flags": {
"collapsed": true
},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 277
},
{
"name": "image_2",
"type": "IMAGE",
"link": 273
},
{
"name": "image_3",
"type": "IMAGE",
"link": 274
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
248,
249
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175"
},
"widgets_values": [
3,
null
]
},
{
"id": 108,
"type": "MarkdownNote",
"pos": [
301.50732421875,
-1323.1588134765625
],
"size": [
542.259765625,
88
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Model link",
"properties": {},
"widgets_values": [
"[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_SkyreelsA2_fp8_e4m3fn.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan2_1_SkyreelsA2_fp8_e4m3fn.safetensors)"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 59,
"type": "CLIPVisionLoader",
"pos": [
-429.9354248046875,
-718.1566162109375
],
"size": [
315,
58
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
70
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "CLIPVisionLoader"
},
"widgets_values": [
"clip_vision_h.safetensors"
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 11,
"type": "LoadWanVideoT5TextEncoder",
"pos": [
-94.43940734863281,
-913.262451171875
],
"size": [
377.1661376953125,
130
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "wan_t5_model",
"type": "WANTEXTENCODER",
"slot_index": 0,
"links": [
15
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "LoadWanVideoT5TextEncoder"
},
"widgets_values": [
"umt5-xxl-enc-bf16.safetensors",
"bf16",
"offload_device",
"disabled"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 38,
"type": "WanVideoVAELoader",
"pos": [
-87.99845123291016,
-731.7169189453125
],
"size": [
372.7727966308594,
82
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "vae",
"type": "WANVAE",
"slot_index": 0,
"links": [
43,
81
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoVAELoader"
},
"widgets_values": [
"wanvideo\\Wan2_1_VAE_bf16.safetensors",
"bf16"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 65,
"type": "WanVideoClipVisionEncode",
"pos": [
-184.58018493652344,
-264.4764709472656
],
"size": [
327.5999755859375,
262
],
"flags": {},
"order": 58,
"mode": 0,
"inputs": [
{
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 70
},
{
"name": "image_1",
"type": "IMAGE",
"link": 249
},
{
"name": "image_2",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "negative_image",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "image_embeds",
"type": "WANVIDIMAGE_CLIPEMBEDS",
"links": [
82
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoClipVisionEncode"
},
"widgets_values": [
1,
1,
"center",
"concat",
true,
0,
0.20000000000000004
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 148,
"type": "SimpleMath+",
"pos": [
2086.125732421875,
-1009.8167114257812
],
"size": [
315,
98
],
"flags": {
"collapsed": false
},
"order": 82,
"mode": 0,
"inputs": [
{
"name": "a",
"shape": 7,
"type": "*",
"link": 264
},
{
"name": "b",
"shape": 7,
"type": "*",
"link": 299
},
{
"name": "c",
"shape": 7,
"type": "*",
"link": null
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
266
]
},
{
"name": "FLOAT",
"type": "FLOAT",
"links": null
}
],
"properties": {
"aux_id": "kijai/ComfyUI_essentials",
"ver": "76e9d1e4399bd025ce8b12c290753d58f9f53e93",
"Node name for S&R": "SimpleMath+"
},
"widgets_values": [
"a - (b + 3)"
]
},
{
"id": 170,
"type": "Note",
"pos": [
2090.12060546875,
-1152.774169921875
],
"size": [
474.14105224609375,
88
],
"flags": {},
"order": 29,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Original code drops first 12 (reference batch len + 3) images when using 3 references"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 155,
"type": "INTConstant",
"pos": [
-1632.882568359375,
-783.9638671875
],
"size": [
210,
58
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "value",
"type": "INT",
"links": [
279
]
}
],
"title": "GenHeight",
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "INTConstant"
},
"widgets_values": [
480
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 157,
"type": "SetNode",
"pos": [
-1390,
-755.94580078125
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 48,
"mode": 0,
"inputs": [
{
"name": "INT",
"type": "INT",
"link": 279
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_GenHeight",
"properties": {
"previousName": "GenHeight"
},
"widgets_values": [
"GenHeight"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 109,
"type": "Note",
"pos": [
-429.1611328125,
653.4041748046875
],
"size": [
302.15667724609375,
110.52178955078125
],
"flags": {},
"order": 31,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Subject reference image should be on white background, this example removes the background, composites the image to white and pads it a bit. The placement on the canvas may matter so you might want to do this in other means instead."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 169,
"type": "ImageConcatMulti",
"pos": [
2133.33349609375,
-279.80157470703125
],
"size": [
315,
170
],
"flags": {},
"order": 56,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 302
},
{
"name": "image_2",
"type": "IMAGE",
"link": 303
},
{
"name": "image_3",
"type": "IMAGE",
"link": 304
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
313
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175"
},
"widgets_values": [
3,
"down",
true,
null
]
},
{
"id": 173,
"type": "Note",
"pos": [
-832.8268432617188,
474.1549987792969
],
"size": [
326.13037109375,
88
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "UPDATE!",
"properties": {},
"widgets_values": [
"If ImagePadKJ -node is missing target_width and height inputs, UPDATE KJNODES!"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 140,
"type": "GetNode",
"pos": [
-1350.6025390625,
1010.5382690429688
],
"size": [
210,
60
],
"flags": {
"collapsed": true
},
"order": 33,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
254,
288
]
}
],
"title": "Get_GenWidth",
"properties": {},
"widgets_values": [
"GenWidth"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 142,
"type": "GetNode",
"pos": [
-1606.621826171875,
1842.2674560546875
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 34,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
316
]
}
],
"title": "Get_GenWidth",
"properties": {},
"widgets_values": [
"GenWidth"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 127,
"type": "ImageResizeKJ",
"pos": [
-1406.621826171875,
1752.2674560546875
],
"size": [
315,
266
],
"flags": {},
"order": 50,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 232
},
{
"name": "get_image_size",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "width_input"
},
"link": null
},
{
"name": "height_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "height_input"
},
"link": null
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 316
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 257
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
270
]
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": []
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028",
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
624,
624,
"lanczos",
false,
16,
0,
0,
"center"
]
},
{
"id": 143,
"type": "GetNode",
"pos": [
-1608.512939453125,
1899.294677734375
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 35,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
257
]
}
],
"title": "Get_GenHeight",
"properties": {},
"widgets_values": [
"GenHeight"
],
"color": "#1b4669",
"bgcolor": "#29699c"
},
{
"id": 35,
"type": "WanVideoTorchCompileSettings",
"pos": [
-623.5550537109375,
-1477.346923828125
],
"size": [
390.5999755859375,
202
],
"flags": {},
"order": 36,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "torch_compile_args",
"type": "WANCOMPILEARGS",
"slot_index": 0,
"links": []
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoTorchCompileSettings"
},
"widgets_values": [
"inductor",
false,
"default",
false,
64,
true,
128
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 63,
"type": "WanVideoImageToVideoEncode",
"pos": [
408.31842041015625,
-114.29244995117188
],
"size": [
352.79998779296875,
378
],
"flags": {},
"order": 76,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "WANVAE",
"link": 81
},
{
"name": "clip_embeds",
"type": "WANVIDIMAGE_CLIPEMBEDS",
"link": 82
},
{
"name": "start_image",
"shape": 7,
"type": "IMAGE",
"link": 297
},
{
"name": "end_image",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": 293
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 294
},
{
"name": "extra_latents",
"shape": 7,
"type": "LATENT",
"link": null
},
{
"name": "control_embeds",
"shape": 7,
"type": "WANVIDIMAGE_EMBEDS",
"link": null
},
{
"name": "temporal_mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "image_embeds",
"type": "WANVIDIMAGE_EMBEDS",
"links": [
66
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoImageToVideoEncode"
},
"widgets_values": [
832,
480,
81,
0,
1,
1,
true,
false
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 39,
"type": "WanVideoBlockSwap",
"pos": [
-553.5551147460938,
-1187.346923828125
],
"size": [
315,
154
],
"flags": {},
"order": 37,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "block_swap_args",
"type": "BLOCKSWAPARGS",
"slot_index": 0,
"links": [
319
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoBlockSwap"
},
"widgets_values": [
10,
false,
false,
true,
0
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 126,
"type": "LoadImage",
"pos": [
-2116.620361328125,
1752.2674560546875
],
"size": [
413.10479736328125,
498.3180847167969
],
"flags": {},
"order": 38,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
232
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"title": "Load Image: Background",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"pasted/image (812).png",
"image",
""
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 58,
"type": "LoadImage",
"pos": [
-2170,
-130
],
"size": [
413.10479736328125,
498.3180847167969
],
"flags": {},
"order": 39,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
225,
227
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"title": "Load Image: StartImage",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"pasted/image (813).png",
"image",
""
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 69,
"type": "LoadImage",
"pos": [
-2180.6015625,
800.5386962890625
],
"size": [
413.10479736328125,
498.3180847167969
],
"flags": {},
"order": 40,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
93,
111
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"title": "Load Image: Reference",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"pasted/image (809).png",
"image",
""
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 16,
"type": "WanVideoTextEncode",
"pos": [
787.8640747070312,
-91.52558898925781
],
"size": [
420.30511474609375,
261.5306701660156
],
"flags": {},
"order": 59,
"mode": 0,
"inputs": [
{
"name": "t5",
"type": "WANTEXTENCODER",
"link": 15
},
{
"name": "model_to_offload",
"shape": 7,
"type": "WANVIDEOMODEL",
"link": 79
}
],
"outputs": [
{
"name": "text_embeds",
"type": "WANVIDEOTEXTEMBEDS",
"slot_index": 0,
"links": [
30
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoTextEncode"
},
"widgets_values": [
"A man is holding a teddy bear in the forest.",
"Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards",
true
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 71,
"type": "ImagePadKJ",
"pos": [
-1190.6025390625,
1260.5380859375
],
"size": [
315,
270
],
"flags": {},
"order": 68,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 291
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
},
{
"name": "target_width",
"shape": 7,
"type": "INT",
"widget": {
"name": "target_width"
},
"link": 288
},
{
"name": "target_height",
"shape": 7,
"type": "INT",
"widget": {
"name": "target_height"
},
"link": 289
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
290
]
},
{
"name": "masks",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "ImagePadKJ"
},
"widgets_values": [
0,
0,
0,
0,
256,
"color",
"255,255,255",
512,
512
]
},
{
"id": 125,
"type": "ImagePadKJ",
"pos": [
-1250,
340
],
"size": [
315,
270
],
"flags": {},
"order": 67,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 285
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
},
{
"name": "target_width",
"shape": 7,
"type": "INT",
"widget": {
"name": "target_width"
},
"link": 282
},
{
"name": "target_height",
"shape": 7,
"type": "INT",
"widget": {
"name": "target_height"
},
"link": 283
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
292
]
},
{
"name": "masks",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "ImagePadKJ"
},
"widgets_values": [
0,
0,
0,
0,
64,
"color",
"255,255,255",
512,
512
]
},
{
"id": 171,
"type": "EmptyImage",
"pos": [
2168.255126953125,
-702.6864013671875
],
"size": [
315,
130
],
"flags": {
"collapsed": true
},
"order": 81,
"mode": 0,
"inputs": [
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": 311
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
310
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.27",
"Node name for S&R": "EmptyImage"
},
"widgets_values": [
8,
512,
1,
0
]
},
{
"id": 147,
"type": "GetImageSizeAndCount",
"pos": [
1789.384033203125,
-848.149169921875
],
"size": [
277.20001220703125,
86
],
"flags": {},
"order": 80,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 262
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
263
]
},
{
"label": "832 width",
"name": "width",
"type": "INT",
"links": null
},
{
"label": "480 height",
"name": "height",
"type": "INT",
"links": [
311
]
},
{
"label": "81 count",
"name": "count",
"type": "INT",
"links": [
264
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "GetImageSizeAndCount"
},
"widgets_values": []
},
{
"id": 172,
"type": "ImageConcatMulti",
"pos": [
2137.328125,
-549.1815185546875
],
"size": [
315,
190
],
"flags": {},
"order": 84,
"mode": 0,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 308
},
{
"name": "image_2",
"type": "IMAGE",
"link": 310
},
{
"name": "image_3",
"type": "IMAGE",
"link": 313
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
322
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175"
},
"widgets_values": [
3,
"left",
true,
null
]
},
{
"id": 176,
"type": "GetImageSizeAndCount",
"pos": [
2486.351806640625,
-562.218017578125
],
"size": [
277.20001220703125,
86
],
"flags": {},
"order": 85,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 322
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
323
]
},
{
"label": "1092 width",
"name": "width",
"type": "INT",
"links": null
},
{
"label": "480 height",
"name": "height",
"type": "INT",
"links": []
},
{
"label": "72 count",
"name": "count",
"type": "INT",
"links": []
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "GetImageSizeAndCount"
}
},
{
"id": 30,
"type": "VHS_VideoCombine",
"pos": [
2831.597412109375,
-585.841064453125
],
"size": [
1245.8460693359375,
886.8334350585938
],
"flags": {},
"order": 86,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 323
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
},
{
"name": "meta_batch",
"shape": 7,
"type": "VHS_BatchManager",
"link": null
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": null
}
],
"outputs": [
{
"name": "Filenames",
"type": "VHS_FILENAMES",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-videohelpersuite",
"ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8",
"Node name for S&R": "VHS_VideoCombine"
},
"widgets_values": {
"frame_rate": 16,
"loop_count": 0,
"filename_prefix": "WanVideoWrapper_Skyreels-A2",
"format": "video/h264-mp4",
"pix_fmt": "yuv420p",
"crf": 19,
"save_metadata": true,
"trim_to_audio": false,
"pingpong": false,
"save_output": false,
"videopreview": {
"hidden": false,
"paused": false,
"params": {
"filename": "WanVideoWrapper_Skyreels-A2_00012.mp4",
"subfolder": "",
"type": "temp",
"format": "video/h264-mp4",
"frame_rate": 16,
"workflow": "WanVideoWrapper_Skyreels-A2_00012.png",
"fullpath": "N:\\AI\\ComfyUI\\temp\\WanVideoWrapper_Skyreels-A2_00012.mp4"
}
}
}
},
{
"id": 27,
"type": "WanVideoSampler",
"pos": [
1315.2401123046875,
-401.48028564453125
],
"size": [
315,
682.1923217773438
],
"flags": {},
"order": 78,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"link": 29
},
{
"name": "text_embeds",
"type": "WANVIDEOTEXTEMBEDS",
"link": 30
},
{
"name": "image_embeds",
"type": "WANVIDIMAGE_EMBEDS",
"link": 66
},
{
"name": "samples",
"shape": 7,
"type": "LATENT",
"link": null
},
{
"name": "feta_args",
"shape": 7,
"type": "FETAARGS",
"link": null
},
{
"name": "context_options",
"shape": 7,
"type": "WANVIDCONTEXT",
"link": null
},
{
"name": "cache_args",
"shape": 7,
"type": "CACHEARGS",
"link": 56
},
{
"name": "flowedit_args",
"shape": 7,
"type": "FLOWEDITARGS",
"link": null
},
{
"name": "slg_args",
"shape": 7,
"type": "SLGARGS",
"link": 118
},
{
"name": "loop_args",
"shape": 7,
"type": "LOOPARGS",
"link": null
},
{
"name": "experimental_args",
"shape": 7,
"type": "EXPERIMENTALARGS",
"link": 119
}
],
"outputs": [
{
"name": "samples",
"type": "LATENT",
"slot_index": 0,
"links": [
213
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoSampler"
},
"widgets_values": [
25,
5.000000000000001,
8.000000000000002,
43,
"fixed",
true,
"unipc",
0,
1,
"",
"comfy",
""
]
},
{
"id": 146,
"type": "GetImageRangeFromBatch",
"pos": [
2351.218994140625,
-849.2989501953125
],
"size": [
428.4000244140625,
102
],
"flags": {},
"order": 83,
"mode": 0,
"inputs": [
{
"name": "images",
"shape": 7,
"type": "IMAGE",
"link": 263
},
{
"name": "masks",
"shape": 7,
"type": "MASK",
"link": null
},
{
"name": "num_frames",
"type": "INT",
"widget": {
"name": "num_frames"
},
"link": 266
},
{
"name": "start_index",
"type": "INT",
"widget": {
"name": "start_index"
},
"link": 300
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
308
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "26aea1889d02d0bf072ac9aae0e90e5815ffa175",
"Node name for S&R": "GetImageRangeFromBatch"
},
"widgets_values": [
8,
1
]
},
{
"id": 22,
"type": "WanVideoModelLoader",
"pos": [
-193.5550079345703,
-1207.346923828125
],
"size": [
477.4410095214844,
234
],
"flags": {},
"order": 49,
"mode": 0,
"inputs": [
{
"name": "compile_args",
"shape": 7,
"type": "WANCOMPILEARGS",
"link": null
},
{
"name": "block_swap_args",
"shape": 7,
"type": "BLOCKSWAPARGS",
"link": 319
},
{
"name": "lora",
"shape": 7,
"type": "WANVIDLORA",
"link": null
},
{
"name": "vram_management_args",
"shape": 7,
"type": "VRAM_MANAGEMENTARGS",
"link": null
},
{
"name": "vace_model",
"shape": 7,
"type": "VACEPATH",
"link": null
}
],
"outputs": [
{
"name": "model",
"type": "WANVIDEOMODEL",
"slot_index": 0,
"links": [
29,
79
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
"Node name for S&R": "WanVideoModelLoader"
},
"widgets_values": [
"WanVideo\\Wan2_1_SkyreelsA2_fp8_e4m3fn.safetensors",
"fp16",
"fp8_e4m3fn",
"offload_device",
"sdpa"
],
"color": "#223",
"bgcolor": "#335"
}
],
"links": [
[
15,
11,
0,
16,
0,
"WANTEXTENCODER"
],
[
29,
22,
0,
27,
0,
"WANVIDEOMODEL"
],
[
30,
16,
0,
27,
1,
"WANVIDEOTEXTEMBEDS"
],
[
43,
38,
0,
28,
0,
"VAE"
],
[
52,
48,
0,
49,
0,
"CLIP"
],
[
53,
48,
0,
50,
0,
"CLIP"
],
[
54,
49,
0,
46,
0,
"CONDITIONING"
],
[
55,
50,
0,
46,
1,
"CONDITIONING"
],
[
56,
52,
0,
27,
6,
"TEACACHEARGS"
],
[
66,
63,
0,
27,
2,
"WANVIDIMAGE_EMBEDS"
],
[
70,
59,
0,
65,
0,
"CLIP_VISION"
],
[
79,
22,
0,
16,
1,
"WANVIDEOMODEL"
],
[
81,
38,
0,
63,
0,
"WANVAE"
],
[
82,
65,
0,
63,
1,
"WANVIDIMAGE_CLIPEMBEDS"
],
[
92,
74,
0,
75,
0,
"REMBG_SESSION"
],
[
93,
69,
0,
75,
1,
"IMAGE"
],
[
99,
78,
1,
77,
0,
"INT"
],
[
100,
78,
2,
77,
1,
"INT"
],
[
101,
78,
3,
77,
2,
"INT"
],
[
102,
77,
0,
76,
0,
"IMAGE"
],
[
110,
75,
1,
76,
2,
"MASK"
],
[
111,
69,
0,
78,
0,
"IMAGE"
],
[
114,
78,
0,
76,
1,
"IMAGE"
],
[
118,
81,
0,
27,
8,
"SLGARGS"
],
[
119,
82,
0,
27,
10,
"EXPERIMENTALARGS"
],
[
203,
111,
0,
114,
0,
"IMAGE"
],
[
205,
110,
0,
115,
0,
"IMAGE"
],
[
213,
27,
0,
28,
1,
"LATENT"
],
[
216,
119,
0,
120,
0,
"REMBG_SESSION"
],
[
217,
122,
0,
121,
0,
"IMAGE"
],
[
218,
123,
0,
121,
1,
"IMAGE"
],
[
219,
120,
1,
121,
2,
"MASK"
],
[
220,
123,
1,
122,
0,
"INT"
],
[
221,
123,
2,
122,
1,
"INT"
],
[
222,
123,
3,
122,
2,
"INT"
],
[
225,
58,
0,
123,
0,
"IMAGE"
],
[
227,
58,
0,
120,
1,
"IMAGE"
],
[
232,
126,
0,
127,
0,
"IMAGE"
],
[
237,
128,
0,
130,
0,
"IMAGE"
],
[
241,
130,
0,
131,
1,
"IMAGE"
],
[
248,
132,
0,
133,
0,
"IMAGE"
],
[
249,
132,
0,
65,
1,
"IMAGE"
],
[
254,
140,
0,
70,
4,
"INT"
],
[
255,
141,
0,
70,
5,
"INT"
],
[
257,
143,
0,
127,
5,
"INT"
],
[
262,
28,
0,
147,
0,
"IMAGE"
],
[
263,
147,
0,
146,
0,
"IMAGE"
],
[
264,
147,
3,
148,
0,
"*"
],
[
266,
148,
0,
146,
2,
"INT"
],
[
268,
107,
0,
128,
0,
"IMAGE"
],
[
269,
149,
0,
128,
1,
"IMAGE"
],
[
270,
127,
0,
149,
0,
"*"
],
[
273,
151,
0,
132,
1,
"IMAGE"
],
[
274,
150,
0,
132,
2,
"IMAGE"
],
[
276,
152,
0,
131,
0,
"IMAGE"
],
[
277,
153,
0,
132,
0,
"IMAGE"
],
[
278,
154,
0,
156,
0,
"*"
],
[
279,
155,
0,
157,
0,
"*"
],
[
280,
158,
0,
124,
2,
"INT"
],
[
281,
159,
0,
124,
3,
"INT"
],
[
282,
158,
0,
125,
2,
"INT"
],
[
283,
159,
0,
125,
3,
"INT"
],
[
284,
121,
0,
124,
0,
"IMAGE"
],
[
285,
124,
0,
125,
0,
"IMAGE"
],
[
287,
76,
0,
70,
0,
"IMAGE"
],
[
288,
140,
0,
71,
2,
"INT"
],
[
289,
141,
0,
71,
3,
"INT"
],
[
290,
71,
0,
107,
0,
"IMAGE"
],
[
291,
70,
0,
71,
0,
"IMAGE"
],
[
292,
125,
0,
152,
0,
"IMAGE"
],
[
293,
161,
0,
63,
4,
"INT"
],
[
294,
162,
0,
63,
5,
"INT"
],
[
295,
131,
0,
164,
0,
"IMAGE"
],
[
296,
164,
0,
79,
0,
"IMAGE"
],
[
297,
164,
0,
63,
2,
"IMAGE"
],
[
298,
164,
3,
165,
0,
"*"
],
[
299,
166,
0,
148,
1,
"*"
],
[
300,
166,
0,
146,
3,
"INT"
],
[
301,
167,
0,
168,
0,
"IMAGE"
],
[
302,
114,
0,
169,
0,
"IMAGE"
],
[
303,
115,
0,
169,
1,
"IMAGE"
],
[
304,
168,
0,
169,
2,
"IMAGE"
],
[
308,
146,
0,
172,
0,
"IMAGE"
],
[
310,
171,
0,
172,
1,
"IMAGE"
],
[
311,
147,
2,
171,
0,
"INT"
],
[
313,
169,
0,
172,
2,
"IMAGE"
],
[
316,
142,
0,
127,
4,
"INT"
],
[
319,
39,
0,
22,
1,
"BLOCKSWAPARGS"
],
[
322,
172,
0,
176,
0,
"IMAGE"
],
[
323,
176,
0,
30,
0,
"IMAGE"
]
],
"groups": [
{
"id": 1,
"title": "ComfyUI text encoding alternative",
"bounding": [
419.6309509277344,
982.032958984375,
1210.621337890625,
805.9080810546875
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "BackgroundImage",
"bounding": [
-2256.33154296875,
1610.2728271484375,
1534.1455078125,
726.2926025390625
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "Subject2Image",
"bounding": [
-2255.45849609375,
667.4461669921875,
1535.2684326171875,
888.8194580078125
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Subject1Image",
"bounding": [
-2244.50927734375,
-286.994873046875,
1513.734619140625,
928.5072021484375
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "Models",
"bounding": [
-1030.2154541015625,
-1704.8006591796875,
1873.1846923828125,
1086.119140625
],
"color": "#88A",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.672749994932563,
"offset": [
1656.886807561992,
1833.5210825782879
]
},
"node_versions": {
"ComfyUI-WanVideoWrapper": "5a2383621a05825d0d0437781afcb8552d9590fd",
"comfy-core": "0.3.26",
"ComfyUI-KJNodes": "a5bd3c86c8ed6b83c55c2d0e7a59515b15a0137f",
"ComfyUI-VideoHelperSuite": "0a75c7958fe320efcb052f1d9f8451fd20c730a8"
},
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}