diff --git a/example_workflows/wanvideo_Stand-In_reference_example_01.json b/example_workflows/wanvideo_Stand-In_reference_example_01.json
index e7e1962..2b93a8d 100644
--- a/example_workflows/wanvideo_Stand-In_reference_example_01.json
+++ b/example_workflows/wanvideo_Stand-In_reference_example_01.json
@@ -1,22 +1,22 @@
{
"id": "206247b6-9fec-4ed2-8927-e4f388c674d4",
"revision": 0,
- "last_node_id": 126,
- "last_link_id": 222,
+ "last_node_id": 158,
+ "last_link_id": 293,
"nodes": [
{
"id": 46,
"type": "WanVideoTextEmbedBridge",
"pos": [
- 943.1697387695312,
- 1096.8651123046875
+ 1299.560546875,
+ 858.9187622070312
],
"size": [
315,
46
],
"flags": {},
- "order": 21,
+ "order": 23,
"mode": 2,
"inputs": [
{
@@ -49,15 +49,15 @@
"id": 50,
"type": "CLIPTextEncode",
"pos": [
- 493.1703796386719,
- 1356.8651123046875
+ 849.561279296875,
+ 1118.9183349609375
],
"size": [
400,
200
],
"flags": {},
- "order": 17,
+ "order": 19,
"mode": 2,
"inputs": [
{
@@ -89,15 +89,15 @@
"id": 49,
"type": "CLIPTextEncode",
"pos": [
- 493.1703796386719,
- 1106.8651123046875
+ 849.561279296875,
+ 868.9187622070312
],
"size": [
400,
200
],
"flags": {},
- "order": 16,
+ "order": 18,
"mode": 2,
"inputs": [
{
@@ -125,65 +125,19 @@
"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": 36,
- "type": "Note",
- "pos": [
- 160,
- -1010
- ],
- "size": [
- 374.3061828613281,
- 171.9547576904297
- ],
- "flags": {},
- "order": 0,
- "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": [
- 170,
- -1150
- ],
- "size": [
- 359.0753479003906,
- 88
- ],
- "flags": {},
- "order": 1,
- "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": [
- 163.1707763671875,
- 936.8648071289062
+ 519.5615844726562,
+ 698.91845703125
],
"size": [
253.16725158691406,
88
],
"flags": {},
- "order": 2,
+ "order": 0,
"mode": 2,
"inputs": [],
"outputs": [],
@@ -206,7 +160,7 @@
130
],
"flags": {},
- "order": 3,
+ "order": 1,
"mode": 0,
"inputs": [],
"outputs": [
@@ -237,15 +191,15 @@
"id": 48,
"type": "CLIPLoader",
"pos": [
- 133.1708221435547,
- 1106.8651123046875
+ 489.5616455078125,
+ 868.9187622070312
],
"size": [
315,
106
],
"flags": {},
- "order": 4,
+ "order": 2,
"mode": 2,
"inputs": [],
"outputs": [
@@ -282,7 +236,7 @@
46
],
"flags": {},
- "order": 23,
+ "order": 25,
"mode": 0,
"inputs": [
{
@@ -315,19 +269,1555 @@
"color": "#223",
"bgcolor": "#335"
},
+ {
+ "id": 35,
+ "type": "WanVideoTorchCompileSettings",
+ "pos": [
+ -276.8500671386719,
+ -1050.6326904296875
+ ],
+ "size": [
+ 390.5999755859375,
+ 202
+ ],
+ "flags": {},
+ "order": 3,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "torch_compile_args",
+ "type": "WANCOMPILEARGS",
+ "slot_index": 0,
+ "links": [
+ 211
+ ]
+ }
+ ],
+ "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": 28,
+ "type": "WanVideoDecode",
+ "pos": [
+ 1446.94677734375,
+ -808.8124389648438
+ ],
+ "size": [
+ 315,
+ 198
+ ],
+ "flags": {},
+ "order": 42,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "vae",
+ "type": "WANVAE",
+ "link": 43
+ },
+ {
+ "name": "samples",
+ "type": "LATENT",
+ "link": 33
+ }
+ ],
+ "outputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "slot_index": 0,
+ "links": [
+ 218
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
+ "Node name for S&R": "WanVideoDecode"
+ },
+ "widgets_values": [
+ false,
+ 272,
+ 272,
+ 144,
+ 128,
+ "default"
+ ],
+ "color": "#322",
+ "bgcolor": "#533"
+ },
+ {
+ "id": 39,
+ "type": "WanVideoBlockSwap",
+ "pos": [
+ 709.6087646484375,
+ -658.9224853515625
+ ],
+ "size": [
+ 315,
+ 202
+ ],
+ "flags": {},
+ "order": 4,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "block_swap_args",
+ "type": "BLOCKSWAPARGS",
+ "slot_index": 0,
+ "links": [
+ 92
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
+ "Node name for S&R": "WanVideoBlockSwap"
+ },
+ "widgets_values": [
+ 15,
+ false,
+ false,
+ true,
+ 0,
+ 1,
+ false
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 38,
+ "type": "WanVideoVAELoader",
+ "pos": [
+ 183.16864013671875,
+ -261.20465087890625
+ ],
+ "size": [
+ 372.7727966308594,
+ 82
+ ],
+ "flags": {},
+ "order": 5,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "compile_args",
+ "shape": 7,
+ "type": "WANCOMPILEARGS",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "vae",
+ "type": "WANVAE",
+ "slot_index": 0,
+ "links": [
+ 43,
+ 175
+ ]
+ }
+ ],
+ "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": 79,
+ "type": "WanVideoSetLoRAs",
+ "pos": [
+ 1133.248291015625,
+ -698.7440795898438
+ ],
+ "size": [
+ 239.93698120117188,
+ 46
+ ],
+ "flags": {},
+ "order": 27,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "link": 107
+ },
+ {
+ "name": "lora",
+ "shape": 7,
+ "type": "WANVIDLORA",
+ "link": 210
+ }
+ ],
+ "outputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "links": [
+ 108
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "7c93aea182a0d7084bfbc18ae36f039ea3845e73",
+ "Node name for S&R": "WanVideoSetLoRAs"
+ },
+ "widgets_values": [],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 123,
+ "type": "PrimitiveNode",
+ "pos": [
+ -225.1419219970703,
+ -412.62811279296875
+ ],
+ "size": [
+ 210,
+ 82
+ ],
+ "flags": {},
+ "order": 6,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "INT",
+ "type": "INT",
+ "widget": {
+ "name": "width"
+ },
+ "links": [
+ 220
+ ]
+ }
+ ],
+ "title": "width",
+ "properties": {
+ "Run widget replace on values": false
+ },
+ "widgets_values": [
+ 832,
+ "fixed"
+ ],
+ "color": "#2a363b",
+ "bgcolor": "#3f5159"
+ },
+ {
+ "id": 124,
+ "type": "PrimitiveNode",
+ "pos": [
+ -226.0428009033203,
+ -278.3983154296875
+ ],
+ "size": [
+ 210,
+ 82
+ ],
+ "flags": {},
+ "order": 7,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "INT",
+ "type": "INT",
+ "widget": {
+ "name": "height"
+ },
+ "links": [
+ 221
+ ]
+ }
+ ],
+ "title": "height",
+ "properties": {
+ "Run widget replace on values": false
+ },
+ "widgets_values": [
+ 480,
+ "fixed"
+ ],
+ "color": "#2a363b",
+ "bgcolor": "#3f5159"
+ },
+ {
+ "id": 125,
+ "type": "PrimitiveNode",
+ "pos": [
+ -226.0429229736328,
+ -136.0607147216797
+ ],
+ "size": [
+ 210,
+ 82
+ ],
+ "flags": {},
+ "order": 8,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "INT",
+ "type": "INT",
+ "widget": {
+ "name": "num_frames"
+ },
+ "links": [
+ 222
+ ]
+ }
+ ],
+ "title": "num_frames",
+ "properties": {
+ "Run widget replace on values": false
+ },
+ "widgets_values": [
+ 81,
+ "fixed"
+ ],
+ "color": "#2a363b",
+ "bgcolor": "#3f5159"
+ },
+ {
+ "id": 126,
+ "type": "MarkdownNote",
+ "pos": [
+ -856.6663208007812,
+ -743.9132690429688
+ ],
+ "size": [
+ 362.6117858886719,
+ 143.0945281982422
+ ],
+ "flags": {},
+ "order": 9,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "LoRA link:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Stand-In](https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Stand-In)\n\nThis LoRA is not the traditional kind and it HAS TO connect to the model loader directly."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 121,
+ "type": "PreviewImage",
+ "pos": [
+ -29.90178108215332,
+ 406.4158630371094
+ ],
+ "size": [
+ 269.3977966308594,
+ 292.68145751953125
+ ],
+ "flags": {},
+ "order": 39,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "link": 215
+ }
+ ],
+ "outputs": [],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.49",
+ "Node name for S&R": "PreviewImage"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 122,
+ "type": "ImageConcatMulti",
+ "pos": [
+ 1852.3680419921875,
+ -632.4982299804688
+ ],
+ "size": [
+ 270,
+ 150
+ ],
+ "flags": {},
+ "order": 43,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image_1",
+ "type": "IMAGE",
+ "link": 218
+ },
+ {
+ "name": "image_2",
+ "shape": 7,
+ "type": "IMAGE",
+ "link": 219
+ }
+ ],
+ "outputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "links": [
+ 217
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44"
+ },
+ "widgets_values": [
+ 2,
+ "left",
+ true,
+ null
+ ]
+ },
+ {
+ "id": 16,
+ "type": "WanVideoTextEncode",
+ "pos": [
+ 938.7926025390625,
+ -17.56817054748535
+ ],
+ "size": [
+ 475.7987976074219,
+ 355.67169189453125
+ ],
+ "flags": {},
+ "order": 24,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "t5",
+ "shape": 7,
+ "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": [
+ "In a corridor where the walls ripple like water, a woman reaches out to touch the flowing surface, causing circles of ripples to spread. The camera moves from a medium shot to a close-up, capturing her curious expression as she sees her distorted reflection",
+ "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",
+ true,
+ false,
+ "gpu"
+ ],
+ "color": "#332922",
+ "bgcolor": "#593930"
+ },
+ {
+ "id": 71,
+ "type": "WanVideoLoraSelect",
+ "pos": [
+ 1039.67724609375,
+ -1149.5599365234375
+ ],
+ "size": [
+ 583.5029907226562,
+ 176
+ ],
+ "flags": {},
+ "order": 10,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "prev_lora",
+ "shape": 7,
+ "type": "WANVIDLORA",
+ "link": null
+ },
+ {
+ "name": "blocks",
+ "shape": 7,
+ "type": "SELECTEDBLOCKS",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "lora",
+ "type": "WANVIDLORA",
+ "links": [
+ 210
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "6b9565ed6307168c45770ec08517d7df65b61e3f",
+ "Node name for S&R": "WanVideoLoraSelect"
+ },
+ "widgets_values": [
+ "WanVideo\\Lightx2v\\lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16_.safetensors",
+ 1,
+ false,
+ false
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 22,
+ "type": "WanVideoModelLoader",
+ "pos": [
+ 150,
+ -780
+ ],
+ "size": [
+ 535.5307006835938,
+ 294
+ ],
+ "flags": {},
+ "order": 21,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "compile_args",
+ "shape": 7,
+ "type": "WANCOMPILEARGS",
+ "link": 211
+ },
+ {
+ "name": "block_swap_args",
+ "shape": 7,
+ "type": "BLOCKSWAPARGS",
+ "link": null
+ },
+ {
+ "name": "lora",
+ "shape": 7,
+ "type": "WANVIDLORA",
+ "link": 170
+ },
+ {
+ "name": "vram_management_args",
+ "shape": 7,
+ "type": "VRAM_MANAGEMENTARGS",
+ "link": null
+ },
+ {
+ "name": "vace_model",
+ "shape": 7,
+ "type": "VACEPATH",
+ "link": null
+ },
+ {
+ "name": "fantasytalking_model",
+ "shape": 7,
+ "type": "FANTASYTALKINGMODEL",
+ "link": null
+ },
+ {
+ "name": "multitalk_model",
+ "shape": 7,
+ "type": "MULTITALKMODEL",
+ "link": null
+ },
+ {
+ "name": "fantasyportrait_model",
+ "shape": 7,
+ "type": "FANTASYPORTRAITMODEL",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "slot_index": 0,
+ "links": [
+ 79,
+ 90
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
+ "Node name for S&R": "WanVideoModelLoader"
+ },
+ "widgets_values": [
+ "WanVideo\\fp8_scaled_kj\\T2V\\Wan2_1-T2V-14B_fp8_e4m3fn_scaled_KJ.safetensors",
+ "fp16_fast",
+ "fp8_e4m3fn_scaled",
+ "offload_device",
+ "sageattn"
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 69,
+ "type": "WanVideoLoraSelect",
+ "pos": [
+ -470.2064208984375,
+ -736.2723388671875
+ ],
+ "size": [
+ 583.5029907226562,
+ 200
+ ],
+ "flags": {},
+ "order": 11,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "prev_lora",
+ "shape": 7,
+ "type": "WANVIDLORA",
+ "link": null
+ },
+ {
+ "name": "blocks",
+ "shape": 7,
+ "type": "SELECTEDBLOCKS",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "lora",
+ "type": "WANVIDLORA",
+ "links": [
+ 170
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "6b9565ed6307168c45770ec08517d7df65b61e3f",
+ "Node name for S&R": "WanVideoLoraSelect"
+ },
+ "widgets_values": [
+ "WanVideo\\Stand-In\\Stand-In_wan2.1_T2V_14B_ver1.0.safetensors",
+ 1,
+ false,
+ false,
+ "Metadata
"
+ ]
+ },
+ {
+ "id": 68,
+ "type": "ImageResizeKJv2",
+ "pos": [
+ -33.96096420288086,
+ -0.08482001721858978
+ ],
+ "size": [
+ 270,
+ 336.0000305175781
+ ],
+ "flags": {},
+ "order": 37,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 227
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 208,
+ 215,
+ 219
+ ]
+ },
+ {
+ "name": "width",
+ "type": "INT",
+ "links": []
+ },
+ {
+ "name": "height",
+ "type": "INT",
+ "links": []
+ },
+ {
+ "name": "mask",
+ "type": "MASK",
+ "links": []
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "ad37ce656c13e9abea002b46e3a89be3dba32355",
+ "Node name for S&R": "ImageResizeKJv2"
+ },
+ "widgets_values": [
+ 512,
+ 512,
+ "lanczos",
+ "pad",
+ "255,255,255",
+ "center",
+ 16,
+ "cpu",
+ "
| Output: | 1 x 512 x 512 | 3.00MB |
"
+ ]
+ },
+ {
+ "id": 144,
+ "type": "MediaPipe-FaceMeshPreprocessor",
+ "pos": [
+ -1326.5618896484375,
+ 288.2899475097656
+ ],
+ "size": [
+ 270,
+ 106
+ ],
+ "flags": {},
+ "order": 28,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 260
+ },
+ {
+ "name": "resolution",
+ "shape": 7,
+ "type": "INT",
+ "widget": {
+ "name": "resolution"
+ },
+ "link": 274
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 271
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui_controlnet_aux",
+ "ver": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
+ "Node name for S&R": "MediaPipe-FaceMeshPreprocessor"
+ },
+ "widgets_values": [
+ 10,
+ 0.5,
+ 512
+ ]
+ },
+ {
+ "id": 152,
+ "type": "PixelPerfectResolution",
+ "pos": [
+ -1550.9462890625,
+ 434.7625732421875
+ ],
+ "size": [
+ 291.71484375,
+ 106
+ ],
+ "flags": {
+ "collapsed": true
+ },
+ "order": 26,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "original_image",
+ "type": "IMAGE",
+ "link": 278
+ },
+ {
+ "name": "image_gen_width",
+ "type": "INT",
+ "widget": {
+ "name": "image_gen_width"
+ },
+ "link": 276
+ },
+ {
+ "name": "image_gen_height",
+ "type": "INT",
+ "widget": {
+ "name": "image_gen_height"
+ },
+ "link": 277
+ }
+ ],
+ "outputs": [
+ {
+ "name": "RESOLUTION (INT)",
+ "type": "INT",
+ "links": [
+ 274,
+ 275,
+ 281
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui_controlnet_aux",
+ "ver": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
+ "Node name for S&R": "PixelPerfectResolution"
+ },
+ "widgets_values": [
+ 512,
+ 512,
+ "Just Resize"
+ ]
+ },
+ {
+ "id": 132,
+ "type": "ImageToMask",
+ "pos": [
+ -1029.715576171875,
+ 291.0230407714844
+ ],
+ "size": [
+ 270,
+ 58
+ ],
+ "flags": {
+ "collapsed": false
+ },
+ "order": 30,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 291
+ }
+ ],
+ "outputs": [
+ {
+ "name": "MASK",
+ "type": "MASK",
+ "links": [
+ 256,
+ 284
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.50",
+ "Node name for S&R": "ImageToMask"
+ },
+ "widgets_values": [
+ "red"
+ ]
+ },
+ {
+ "id": 151,
+ "type": "BinaryPreprocessor",
+ "pos": [
+ -1325.421142578125,
+ 461.4793701171875
+ ],
+ "size": [
+ 270,
+ 82
+ ],
+ "flags": {},
+ "order": 29,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 271
+ },
+ {
+ "name": "resolution",
+ "shape": 7,
+ "type": "INT",
+ "widget": {
+ "name": "resolution"
+ },
+ "link": 275
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 291
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui_controlnet_aux",
+ "ver": "1d7cdce8cb771fbc39a432a6338168c12a338ef4",
+ "Node name for S&R": "BinaryPreprocessor"
+ },
+ "widgets_values": [
+ 100,
+ 512
+ ]
+ },
+ {
+ "id": 58,
+ "type": "LoadImage",
+ "pos": [
+ -2133.34521484375,
+ -24.118581771850586
+ ],
+ "size": [
+ 413.10479736328125,
+ 498.3180847167969
+ ],
+ "flags": {},
+ "order": 12,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 292
+ ]
+ },
+ {
+ "name": "MASK",
+ "type": "MASK",
+ "links": []
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.26",
+ "Node name for S&R": "LoadImage"
+ },
+ "widgets_values": [
+ "pasted/image (970).png",
+ "image"
+ ],
+ "color": "#2a363b",
+ "bgcolor": "#3f5159"
+ },
+ {
+ "id": 142,
+ "type": "ImageResizeKJv2",
+ "pos": [
+ -1675.4661865234375,
+ -21.95042610168457
+ ],
+ "size": [
+ 270,
+ 336.0000305175781
+ ],
+ "flags": {},
+ "order": 22,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 292
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 257,
+ 260,
+ 278
+ ]
+ },
+ {
+ "name": "width",
+ "type": "INT",
+ "links": [
+ 276
+ ]
+ },
+ {
+ "name": "height",
+ "type": "INT",
+ "links": [
+ 277
+ ]
+ },
+ {
+ "name": "mask",
+ "type": "MASK",
+ "links": []
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "ad37ce656c13e9abea002b46e3a89be3dba32355",
+ "Node name for S&R": "ImageResizeKJv2"
+ },
+ "widgets_values": [
+ 512,
+ 512,
+ "lanczos",
+ "pad",
+ "255,255,255",
+ "center",
+ 16,
+ "cpu",
+ "| Output: | 1 x 512 x 512 | 3.00MB |
"
+ ]
+ },
+ {
+ "id": 153,
+ "type": "MaskPreview",
+ "pos": [
+ -1009.8248291015625,
+ 428.6866149902344
+ ],
+ "size": [
+ 140,
+ 246.00003051757812
+ ],
+ "flags": {},
+ "order": 32,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "mask",
+ "type": "MASK",
+ "link": 284
+ }
+ ],
+ "outputs": [],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.50",
+ "Node name for S&R": "MaskPreview"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 143,
+ "type": "ImageCropByMaskAndResize",
+ "pos": [
+ -1273.0650634765625,
+ -13.614867210388184
+ ],
+ "size": [
+ 306.0923767089844,
+ 170
+ ],
+ "flags": {},
+ "order": 31,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 257
+ },
+ {
+ "name": "mask",
+ "type": "MASK",
+ "link": 256
+ },
+ {
+ "name": "base_resolution",
+ "type": "INT",
+ "widget": {
+ "name": "base_resolution"
+ },
+ "link": 281
+ }
+ ],
+ "outputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "links": [
+ 255,
+ 282,
+ 283
+ ]
+ },
+ {
+ "name": "masks",
+ "type": "MASK",
+ "links": null
+ },
+ {
+ "name": "bbox",
+ "type": "BBOX",
+ "links": null
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44",
+ "Node name for S&R": "ImageCropByMaskAndResize"
+ },
+ "widgets_values": [
+ 512,
+ 100,
+ 128,
+ 512
+ ]
+ },
+ {
+ "id": 136,
+ "type": "PreviewImage",
+ "pos": [
+ -901.9127807617188,
+ -22.98084259033203
+ ],
+ "size": [
+ 140,
+ 246.00001525878906
+ ],
+ "flags": {},
+ "order": 33,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "link": 255
+ }
+ ],
+ "outputs": [],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.50",
+ "Node name for S&R": "PreviewImage"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 127,
+ "type": "TransparentBGSession+",
+ "pos": [
+ -1255.6700439453125,
+ -228.02297973632812
+ ],
+ "size": [
+ 299.1265563964844,
+ 82
+ ],
+ "flags": {},
+ "order": 13,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "REMBG_SESSION",
+ "type": "REMBG_SESSION",
+ "links": [
+ 223
+ ]
+ }
+ ],
+ "properties": {
+ "aux_id": "kijai/ComfyUI_essentials",
+ "ver": "76e9d1e4399bd025ce8b12c290753d58f9f53e93",
+ "Node name for S&R": "TransparentBGSession+"
+ },
+ "widgets_values": [
+ "base",
+ true
+ ]
+ },
+ {
+ "id": 128,
+ "type": "ImageRemoveBackground+",
+ "pos": [
+ -912.7180786132812,
+ -221.90872192382812
+ ],
+ "size": [
+ 236.54940795898438,
+ 46
+ ],
+ "flags": {},
+ "order": 34,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "rembg_session",
+ "type": "REMBG_SESSION",
+ "link": 223
+ },
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 282
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": null
+ },
+ {
+ "name": "MASK",
+ "type": "MASK",
+ "links": [
+ 225
+ ]
+ }
+ ],
+ "properties": {
+ "aux_id": "kijai/ComfyUI_essentials",
+ "ver": "76e9d1e4399bd025ce8b12c290753d58f9f53e93",
+ "Node name for S&R": "ImageRemoveBackground+"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 108,
+ "type": "ImageCompositeMasked",
+ "pos": [
+ -590.6484375,
+ 150.45697021484375
+ ],
+ "size": [
+ 270,
+ 147.090087890625
+ ],
+ "flags": {
+ "collapsed": false
+ },
+ "order": 35,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "destination",
+ "type": "IMAGE",
+ "link": 181
+ },
+ {
+ "name": "source",
+ "type": "IMAGE",
+ "link": 283
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": 225
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 226
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.49",
+ "Node name for S&R": "ImageCompositeMasked"
+ },
+ "widgets_values": [
+ 0,
+ 0,
+ false
+ ]
+ },
+ {
+ "id": 109,
+ "type": "EmptyImage",
+ "pos": [
+ -587.3565673828125,
+ 86.43392181396484
+ ],
+ "size": [
+ 270,
+ 130
+ ],
+ "flags": {
+ "collapsed": true
+ },
+ "order": 14,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 181
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.49",
+ "Node name for S&R": "EmptyImage"
+ },
+ "widgets_values": [
+ 512,
+ 512,
+ 1,
+ 16777215
+ ]
+ },
+ {
+ "id": 129,
+ "type": "ImagePadKJ",
+ "pos": [
+ -584.8804321289062,
+ 372.4350891113281
+ ],
+ "size": [
+ 270,
+ 262
+ ],
+ "flags": {},
+ "order": 36,
+ "mode": 4,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 226
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": null
+ },
+ {
+ "name": "target_width",
+ "shape": 7,
+ "type": "INT",
+ "link": null
+ },
+ {
+ "name": "target_height",
+ "shape": 7,
+ "type": "INT",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "links": [
+ 227
+ ]
+ },
+ {
+ "name": "masks",
+ "type": "MASK",
+ "links": null
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44",
+ "Node name for S&R": "ImagePadKJ"
+ },
+ "widgets_values": [
+ 0,
+ 0,
+ 0,
+ 0,
+ 64,
+ "color",
+ "255,255,255"
+ ]
+ },
+ {
+ "id": 158,
+ "type": "Note",
+ "pos": [
+ -1909.0865478515625,
+ -265.8423767089844
+ ],
+ "size": [
+ 448.52191162109375,
+ 88
+ ],
+ "flags": {},
+ "order": 15,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "The goal is to simply face your subject on white background."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 74,
+ "type": "VHS_VideoCombine",
+ "pos": [
+ 1827.70947265625,
+ -417.2612609863281
+ ],
+ "size": [
+ 1022.6397094726562,
+ 714.8193969726562
+ ],
+ "flags": {},
+ "order": 44,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "link": 217
+ },
+ {
+ "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_T2V_Stand_In",
+ "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_T2V_Stand_In_00003.mp4",
+ "subfolder": "",
+ "type": "temp",
+ "format": "video/h264-mp4",
+ "frame_rate": 16,
+ "workflow": "WanVideoWrapper_T2V_Stand_In_00003.png",
+ "fullpath": "N:\\AI\\ComfyUI\\temp\\WanVideoWrapper_T2V_Stand_In_00003.mp4"
+ }
+ }
+ }
+ },
{
"id": 27,
"type": "WanVideoSampler",
"pos": [
- 1434.9656982421875,
- -536.9714965820312
+ 1462.7750244140625,
+ -540.9441528320312
],
"size": [
315,
873.39453125
],
"flags": {},
- "order": 31,
+ "order": 41,
"mode": 0,
"inputs": [
{
@@ -455,7 +1945,7 @@
4,
1,
5,
- 44,
+ 50,
"fixed",
true,
"dpm++_sde",
@@ -470,910 +1960,53 @@
]
},
{
- "id": 104,
- "type": "WanVideoEncode",
+ "id": 102,
+ "type": "WanVideoAddStandInLatent",
"pos": [
- 296.0429382324219,
- -27.93423843383789
+ 626.6787109375,
+ -36.9838752746582
],
"size": [
- 270,
- 242
+ 246.94578552246094,
+ 57.857322692871094
],
"flags": {},
- "order": 28,
+ "order": 40,
"mode": 0,
"inputs": [
{
- "name": "vae",
- "type": "WANVAE",
- "link": 175
+ "name": "embeds",
+ "type": "WANVIDIMAGE_EMBEDS",
+ "link": 171
},
{
- "name": "image",
- "type": "IMAGE",
- "link": 208
- },
- {
- "name": "mask",
- "shape": 7,
- "type": "MASK",
- "link": null
+ "name": "ip_image_latent",
+ "type": "LATENT",
+ "link": 174
}
],
"outputs": [
{
- "name": "samples",
- "type": "LATENT",
+ "name": "image_embeds",
+ "type": "WANVIDIMAGE_EMBEDS",
"links": [
- 174
+ 172
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "06863fe2d283e89ba2386260ad2700557dda1897",
- "Node name for S&R": "WanVideoEncode"
- },
- "widgets_values": [
- false,
- 272,
- 272,
- 144,
- 128,
- 0,
- 1
- ]
- },
- {
- "id": 22,
- "type": "WanVideoModelLoader",
- "pos": [
- 150,
- -780
- ],
- "size": [
- 535.5307006835938,
- 274
- ],
- "flags": {},
- "order": 18,
- "mode": 0,
- "inputs": [
- {
- "name": "compile_args",
- "shape": 7,
- "type": "WANCOMPILEARGS",
- "link": 211
- },
- {
- "name": "block_swap_args",
- "shape": 7,
- "type": "BLOCKSWAPARGS",
- "link": null
- },
- {
- "name": "lora",
- "shape": 7,
- "type": "WANVIDLORA",
- "link": 170
- },
- {
- "name": "vram_management_args",
- "shape": 7,
- "type": "VRAM_MANAGEMENTARGS",
- "link": null
- },
- {
- "name": "vace_model",
- "shape": 7,
- "type": "VACEPATH",
- "link": null
- },
- {
- "name": "fantasytalking_model",
- "shape": 7,
- "type": "FANTASYTALKINGMODEL",
- "link": null
- },
- {
- "name": "multitalk_model",
- "shape": 7,
- "type": "MULTITALKMODEL",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "model",
- "type": "WANVIDEOMODEL",
- "slot_index": 0,
- "links": [
- 79,
- 90
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
- "Node name for S&R": "WanVideoModelLoader"
- },
- "widgets_values": [
- "WanVideo\\fp8_scaled_kj\\T2V\\Wan2_1-T2V-14B_fp8_e4m3fn_scaled_KJ.safetensors",
- "fp16_fast",
- "fp8_e4m3fn_scaled",
- "offload_device",
- "sageattn"
- ],
- "color": "#223",
- "bgcolor": "#335"
- },
- {
- "id": 35,
- "type": "WanVideoTorchCompileSettings",
- "pos": [
- -276.8500671386719,
- -1050.6326904296875
- ],
- "size": [
- 390.5999755859375,
- 202
- ],
- "flags": {},
- "order": 5,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "torch_compile_args",
- "type": "WANCOMPILEARGS",
- "slot_index": 0,
- "links": [
- 211
- ]
- }
- ],
- "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": 69,
- "type": "WanVideoLoraSelect",
- "pos": [
- -470.2064208984375,
- -736.2723388671875
- ],
- "size": [
- 583.5029907226562,
- 200
- ],
- "flags": {},
- "order": 6,
- "mode": 0,
- "inputs": [
- {
- "name": "prev_lora",
- "shape": 7,
- "type": "WANVIDLORA",
- "link": null
- },
- {
- "name": "blocks",
- "shape": 7,
- "type": "SELECTEDBLOCKS",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "lora",
- "type": "WANVIDLORA",
- "links": [
- 170
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "6b9565ed6307168c45770ec08517d7df65b61e3f",
- "Node name for S&R": "WanVideoLoraSelect"
- },
- "widgets_values": [
- "WanVideo\\Stand-In\\Stand-In_wan2.1_T2V_14B_ver1.0.safetensors",
- 1,
- false,
- false,
- "Metadata
"
- ]
- },
- {
- "id": 110,
- "type": "GetImageSizeAndCount",
- "pos": [
- -466.2115478515625,
- 553.8060913085938
- ],
- "size": [
- 190.86483764648438,
- 86
- ],
- "flags": {},
- "order": 19,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 212
- }
- ],
- "outputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "links": [
- 190
- ]
- },
- {
- "label": "379 width",
- "name": "width",
- "type": "INT",
- "links": [
- 188
- ]
- },
- {
- "label": "430 height",
- "name": "height",
- "type": "INT",
- "links": [
- 189
- ]
- },
- {
- "label": "1 count",
- "name": "count",
- "type": "INT",
- "links": null
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44",
- "Node name for S&R": "GetImageSizeAndCount"
+ "Node name for S&R": "WanVideoAddStandInLatent"
},
"widgets_values": []
},
- {
- "id": 58,
- "type": "LoadImage",
- "pos": [
- -743.4732666015625,
- -11.80355167388916
- ],
- "size": [
- 413.10479736328125,
- 498.3180847167969
- ],
- "flags": {},
- "order": 7,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 212
- ]
- },
- {
- "name": "MASK",
- "type": "MASK",
- "links": [
- 213
- ]
- }
- ],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.3.26",
- "Node name for S&R": "LoadImage"
- },
- "widgets_values": [
- "clipspace/clipspace-painted-masked-35247482.png [input]",
- "image"
- ],
- "color": "#2a363b",
- "bgcolor": "#3f5159"
- },
- {
- "id": 108,
- "type": "ImageCompositeMasked",
- "pos": [
- -231.4991912841797,
- 534.3469848632812
- ],
- "size": [
- 270,
- 147.090087890625
- ],
- "flags": {
- "collapsed": true
- },
- "order": 26,
- "mode": 0,
- "inputs": [
- {
- "name": "destination",
- "type": "IMAGE",
- "link": 181
- },
- {
- "name": "source",
- "type": "IMAGE",
- "link": 190
- },
- {
- "name": "mask",
- "shape": 7,
- "type": "MASK",
- "link": 213
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 214
- ]
- }
- ],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.3.49",
- "Node name for S&R": "ImageCompositeMasked"
- },
- "widgets_values": [
- 0,
- 0,
- false
- ]
- },
- {
- "id": 109,
- "type": "EmptyImage",
- "pos": [
- -235.06651306152344,
- 593.4085693359375
- ],
- "size": [
- 270,
- 130
- ],
- "flags": {
- "collapsed": true
- },
- "order": 24,
- "mode": 0,
- "inputs": [
- {
- "name": "width",
- "type": "INT",
- "widget": {
- "name": "width"
- },
- "link": 188
- },
- {
- "name": "height",
- "type": "INT",
- "widget": {
- "name": "height"
- },
- "link": 189
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 181
- ]
- }
- ],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.3.49",
- "Node name for S&R": "EmptyImage"
- },
- "widgets_values": [
- 512,
- 512,
- 1,
- 16777215
- ]
- },
- {
- "id": 121,
- "type": "PreviewImage",
- "pos": [
- 111.7806396484375,
- 339.2599792480469
- ],
- "size": [
- 140,
- 246
- ],
- "flags": {},
- "order": 29,
- "mode": 0,
- "inputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "link": 215
- }
- ],
- "outputs": [],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.3.49",
- "Node name for S&R": "PreviewImage"
- },
- "widgets_values": []
- },
- {
- "id": 28,
- "type": "WanVideoDecode",
- "pos": [
- 1446.94677734375,
- -808.8124389648438
- ],
- "size": [
- 315,
- 198
- ],
- "flags": {},
- "order": 32,
- "mode": 0,
- "inputs": [
- {
- "name": "vae",
- "type": "WANVAE",
- "link": 43
- },
- {
- "name": "samples",
- "type": "LATENT",
- "link": 33
- }
- ],
- "outputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "slot_index": 0,
- "links": [
- 218
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
- "Node name for S&R": "WanVideoDecode"
- },
- "widgets_values": [
- false,
- 272,
- 272,
- 144,
- 128,
- "default"
- ],
- "color": "#322",
- "bgcolor": "#533"
- },
- {
- "id": 68,
- "type": "ImageResizeKJv2",
- "pos": [
- -259.1786804199219,
- 24.484373092651367
- ],
- "size": [
- 270,
- 336.0000305175781
- ],
- "flags": {},
- "order": 27,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 214
- },
- {
- "name": "mask",
- "shape": 7,
- "type": "MASK",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 208,
- 215,
- 219
- ]
- },
- {
- "name": "width",
- "type": "INT",
- "links": []
- },
- {
- "name": "height",
- "type": "INT",
- "links": []
- },
- {
- "name": "mask",
- "type": "MASK",
- "links": []
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "ad37ce656c13e9abea002b46e3a89be3dba32355",
- "Node name for S&R": "ImageResizeKJv2"
- },
- "widgets_values": [
- 512,
- 512,
- "lanczos",
- "pad",
- "255,255,255",
- "center",
- 16,
- "cpu"
- ]
- },
- {
- "id": 39,
- "type": "WanVideoBlockSwap",
- "pos": [
- 709.6087646484375,
- -658.9224853515625
- ],
- "size": [
- 315,
- 202
- ],
- "flags": {},
- "order": 8,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "block_swap_args",
- "type": "BLOCKSWAPARGS",
- "slot_index": 0,
- "links": [
- 92
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
- "Node name for S&R": "WanVideoBlockSwap"
- },
- "widgets_values": [
- 15,
- false,
- false,
- true,
- 0,
- 1,
- false
- ],
- "color": "#223",
- "bgcolor": "#335"
- },
- {
- "id": 38,
- "type": "WanVideoVAELoader",
- "pos": [
- 183.16864013671875,
- -261.20465087890625
- ],
- "size": [
- 372.7727966308594,
- 82
- ],
- "flags": {},
- "order": 9,
- "mode": 0,
- "inputs": [
- {
- "name": "compile_args",
- "shape": 7,
- "type": "WANCOMPILEARGS",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "vae",
- "type": "WANVAE",
- "slot_index": 0,
- "links": [
- 43,
- 175
- ]
- }
- ],
- "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": 42,
- "type": "Note",
- "pos": [
- 684.2587890625,
- -1059.630615234375
- ],
- "size": [
- 325.1150207519531,
- 196.76773071289062
- ],
- "flags": {},
- "order": 10,
- "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\n\nFurther VRAM savings are from torch.compile or alternatively using the chunked rope option in the WanVideoSampler -node"
- ],
- "color": "#432",
- "bgcolor": "#653"
- },
- {
- "id": 79,
- "type": "WanVideoSetLoRAs",
- "pos": [
- 1133.248291015625,
- -698.7440795898438
- ],
- "size": [
- 239.93698120117188,
- 46
- ],
- "flags": {},
- "order": 25,
- "mode": 0,
- "inputs": [
- {
- "name": "model",
- "type": "WANVIDEOMODEL",
- "link": 107
- },
- {
- "name": "lora",
- "shape": 7,
- "type": "WANVIDLORA",
- "link": 210
- }
- ],
- "outputs": [
- {
- "name": "model",
- "type": "WANVIDEOMODEL",
- "links": [
- 108
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "7c93aea182a0d7084bfbc18ae36f039ea3845e73",
- "Node name for S&R": "WanVideoSetLoRAs"
- },
- "widgets_values": [],
- "color": "#223",
- "bgcolor": "#335"
- },
- {
- "id": 71,
- "type": "WanVideoLoraSelect",
- "pos": [
- 1039.67724609375,
- -1149.5599365234375
- ],
- "size": [
- 583.5029907226562,
- 176
- ],
- "flags": {},
- "order": 11,
- "mode": 0,
- "inputs": [
- {
- "name": "prev_lora",
- "shape": 7,
- "type": "WANVIDLORA",
- "link": null
- },
- {
- "name": "blocks",
- "shape": 7,
- "type": "SELECTEDBLOCKS",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "lora",
- "type": "WANVIDLORA",
- "links": [
- 210
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "6b9565ed6307168c45770ec08517d7df65b61e3f",
- "Node name for S&R": "WanVideoLoraSelect"
- },
- "widgets_values": [
- "WanVideo\\Lightx2v\\lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16_.safetensors",
- 1,
- false,
- false
- ],
- "color": "#223",
- "bgcolor": "#335"
- },
- {
- "id": 122,
- "type": "ImageConcatMulti",
- "pos": [
- 1837.2718505859375,
- -568.9346313476562
- ],
- "size": [
- 270,
- 150
- ],
- "flags": {},
- "order": 33,
- "mode": 0,
- "inputs": [
- {
- "name": "image_1",
- "type": "IMAGE",
- "link": 218
- },
- {
- "name": "image_2",
- "shape": 7,
- "type": "IMAGE",
- "link": 219
- }
- ],
- "outputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "links": [
- 217
- ]
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44"
- },
- "widgets_values": [
- 2,
- "left",
- true,
- null
- ]
- },
- {
- "id": 16,
- "type": "WanVideoTextEncode",
- "pos": [
- 936.4089965820312,
- -35.84267807006836
- ],
- "size": [
- 475.7987976074219,
- 355.67169189453125
- ],
- "flags": {},
- "order": 22,
- "mode": 0,
- "inputs": [
- {
- "name": "t5",
- "shape": 7,
- "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": [
- "In a corridor where the walls ripple like water, a woman reaches out to touch the flowing surface, causing circles of ripples to spread. The camera moves from a medium shot to a close-up, capturing her curious expression as she sees her distorted reflection",
- "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",
- true,
- false,
- "gpu"
- ],
- "color": "#332922",
- "bgcolor": "#593930"
- },
{
"id": 103,
"type": "WanVideoEmptyEmbeds",
"pos": [
622.5388793945312,
- 137.8038330078125
+ 96.46371459960938
],
"size": [
272.431640625,
@@ -1441,260 +2074,106 @@
]
},
{
- "id": 123,
- "type": "PrimitiveNode",
+ "id": 104,
+ "type": "WanVideoEncode",
"pos": [
- -225.1419219970703,
- -412.62811279296875
+ 296.0429382324219,
+ -27.93423843383789
],
"size": [
- 210,
- 82
+ 270,
+ 242
],
"flags": {},
- "order": 12,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "INT",
- "type": "INT",
- "widget": {
- "name": "width"
- },
- "links": [
- 220
- ]
- }
- ],
- "title": "width",
- "properties": {
- "Run widget replace on values": false
- },
- "widgets_values": [
- 832,
- "fixed"
- ],
- "color": "#2a363b",
- "bgcolor": "#3f5159"
- },
- {
- "id": 124,
- "type": "PrimitiveNode",
- "pos": [
- -226.0428009033203,
- -278.3983154296875
- ],
- "size": [
- 210,
- 82
- ],
- "flags": {},
- "order": 13,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "INT",
- "type": "INT",
- "widget": {
- "name": "height"
- },
- "links": [
- 221
- ]
- }
- ],
- "title": "height",
- "properties": {
- "Run widget replace on values": false
- },
- "widgets_values": [
- 480,
- "fixed"
- ],
- "color": "#2a363b",
- "bgcolor": "#3f5159"
- },
- {
- "id": 125,
- "type": "PrimitiveNode",
- "pos": [
- -226.0429229736328,
- -136.0607147216797
- ],
- "size": [
- 210,
- 82
- ],
- "flags": {},
- "order": 14,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "INT",
- "type": "INT",
- "widget": {
- "name": "num_frames"
- },
- "links": [
- 222
- ]
- }
- ],
- "title": "num_frames",
- "properties": {
- "Run widget replace on values": false
- },
- "widgets_values": [
- 81,
- "fixed"
- ],
- "color": "#2a363b",
- "bgcolor": "#3f5159"
- },
- {
- "id": 102,
- "type": "WanVideoAddStandInLatent",
- "pos": [
- 626.6787109375,
- -36.9838752746582
- ],
- "size": [
- 246.94578552246094,
- 57.857322692871094
- ],
- "flags": {},
- "order": 30,
+ "order": 38,
"mode": 0,
"inputs": [
{
- "name": "embeds",
- "type": "WANVIDIMAGE_EMBEDS",
- "link": 171
+ "name": "vae",
+ "type": "WANVAE",
+ "link": 175
},
{
- "name": "ip_image_latent",
- "type": "LATENT",
- "link": 174
+ "name": "image",
+ "type": "IMAGE",
+ "link": 208
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": null
}
],
"outputs": [
{
- "name": "image_embeds",
- "type": "WANVIDIMAGE_EMBEDS",
+ "name": "samples",
+ "type": "LATENT",
"links": [
- 172
+ 174
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
"ver": "06863fe2d283e89ba2386260ad2700557dda1897",
- "Node name for S&R": "WanVideoAddStandInLatent"
+ "Node name for S&R": "WanVideoEncode"
},
- "widgets_values": []
+ "widgets_values": [
+ false,
+ 272,
+ 272,
+ 144,
+ 128,
+ 0,
+ 1
+ ]
},
{
- "id": 126,
- "type": "MarkdownNote",
+ "id": 42,
+ "type": "Note",
"pos": [
- -856.6663208007812,
- -743.9132690429688
+ 568.8908081054688,
+ -1050.97802734375
],
"size": [
- 362.6117858886719,
- 143.0945281982422
+ 325.1150207519531,
+ 196.76773071289062
],
"flags": {},
- "order": 15,
+ "order": 16,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
- "LoRA link:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Stand-In](https://huggingface.co/Kijai/WanVideo_comfy/tree/main/Stand-In)\n\nThis LoRA is not the traditional kind and it HAS TO connect to the model loader directly."
+ "Adjust the blocks to swap based on your VRAM, this is a tradeoff between speed and memory usage.\n\nFurther VRAM savings are from torch.compile or alternatively using the chunked rope option in the WanVideoSampler -node"
],
"color": "#432",
"bgcolor": "#653"
},
{
- "id": 74,
- "type": "VHS_VideoCombine",
+ "id": 36,
+ "type": "Note",
"pos": [
- 1814.99755859375,
- -352.9032897949219
+ 160,
+ -1010
],
"size": [
- 959.076171875,
- 691.564453125
+ 374.3061828613281,
+ 171.9547576904297
],
"flags": {},
- "order": 34,
+ "order": 17,
"mode": 0,
- "inputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "link": 217
- },
- {
- "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
- }
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "fp_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"
],
- "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_T2V_Stand_In",
- "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_I2V_00018.mp4",
- "subfolder": "",
- "type": "temp",
- "format": "video/h264-mp4",
- "frame_rate": 16,
- "workflow": "WanVideoWrapper_I2V_00018.png",
- "fullpath": "N:\\AI\\ComfyUI\\temp\\WanVideoWrapper_I2V_00018.mp4"
- }
- }
- }
+ "color": "#432",
+ "bgcolor": "#653"
}
],
"links": [
@@ -1850,30 +2329,6 @@
0,
"IMAGE"
],
- [
- 188,
- 110,
- 1,
- 109,
- 0,
- "INT"
- ],
- [
- 189,
- 110,
- 2,
- 109,
- 1,
- "INT"
- ],
- [
- 190,
- 110,
- 0,
- 108,
- 1,
- "IMAGE"
- ],
[
208,
68,
@@ -1898,30 +2353,6 @@
0,
"WANCOMPILEARGS"
],
- [
- 212,
- 58,
- 0,
- 110,
- 0,
- "IMAGE"
- ],
- [
- 213,
- 58,
- 1,
- 108,
- 2,
- "MASK"
- ],
- [
- 214,
- 108,
- 0,
- 68,
- 0,
- "IMAGE"
- ],
[
215,
68,
@@ -1977,6 +2408,166 @@
103,
4,
"INT"
+ ],
+ [
+ 223,
+ 127,
+ 0,
+ 128,
+ 0,
+ "REMBG_SESSION"
+ ],
+ [
+ 225,
+ 128,
+ 1,
+ 108,
+ 2,
+ "MASK"
+ ],
+ [
+ 226,
+ 108,
+ 0,
+ 129,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 227,
+ 129,
+ 0,
+ 68,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 255,
+ 143,
+ 0,
+ 136,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 256,
+ 132,
+ 0,
+ 143,
+ 1,
+ "MASK"
+ ],
+ [
+ 257,
+ 142,
+ 0,
+ 143,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 260,
+ 142,
+ 0,
+ 144,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 271,
+ 144,
+ 0,
+ 151,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 274,
+ 152,
+ 0,
+ 144,
+ 1,
+ "INT"
+ ],
+ [
+ 275,
+ 152,
+ 0,
+ 151,
+ 1,
+ "INT"
+ ],
+ [
+ 276,
+ 142,
+ 1,
+ 152,
+ 1,
+ "INT"
+ ],
+ [
+ 277,
+ 142,
+ 2,
+ 152,
+ 2,
+ "INT"
+ ],
+ [
+ 278,
+ 142,
+ 0,
+ 152,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 281,
+ 152,
+ 0,
+ 143,
+ 2,
+ "INT"
+ ],
+ [
+ 282,
+ 143,
+ 0,
+ 128,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 283,
+ 143,
+ 0,
+ 108,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 284,
+ 132,
+ 0,
+ 153,
+ 0,
+ "MASK"
+ ],
+ [
+ 291,
+ 151,
+ 0,
+ 132,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 292,
+ 58,
+ 0,
+ 142,
+ 0,
+ "IMAGE"
]
],
"groups": [
@@ -1984,26 +2575,39 @@
"id": 1,
"title": "ComfyUI text encoding alternative",
"bounding": [
- 70.3548812866211,
- 792.9315185546875,
+ 426.74566650390625,
+ 554.9851684570312,
1210.621337890625,
805.9080810546875
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
+ },
+ {
+ "id": 2,
+ "title": "Process input",
+ "bounding": [
+ -2188.7666015625,
+ -386.891357421875,
+ 1921.2113037109375,
+ 1152.3975830078125
+ ],
+ "color": "#3f789e",
+ "font_size": 24,
+ "flags": {}
}
],
"config": {},
"extra": {
"ds": {
- "scale": 0.6115909044841845,
+ "scale": 0.6934334949441333,
"offset": [
- 1147.9668044564248,
- 1263.3666070137424
+ 417.80162764006184,
+ 993.188273963535
]
},
- "frontendVersion": "1.25.5",
+ "frontendVersion": "1.26.2",
"node_versions": {
"ComfyUI-WanVideoWrapper": "5a2383621a05825d0d0437781afcb8552d9590fd",
"comfy-core": "0.3.26",