diff --git a/example_workflows/wanvideo_phantom_subject2vid_example_01.json b/example_workflows/wanvideo_phantom_subject2vid_example_02.json
similarity index 80%
rename from example_workflows/wanvideo_phantom_subject2vid_example_01.json
rename to example_workflows/wanvideo_phantom_subject2vid_example_02.json
index 83fc469..dc8fdf8 100644
--- a/example_workflows/wanvideo_phantom_subject2vid_example_01.json
+++ b/example_workflows/wanvideo_phantom_subject2vid_example_02.json
@@ -1,8 +1,8 @@
{
"id": "c6e410bc-5e2c-460b-ae81-c91b6094fbb1",
"revision": 0,
- "last_node_id": 77,
- "last_link_id": 120,
+ "last_node_id": 86,
+ "last_link_id": 157,
"nodes": [
{
"id": 11,
@@ -43,29 +43,6 @@
"color": "#332922",
"bgcolor": "#593930"
},
- {
- "id": 42,
- "type": "Note",
- "pos": [
- -165.44613647460938,
- -344.9282531738281
- ],
- "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": 50,
"type": "CLIPTextEncode",
@@ -78,7 +55,7 @@
200
],
"flags": {},
- "order": 22,
+ "order": 20,
"mode": 2,
"inputs": [
{
@@ -120,7 +97,7 @@
106
],
"flags": {},
- "order": 2,
+ "order": 1,
"mode": 2,
"inputs": [],
"outputs": [
@@ -159,7 +136,7 @@
88
],
"flags": {},
- "order": 3,
+ "order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
@@ -182,7 +159,7 @@
200
],
"flags": {},
- "order": 21,
+ "order": 19,
"mode": 2,
"inputs": [
{
@@ -212,37 +189,6 @@
"color": "#432",
"bgcolor": "#653"
},
- {
- "id": 45,
- "type": "WanVideoVRAMManagement",
- "pos": [
- -158.19737243652344,
- -136.97467041015625
- ],
- "size": [
- 315,
- 58
- ],
- "flags": {},
- "order": 4,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "vram_management_args",
- "type": "VRAM_MANAGEMENTARGS",
- "links": []
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
- "Node name for S&R": "WanVideoVRAMManagement"
- },
- "widgets_values": [
- 1
- ]
- },
{
"id": 33,
"type": "Note",
@@ -255,7 +201,7 @@
88
],
"flags": {},
- "order": 5,
+ "order": 3,
"mode": 0,
"inputs": [],
"outputs": [],
@@ -266,59 +212,28 @@
"color": "#432",
"bgcolor": "#653"
},
- {
- "id": 39,
- "type": "WanVideoBlockSwap",
- "pos": [
- 253.16395568847656,
- -343.3807678222656
- ],
- "size": [
- 315,
- 154
- ],
- "flags": {},
- "order": 6,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "block_swap_args",
- "type": "BLOCKSWAPARGS",
- "slot_index": 0,
- "links": []
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
- "Node name for S&R": "WanVideoBlockSwap"
- },
- "widgets_values": [
- 20,
- false,
- false,
- true,
- 0
- ],
- "color": "#223",
- "bgcolor": "#335"
- },
{
"id": 38,
"type": "WanVideoVAELoader",
"pos": [
- 1687.4093017578125,
- -582.2750854492188
+ 2340.400390625,
+ -578.1526489257812
],
"size": [
315,
82
],
"flags": {},
- "order": 7,
+ "order": 4,
"mode": 0,
- "inputs": [],
+ "inputs": [
+ {
+ "name": "compile_args",
+ "shape": 7,
+ "type": "WANCOMPILEARGS",
+ "link": null
+ }
+ ],
"outputs": [
{
"name": "vae",
@@ -355,7 +270,7 @@
46
],
"flags": {},
- "order": 25,
+ "order": 23,
"mode": 2,
"inputs": [
{
@@ -365,6 +280,7 @@
},
{
"name": "negative",
+ "shape": 7,
"type": "CONDITIONING",
"link": 55
}
@@ -383,395 +299,6 @@
},
"widgets_values": []
},
- {
- "id": 28,
- "type": "WanVideoDecode",
- "pos": [
- 1692.973876953125,
- -404.8614501953125
- ],
- "size": [
- 315,
- 174
- ],
- "flags": {},
- "order": 33,
- "mode": 0,
- "inputs": [
- {
- "name": "vae",
- "type": "WANVAE",
- "link": 43
- },
- {
- "name": "samples",
- "type": "LATENT",
- "link": 33
- }
- ],
- "outputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "slot_index": 0,
- "links": [
- 81
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
- "Node name for S&R": "WanVideoDecode"
- },
- "widgets_values": [
- false,
- 272,
- 272,
- 144,
- 128
- ],
- "color": "#322",
- "bgcolor": "#533"
- },
- {
- "id": 64,
- "type": "WanVideoTeaCache",
- "pos": [
- 1203.9754638671875,
- -657.2056884765625
- ],
- "size": [
- 380.4000244140625,
- 178
- ],
- "flags": {},
- "order": 8,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "cache_args",
- "type": "CACHEARGS",
- "links": [
- 71
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "a623f87dcad9cff5a690559fe559566be4045a9a",
- "Node name for S&R": "WanVideoTeaCache"
- },
- "widgets_values": [
- 0.10000000000000002,
- 6,
- -1,
- "offload_device",
- true,
- "e0"
- ]
- },
- {
- "id": 66,
- "type": "ImageConcatMulti",
- "pos": [
- 1772.1153564453125,
- -17.343990325927734
- ],
- "size": [
- 315,
- 150
- ],
- "flags": {},
- "order": 34,
- "mode": 0,
- "inputs": [
- {
- "name": "image_1",
- "type": "IMAGE",
- "link": 81
- },
- {
- "name": "image_2",
- "type": "IMAGE",
- "link": 82
- }
- ],
- "outputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "links": [
- 83
- ]
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f"
- },
- "widgets_values": [
- 2,
- "up",
- false,
- null
- ]
- },
- {
- "id": 67,
- "type": "LoadImage",
- "pos": [
- -529.6270751953125,
- 642.4041137695312
- ],
- "size": [
- 315,
- 314
- ],
- "flags": {},
- "order": 9,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 87
- ]
- },
- {
- "name": "MASK",
- "type": "MASK",
- "links": null
- }
- ],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.3.29",
- "Node name for S&R": "LoadImage"
- },
- "widgets_values": [
- "oldman_upscaled.png",
- "image"
- ]
- },
- {
- "id": 68,
- "type": "ImageResizeKJ",
- "pos": [
- -136.8474884033203,
- 636.0980224609375
- ],
- "size": [
- 315,
- 238
- ],
- "flags": {},
- "order": 24,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 87
- },
- {
- "name": "get_image_size",
- "shape": 7,
- "type": "IMAGE",
- "link": null
- },
- {
- "name": "width",
- "type": "INT",
- "widget": {
- "name": "width"
- },
- "link": 85
- },
- {
- "name": "height",
- "type": "INT",
- "widget": {
- "name": "height"
- },
- "link": 86
- },
- {
- "name": "width_input",
- "shape": 7,
- "type": "INT",
- "link": null
- },
- {
- "name": "height_input",
- "shape": 7,
- "type": "INT",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 91
- ]
- },
- {
- "name": "width",
- "type": "INT",
- "links": []
- },
- {
- "name": "height",
- "type": "INT",
- "links": []
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
- "Node name for S&R": "ImageResizeKJ"
- },
- "widgets_values": [
- 512,
- 512,
- "lanczos",
- true,
- 8,
- "disabled"
- ]
- },
- {
- "id": 65,
- "type": "ImageResizeKJ",
- "pos": [
- -138.123046875,
- 268.34466552734375
- ],
- "size": [
- 315,
- 238
- ],
- "flags": {},
- "order": 23,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 72
- },
- {
- "name": "get_image_size",
- "shape": 7,
- "type": "IMAGE",
- "link": null
- },
- {
- "name": "width",
- "type": "INT",
- "widget": {
- "name": "width"
- },
- "link": 79
- },
- {
- "name": "height",
- "type": "INT",
- "widget": {
- "name": "height"
- },
- "link": 80
- },
- {
- "name": "width_input",
- "shape": 7,
- "type": "INT",
- "link": null
- },
- {
- "name": "height_input",
- "shape": 7,
- "type": "INT",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 73
- ]
- },
- {
- "name": "width",
- "type": "INT",
- "links": []
- },
- {
- "name": "height",
- "type": "INT",
- "links": []
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
- "Node name for S&R": "ImageResizeKJ"
- },
- "widgets_values": [
- 512,
- 512,
- "lanczos",
- true,
- 8,
- "disabled"
- ]
- },
- {
- "id": 57,
- "type": "LoadImage",
- "pos": [
- -549.6646728515625,
- 251.52166748046875
- ],
- "size": [
- 315,
- 314
- ],
- "flags": {},
- "order": 10,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "IMAGE",
- "type": "IMAGE",
- "links": [
- 72
- ]
- },
- {
- "name": "MASK",
- "type": "MASK",
- "links": null
- }
- ],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.3.29",
- "Node name for S&R": "LoadImage"
- },
- "widgets_values": [
- "anya.webp",
- "image"
- ]
- },
{
"id": 16,
"type": "WanVideoTextEncode",
@@ -784,11 +311,12 @@
261.5306701660156
],
"flags": {},
- "order": 20,
+ "order": 18,
"mode": 0,
"inputs": [
{
"name": "t5",
+ "shape": 7,
"type": "WANTEXTENCODER",
"link": 15
},
@@ -817,194 +345,77 @@
"widgets_values": [
"an old man is playing with a chibi anime figurine",
"色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",
- true
+ true,
+ false,
+ "gpu"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
- "id": 69,
- "type": "ImagePadKJ",
+ "id": 77,
+ "type": "Note",
"pos": [
- 241.51797485351562,
- 614.47705078125
+ -532.9983520507812,
+ -216.64346313476562
+ ],
+ "size": [
+ 274.3274841308594,
+ 121.00284576416016
+ ],
+ "flags": {},
+ "order": 5,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "title": "Note: Resolution",
+ "properties": {},
+ "widgets_values": [
+ "Phantom is trained at 480p but can also work at 720p"
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 28,
+ "type": "WanVideoDecode",
+ "pos": [
+ 2345.96484375,
+ -400.7390441894531
],
"size": [
315,
- 262
+ 198
],
"flags": {},
- "order": 27,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 91
- },
- {
- "name": "mask",
- "shape": 7,
- "type": "MASK",
- "link": null
- },
- {
- "name": "target_width",
- "shape": 7,
- "type": "INT",
- "link": 89
- },
- {
- "name": "target_height",
- "shape": 7,
- "type": "INT",
- "link": 90
- }
- ],
- "outputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "links": [
- 102,
- 105
- ]
- },
- {
- "name": "masks",
- "type": "MASK",
- "links": null
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
- "Node name for S&R": "ImagePadKJ"
- },
- "widgets_values": [
- 0,
- 0,
- 0,
- 0,
- 0,
- "color",
- "255,255,255"
- ]
- },
- {
- "id": 60,
- "type": "ImagePadKJ",
- "pos": [
- 241.20155334472656,
- 261.9258728027344
- ],
- "size": [
- 315,
- 262
- ],
- "flags": {},
- "order": 26,
- "mode": 0,
- "inputs": [
- {
- "name": "image",
- "type": "IMAGE",
- "link": 73
- },
- {
- "name": "mask",
- "shape": 7,
- "type": "MASK",
- "link": null
- },
- {
- "name": "target_width",
- "shape": 7,
- "type": "INT",
- "link": 76
- },
- {
- "name": "target_height",
- "shape": 7,
- "type": "INT",
- "link": 77
- }
- ],
- "outputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "links": [
- 82,
- 106
- ]
- },
- {
- "name": "masks",
- "type": "MASK",
- "links": null
- }
- ],
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
- "Node name for S&R": "ImagePadKJ"
- },
- "widgets_values": [
- 0,
- 0,
- 0,
- 0,
- 0,
- "color",
- "255,255,255"
- ]
- },
- {
- "id": 73,
- "type": "WanVideoEncode",
- "pos": [
- 685.5361938476562,
- 634.3781127929688
- ],
- "size": [
- 330,
- 242
- ],
- "flags": {},
- "order": 30,
+ "order": 34,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "WANVAE",
- "link": 110
+ "link": 43
},
{
- "name": "image",
- "type": "IMAGE",
- "link": 105
- },
- {
- "name": "mask",
- "shape": 7,
- "type": "MASK",
- "link": null
+ "name": "samples",
+ "type": "LATENT",
+ "link": 33
}
],
"outputs": [
{
- "name": "samples",
- "type": "LATENT",
+ "name": "images",
+ "type": "IMAGE",
+ "slot_index": 0,
"links": [
- 119
+ 126
]
}
],
"properties": {
"cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "a623f87dcad9cff5a690559fe559566be4045a9a",
- "Node name for S&R": "WanVideoEncode"
+ "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
+ "Node name for S&R": "WanVideoDecode"
},
"widgets_values": [
false,
@@ -1012,23 +423,154 @@
272,
144,
128,
- 0,
- 1
- ]
+ "default"
+ ],
+ "color": "#322",
+ "bgcolor": "#533"
+ },
+ {
+ "id": 61,
+ "type": "INTConstant",
+ "pos": [
+ -507.47119140625,
+ -30.832414627075195
+ ],
+ "size": [
+ 210,
+ 58
+ ],
+ "flags": {},
+ "order": 6,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "value",
+ "type": "INT",
+ "links": [
+ 139
+ ]
+ }
+ ],
+ "title": "Width",
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
+ "Node name for S&R": "INTConstant"
+ },
+ "widgets_values": [
+ 832
+ ],
+ "color": "#1b4669",
+ "bgcolor": "#29699c"
+ },
+ {
+ "id": 62,
+ "type": "INTConstant",
+ "pos": [
+ -501.34527587890625,
+ 83.66830444335938
+ ],
+ "size": [
+ 210,
+ 58
+ ],
+ "flags": {},
+ "order": 7,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "value",
+ "type": "INT",
+ "links": [
+ 140
+ ]
+ }
+ ],
+ "title": "Height",
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
+ "Node name for S&R": "INTConstant"
+ },
+ "widgets_values": [
+ 480
+ ],
+ "color": "#1b4669",
+ "bgcolor": "#29699c"
+ },
+ {
+ "id": 82,
+ "type": "PreviewImage",
+ "pos": [
+ 231.0643768310547,
+ 345.1055908203125
+ ],
+ "size": [
+ 400.632568359375,
+ 258
+ ],
+ "flags": {},
+ "order": 25,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "link": 145
+ }
+ ],
+ "outputs": [],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.29",
+ "Node name for S&R": "PreviewImage"
+ },
+ "widgets_values": []
+ },
+ {
+ "id": 63,
+ "type": "PreviewImage",
+ "pos": [
+ 246.37728881835938,
+ 749.4605712890625
+ ],
+ "size": [
+ 400.632568359375,
+ 258
+ ],
+ "flags": {},
+ "order": 28,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "link": 130
+ }
+ ],
+ "outputs": [],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.29",
+ "Node name for S&R": "PreviewImage"
+ },
+ "widgets_values": []
},
{
"id": 56,
"type": "WanVideoEncode",
"pos": [
- 688.443359375,
- 299.2251892089844
+ 727.0906982421875,
+ 297.24334716796875
],
"size": [
330,
242
],
"flags": {},
- "order": 28,
+ "order": 24,
"mode": 0,
"inputs": [
{
@@ -1039,7 +581,7 @@
{
"name": "image",
"type": "IMAGE",
- "link": 106
+ "link": 137
},
{
"name": "mask",
@@ -1053,7 +595,7 @@
"name": "samples",
"type": "LATENT",
"links": [
- 120
+ 143
]
}
],
@@ -1073,35 +615,1019 @@
]
},
{
- "id": 27,
- "type": "WanVideoSampler",
+ "id": 44,
+ "type": "Note",
"pos": [
- 1315.2401123046875,
- -401.48028564453125
+ -231.55201721191406,
+ -847.9478759765625
+ ],
+ "size": [
+ 303.0501403808594,
+ 88
+ ],
+ "flags": {},
+ "order": 8,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "If you have Triton installed, connect this for ~30% speed increase"
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 36,
+ "type": "Note",
+ "pos": [
+ 714.1553955078125,
+ -685.7478637695312
+ ],
+ "size": [
+ 374.3061828613281,
+ 171.9547576904297
+ ],
+ "flags": {},
+ "order": 9,
+ "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": 84,
+ "type": "WanVideoSetBlockSwap",
+ "pos": [
+ 1203.40625,
+ -451.20733642578125
+ ],
+ "size": [
+ 201.76815795898438,
+ 46
+ ],
+ "flags": {},
+ "order": 27,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "link": 149
+ },
+ {
+ "name": "block_swap_args",
+ "shape": 7,
+ "type": "BLOCKSWAPARGS",
+ "link": 151
+ }
+ ],
+ "outputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "links": [
+ 150
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "cc3b79ab180e8c81e6125d539662935cf171c87b",
+ "Node name for S&R": "WanVideoSetBlockSwap"
+ },
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 83,
+ "type": "WanVideoSetLoRAs",
+ "pos": [
+ 1471.3389892578125,
+ -454.92852783203125
+ ],
+ "size": [
+ 174.53378295898438,
+ 46
+ ],
+ "flags": {},
+ "order": 31,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "link": 150
+ },
+ {
+ "name": "lora",
+ "shape": 7,
+ "type": "WANVIDLORA",
+ "link": 147
+ }
+ ],
+ "outputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "links": [
+ 148
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "cc3b79ab180e8c81e6125d539662935cf171c87b",
+ "Node name for S&R": "WanVideoSetLoRAs"
+ },
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 75,
+ "type": "MarkdownNote",
+ "pos": [
+ 703.451416015625,
+ -986.7158203125
+ ],
+ "size": [
+ 369.9837341308594,
+ 207.7837371826172
+ ],
+ "flags": {},
+ "order": 10,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "properties": {},
+ "widgets_values": [
+ "Model links:\n\n1.3B:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-1_3B_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-1_3B_fp16.safetensors)\n\n14B:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp16.safetensors)\n\n[https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B-Phantom_fp8_e4m3fn_scaled_KJ.safetensors](https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/blob/main/T2V/Wan2_1-T2V-14B-Phantom_fp8_e4m3fn_scaled_KJ.safetensors)"
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 22,
+ "type": "WanVideoModelLoader",
+ "pos": [
+ 617.1249389648438,
+ -441.7767028808594
+ ],
+ "size": [
+ 530.5924072265625,
+ 314
+ ],
+ "flags": {},
+ "order": 22,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "compile_args",
+ "shape": 7,
+ "type": "WANCOMPILEARGS",
+ "link": 122
+ },
+ {
+ "name": "block_swap_args",
+ "shape": 7,
+ "type": "BLOCKSWAPARGS",
+ "link": null
+ },
+ {
+ "name": "lora",
+ "shape": 7,
+ "type": "WANVIDLORA",
+ "link": null
+ },
+ {
+ "name": "vram_management_args",
+ "shape": 7,
+ "type": "VRAM_MANAGEMENTARGS",
+ "link": null
+ },
+ {
+ "name": "extra_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
+ },
+ {
+ "name": "vace_model",
+ "shape": 7,
+ "type": "VACEPATH",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "slot_index": 0,
+ "links": [
+ 149
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
+ "Node name for S&R": "WanVideoModelLoader"
+ },
+ "widgets_values": [
+ "WanVideo\\Wan2_1-T2V-14B-Phantom_fp8_e4m3fn_scaled_KJ.safetensors",
+ "fp16_fast",
+ "disabled",
+ "offload_device",
+ "sageattn"
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 81,
+ "type": "ImageResizeKJv2",
+ "pos": [
+ -78.1143798828125,
+ 250.96481323242188
+ ],
+ "size": [
+ 270,
+ 336
+ ],
+ "flags": {},
+ "order": 21,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 152
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": null
+ },
+ {
+ "name": "width",
+ "type": "INT",
+ "widget": {
+ "name": "width"
+ },
+ "link": 139
+ },
+ {
+ "name": "height",
+ "type": "INT",
+ "widget": {
+ "name": "height"
+ },
+ "link": 140
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 137,
+ 145,
+ 155
+ ]
+ },
+ {
+ "name": "width",
+ "type": "INT",
+ "links": [
+ 141
+ ]
+ },
+ {
+ "name": "height",
+ "type": "INT",
+ "links": [
+ 142
+ ]
+ },
+ {
+ "name": "mask",
+ "type": "MASK",
+ "links": null
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "0adab07d1ad3d0780afc97319eaf37c3681af37d",
+ "Node name for S&R": "ImageResizeKJv2"
+ },
+ "widgets_values": [
+ 512,
+ 512,
+ "lanczos",
+ "pad",
+ "255,255,255",
+ "center",
+ 16,
+ "cpu",
+ "
| Output: | 1 x 832 x 480 | 4.57MB |
"
+ ]
+ },
+ {
+ "id": 73,
+ "type": "WanVideoEncode",
+ "pos": [
+ 720.615966796875,
+ 645.6749267578125
+ ],
+ "size": [
+ 330,
+ 242
+ ],
+ "flags": {},
+ "order": 29,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "vae",
+ "type": "WANVAE",
+ "link": 110
+ },
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 131
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "samples",
+ "type": "LATENT",
+ "links": [
+ 144
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "a623f87dcad9cff5a690559fe559566be4045a9a",
+ "Node name for S&R": "WanVideoEncode"
+ },
+ "widgets_values": [
+ false,
+ 272,
+ 272,
+ 144,
+ 128,
+ 0,
+ 1
+ ]
+ },
+ {
+ "id": 76,
+ "type": "Note",
+ "pos": [
+ 1339.711181640625,
+ 574.1276245117188
+ ],
+ "size": [
+ 274.3274841308594,
+ 121.00284576416016
+ ],
+ "flags": {},
+ "order": 11,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [],
+ "title": "Note: FPS",
+ "properties": {},
+ "widgets_values": [
+ "Phantom is trained at 24fps, but you can also generate less frames, quality may vary."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 42,
+ "type": "Note",
+ "pos": [
+ 1175.9500732421875,
+ -98.08979797363281
+ ],
+ "size": [
+ 298.7467956542969,
+ 88
+ ],
+ "flags": {},
+ "order": 12,
+ "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."
+ ],
+ "color": "#432",
+ "bgcolor": "#653"
+ },
+ {
+ "id": 67,
+ "type": "LoadImage",
+ "pos": [
+ -528.6361083984375,
+ 241.06634521484375
+ ],
+ "size": [
+ 340.7649230957031,
+ 379.4031982421875
+ ],
+ "flags": {},
+ "order": 13,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 152
+ ]
+ },
+ {
+ "name": "MASK",
+ "type": "MASK",
+ "links": null
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.29",
+ "Node name for S&R": "LoadImage"
+ },
+ "widgets_values": [
+ "oldman_upscaled.png",
+ "image"
+ ]
+ },
+ {
+ "id": 57,
+ "type": "LoadImage",
+ "pos": [
+ -514.9811401367188,
+ 678.6246337890625
+ ],
+ "size": [
+ 317.9728698730469,
+ 349.6744689941406
+ ],
+ "flags": {},
+ "order": 14,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 153
+ ]
+ },
+ {
+ "name": "MASK",
+ "type": "MASK",
+ "links": null
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfy-core",
+ "ver": "0.3.29",
+ "Node name for S&R": "LoadImage"
+ },
+ "widgets_values": [
+ "anya.webp",
+ "image"
+ ]
+ },
+ {
+ "id": 39,
+ "type": "WanVideoBlockSwap",
+ "pos": [
+ 1175.088134765625,
+ -351.6418151855469
],
"size": [
315,
- 729
+ 202
+ ],
+ "flags": {},
+ "order": 15,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "block_swap_args",
+ "type": "BLOCKSWAPARGS",
+ "slot_index": 0,
+ "links": [
+ 151
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
+ "Node name for S&R": "WanVideoBlockSwap"
+ },
+ "widgets_values": [
+ 20,
+ false,
+ false,
+ false,
+ 0,
+ 0,
+ false
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 78,
+ "type": "WanVideoLoraSelect",
+ "pos": [
+ 1191.41259765625,
+ -703.387939453125
+ ],
+ "size": [
+ 596.4673461914062,
+ 150
+ ],
+ "flags": {},
+ "order": 16,
+ "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": [
+ 147
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "cc3b79ab180e8c81e6125d539662935cf171c87b",
+ "Node name for S&R": "WanVideoLoraSelect"
+ },
+ "widgets_values": [
+ "WanVideo\\Lightx2v\\lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16_.safetensors",
+ 0.8,
+ false,
+ false
+ ],
+ "color": "#223",
+ "bgcolor": "#335"
+ },
+ {
+ "id": 80,
+ "type": "ImageResizeKJv2",
+ "pos": [
+ -67.21376037597656,
+ 660.2300415039062
+ ],
+ "size": [
+ 270,
+ 336
+ ],
+ "flags": {},
+ "order": 26,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image",
+ "type": "IMAGE",
+ "link": 153
+ },
+ {
+ "name": "mask",
+ "shape": 7,
+ "type": "MASK",
+ "link": null
+ },
+ {
+ "name": "width",
+ "type": "INT",
+ "widget": {
+ "name": "width"
+ },
+ "link": 141
+ },
+ {
+ "name": "height",
+ "type": "INT",
+ "widget": {
+ "name": "height"
+ },
+ "link": 142
+ }
+ ],
+ "outputs": [
+ {
+ "name": "IMAGE",
+ "type": "IMAGE",
+ "links": [
+ 130,
+ 131,
+ 156
+ ]
+ },
+ {
+ "name": "width",
+ "type": "INT",
+ "links": null
+ },
+ {
+ "name": "height",
+ "type": "INT",
+ "links": null
+ },
+ {
+ "name": "mask",
+ "type": "MASK",
+ "links": null
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "0adab07d1ad3d0780afc97319eaf37c3681af37d",
+ "Node name for S&R": "ImageResizeKJv2"
+ },
+ "widgets_values": [
+ 512,
+ 512,
+ "lanczos",
+ "pad",
+ "255,255,255",
+ "center",
+ 16,
+ "cpu",
+ "| Output: | 1 x 832 x 480 | 4.57MB |
"
+ ]
+ },
+ {
+ "id": 66,
+ "type": "ImageConcatMulti",
+ "pos": [
+ 2365.64892578125,
+ -121.23597717285156
+ ],
+ "size": [
+ 315,
+ 170
+ ],
+ "flags": {
+ "collapsed": true
+ },
+ "order": 30,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image_1",
+ "type": "IMAGE",
+ "link": 155
+ },
+ {
+ "name": "image_2",
+ "shape": 7,
+ "type": "IMAGE",
+ "link": 156
+ }
+ ],
+ "outputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "links": [
+ 125
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f"
+ },
+ "widgets_values": [
+ 2,
+ "down",
+ false,
+ null
+ ]
+ },
+ {
+ "id": 79,
+ "type": "ImageConcatMulti",
+ "pos": [
+ 2381.864501953125,
+ -67.17642974853516
+ ],
+ "size": [
+ 315,
+ 170
+ ],
+ "flags": {
+ "collapsed": true
+ },
+ "order": 35,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "image_1",
+ "type": "IMAGE",
+ "link": 126
+ },
+ {
+ "name": "image_2",
+ "shape": 7,
+ "type": "IMAGE",
+ "link": 125
+ }
+ ],
+ "outputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "links": [
+ 127
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "comfyui-kjnodes",
+ "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f"
+ },
+ "widgets_values": [
+ 2,
+ "left",
+ true,
+ null
+ ]
+ },
+ {
+ "id": 35,
+ "type": "WanVideoTorchCompileSettings",
+ "pos": [
+ 151.95358276367188,
+ -578.2579956054688
+ ],
+ "size": [
+ 421.6000061035156,
+ 202
+ ],
+ "flags": {},
+ "order": 17,
+ "mode": 0,
+ "inputs": [],
+ "outputs": [
+ {
+ "name": "torch_compile_args",
+ "type": "WANCOMPILEARGS",
+ "slot_index": 0,
+ "links": [
+ 122
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
+ "Node name for S&R": "WanVideoTorchCompileSettings"
+ },
+ "widgets_values": [
+ "inductor",
+ false,
+ "default",
+ false,
+ 64,
+ true,
+ 128
+ ]
+ },
+ {
+ "id": 30,
+ "type": "VHS_VideoCombine",
+ "pos": [
+ 2873.2001953125,
+ -528.5747680664062
+ ],
+ "size": [
+ 1245.8460693359375,
+ 819.479248046875
+ ],
+ "flags": {},
+ "order": 36,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "images",
+ "type": "IMAGE",
+ "link": 127
+ },
+ {
+ "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": 24,
+ "loop_count": 0,
+ "filename_prefix": "WanVideo21_Phantom",
+ "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": "WanVideo21_Phantom_00012.mp4",
+ "subfolder": "",
+ "type": "temp",
+ "format": "video/h264-mp4",
+ "frame_rate": 24,
+ "workflow": "WanVideo21_Phantom_00012.png",
+ "fullpath": "N:\\AI\\ComfyUI\\temp\\WanVideo21_Phantom_00012.mp4"
+ }
+ }
+ }
+ },
+ {
+ "id": 74,
+ "type": "WanVideoPhantomEmbeds",
+ "pos": [
+ 1304.2489013671875,
+ 315.63165283203125
+ ],
+ "size": [
+ 380.4000244140625,
+ 210
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [
{
- "name": "model",
- "type": "WANVIDEOMODEL",
- "link": 29
+ "name": "phantom_latent_1",
+ "type": "LATENT",
+ "link": 143
},
{
- "name": "text_embeds",
- "type": "WANVIDEOTEXTEMBEDS",
- "link": 30
+ "name": "phantom_latent_2",
+ "shape": 7,
+ "type": "LATENT",
+ "link": 144
+ },
+ {
+ "name": "phantom_latent_3",
+ "shape": 7,
+ "type": "LATENT",
+ "link": null
+ },
+ {
+ "name": "phantom_latent_4",
+ "shape": 7,
+ "type": "LATENT",
+ "link": null
+ },
+ {
+ "name": "vace_embeds",
+ "shape": 7,
+ "type": "WANVIDIMAGE_EMBEDS",
+ "link": null
+ }
+ ],
+ "outputs": [
+ {
+ "name": "image_embeds",
+ "type": "WANVIDIMAGE_EMBEDS",
+ "links": [
+ 114
+ ]
+ }
+ ],
+ "properties": {
+ "cnr_id": "ComfyUI-WanVideoWrapper",
+ "ver": "1f535743870da83c530386874f10aabc70201919",
+ "Node name for S&R": "WanVideoPhantomEmbeds"
+ },
+ "widgets_values": [
+ 121,
+ 2,
+ 0,
+ 1
+ ]
+ },
+ {
+ "id": 27,
+ "type": "WanVideoSampler",
+ "pos": [
+ 1968.231201171875,
+ -397.3578796386719
+ ],
+ "size": [
+ 315,
+ 874.1923217773438
+ ],
+ "flags": {},
+ "order": 33,
+ "mode": 0,
+ "inputs": [
+ {
+ "name": "model",
+ "type": "WANVIDEOMODEL",
+ "link": 148
},
{
"name": "image_embeds",
"type": "WANVIDIMAGE_EMBEDS",
"link": 114
},
+ {
+ "name": "text_embeds",
+ "shape": 7,
+ "type": "WANVIDEOTEXTEMBEDS",
+ "link": 30
+ },
{
"name": "samples",
"shape": 7,
@@ -1124,7 +1650,7 @@
"name": "cache_args",
"shape": 7,
"type": "CACHEARGS",
- "link": 71
+ "link": null
},
{
"name": "flowedit_args",
@@ -1173,6 +1699,18 @@
"shape": 7,
"type": "UNI3C_EMBEDS",
"link": null
+ },
+ {
+ "name": "multitalk_embeds",
+ "shape": 7,
+ "type": "MULTITALK_EMBEDS",
+ "link": null
+ },
+ {
+ "name": "freeinit_args",
+ "shape": 7,
+ "type": "FREEINITARGS",
+ "link": null
}
],
"outputs": [
@@ -1183,6 +1721,11 @@
"links": [
33
]
+ },
+ {
+ "name": "denoised_samples",
+ "type": "LATENT",
+ "links": null
}
],
"properties": {
@@ -1191,500 +1734,21 @@
"Node name for S&R": "WanVideoSampler"
},
"widgets_values": [
- 40,
- 7.500000000000002,
+ 8,
+ 1,
5,
- 44,
+ 45,
"fixed",
true,
- "unipc",
+ "dpm++_sde",
0,
1,
false,
- "comfy"
- ]
- },
- {
- "id": 63,
- "type": "PreviewImage",
- "pos": [
- 1257.5802001953125,
- 714.0238647460938
- ],
- "size": [
- 675.1277465820312,
- 258
- ],
- "flags": {},
- "order": 29,
- "mode": 0,
- "inputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "link": 102
- }
- ],
- "outputs": [],
- "properties": {
- "cnr_id": "comfy-core",
- "ver": "0.3.29",
- "Node name for S&R": "PreviewImage"
- },
- "widgets_values": []
- },
- {
- "id": 74,
- "type": "WanVideoPhantomEmbeds",
- "pos": [
- 1243.949462890625,
- 424.87481689453125
- ],
- "size": [
- 380.4000244140625,
- 210
- ],
- "flags": {},
- "order": 31,
- "mode": 0,
- "inputs": [
- {
- "name": "phantom_latent_1",
- "type": "LATENT",
- "link": 119
- },
- {
- "name": "phantom_latent_2",
- "shape": 7,
- "type": "LATENT",
- "link": 120
- },
- {
- "name": "phantom_latent_3",
- "shape": 7,
- "type": "LATENT",
- "link": null
- },
- {
- "name": "phantom_latent_4",
- "shape": 7,
- "type": "LATENT",
- "link": null
- },
- {
- "name": "vace_embeds",
- "shape": 7,
- "type": "WANVIDIMAGE_EMBEDS",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "image_embeds",
- "type": "WANVIDIMAGE_EMBEDS",
- "links": [
- 114
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "1f535743870da83c530386874f10aabc70201919",
- "Node name for S&R": "WanVideoPhantomEmbeds"
- },
- "widgets_values": [
- 121,
- 5,
+ "comfy",
0,
- 1
+ -1,
+ false
]
- },
- {
- "id": 61,
- "type": "INTConstant",
- "pos": [
- -507.47119140625,
- -30.832414627075195
- ],
- "size": [
- 210,
- 58
- ],
- "flags": {},
- "order": 11,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "value",
- "type": "INT",
- "links": [
- 76,
- 79,
- 85,
- 89
- ]
- }
- ],
- "title": "Width",
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
- "Node name for S&R": "INTConstant"
- },
- "widgets_values": [
- 832
- ],
- "color": "#1b4669",
- "bgcolor": "#29699c"
- },
- {
- "id": 62,
- "type": "INTConstant",
- "pos": [
- -501.34527587890625,
- 83.66830444335938
- ],
- "size": [
- 210,
- 58
- ],
- "flags": {},
- "order": 12,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "value",
- "type": "INT",
- "links": [
- 77,
- 80,
- 86,
- 90
- ]
- }
- ],
- "title": "Height",
- "properties": {
- "cnr_id": "comfyui-kjnodes",
- "ver": "3e3a1a8aac61dc4515f6a7da74e026f05a80299f",
- "Node name for S&R": "INTConstant"
- },
- "widgets_values": [
- 480
- ],
- "color": "#1b4669",
- "bgcolor": "#29699c"
- },
- {
- "id": 22,
- "type": "WanVideoModelLoader",
- "pos": [
- 620.3950805664062,
- -357.8426818847656
- ],
- "size": [
- 477.4410095214844,
- 254
- ],
- "flags": {},
- "order": 13,
- "mode": 0,
- "inputs": [
- {
- "name": "compile_args",
- "shape": 7,
- "type": "WANCOMPILEARGS",
- "link": null
- },
- {
- "name": "block_swap_args",
- "shape": 7,
- "type": "BLOCKSWAPARGS",
- "link": null
- },
- {
- "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
- },
- {
- "name": "fantasytalking_model",
- "shape": 7,
- "type": "FANTASYTALKINGMODEL",
- "link": null
- }
- ],
- "outputs": [
- {
- "name": "model",
- "type": "WANVIDEOMODEL",
- "slot_index": 0,
- "links": [
- 29
- ]
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
- "Node name for S&R": "WanVideoModelLoader"
- },
- "widgets_values": [
- "WanVideo\\Phantom-Wan-1_3B_fp16.safetensors",
- "fp16_fast",
- "disabled",
- "offload_device",
- "sdpa"
- ],
- "color": "#223",
- "bgcolor": "#335"
- },
- {
- "id": 44,
- "type": "Note",
- "pos": [
- -364.3403625488281,
- -713.1776733398438
- ],
- "size": [
- 303.0501403808594,
- 88
- ],
- "flags": {},
- "order": 14,
- "mode": 0,
- "inputs": [],
- "outputs": [],
- "properties": {},
- "widgets_values": [
- "If you have Triton installed, connect this for ~30% speed increase"
- ],
- "color": "#432",
- "bgcolor": "#653"
- },
- {
- "id": 35,
- "type": "WanVideoTorchCompileSettings",
- "pos": [
- 2.7694029808044434,
- -703.7493896484375
- ],
- "size": [
- 421.6000061035156,
- 202
- ],
- "flags": {},
- "order": 15,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "torch_compile_args",
- "type": "WANCOMPILEARGS",
- "slot_index": 0,
- "links": []
- }
- ],
- "properties": {
- "cnr_id": "ComfyUI-WanVideoWrapper",
- "ver": "6099ad393b071728032fd481e96d77d2900eee2c",
- "Node name for S&R": "WanVideoTorchCompileSettings"
- },
- "widgets_values": [
- "inductor",
- false,
- "default",
- false,
- 64,
- true,
- 128
- ]
- },
- {
- "id": 36,
- "type": "Note",
- "pos": [
- 717.425537109375,
- -601.8137817382812
- ],
- "size": [
- 374.3061828613281,
- 171.9547576904297
- ],
- "flags": {},
- "order": 16,
- "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": 75,
- "type": "MarkdownNote",
- "pos": [
- 730.5043334960938,
- -853.4318237304688
- ],
- "size": [
- 369.9837341308594,
- 207.7837371826172
- ],
- "flags": {},
- "order": 17,
- "mode": 0,
- "inputs": [],
- "outputs": [],
- "properties": {},
- "widgets_values": [
- "Model links:\n\n1.3B:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-1_3B_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-1_3B_fp16.safetensors)\n\n14B:\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp16.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp16.safetensors)\n\n[https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp8_e4m3fn.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Phantom-Wan-14B_fp8_e4m3fn.safetensors)"
- ],
- "color": "#432",
- "bgcolor": "#653"
- },
- {
- "id": 30,
- "type": "VHS_VideoCombine",
- "pos": [
- 2202.927001953125,
- -570.5418701171875
- ],
- "size": [
- 1245.8460693359375,
- 334
- ],
- "flags": {},
- "order": 35,
- "mode": 0,
- "inputs": [
- {
- "name": "images",
- "type": "IMAGE",
- "link": 83
- },
- {
- "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": 24,
- "loop_count": 0,
- "filename_prefix": "WanVideo21_Phantom",
- "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": "WanVideo2_1_T2V_00013.mp4",
- "subfolder": "",
- "type": "temp",
- "format": "video/h264-mp4",
- "frame_rate": 16,
- "workflow": "WanVideo2_1_T2V_00013.png",
- "fullpath": "N:\\AI\\ComfyUI\\temp\\WanVideo2_1_T2V_00013.mp4"
- }
- }
- }
- },
- {
- "id": 77,
- "type": "Note",
- "pos": [
- -532.9983520507812,
- -216.64346313476562
- ],
- "size": [
- 274.3274841308594,
- 121.00284576416016
- ],
- "flags": {},
- "order": 18,
- "mode": 0,
- "inputs": [],
- "outputs": [],
- "title": "Note: Resolution",
- "properties": {},
- "widgets_values": [
- "Phantom is trained at 480p but can also work at 720p"
- ],
- "color": "#432",
- "bgcolor": "#653"
- },
- {
- "id": 76,
- "type": "Note",
- "pos": [
- 1697.19970703125,
- 441.3788757324219
- ],
- "size": [
- 274.3274841308594,
- 121.00284576416016
- ],
- "flags": {},
- "order": 19,
- "mode": 0,
- "inputs": [],
- "outputs": [],
- "title": "Note: FPS",
- "properties": {},
- "widgets_values": [
- "Phantom is trained at 24fps, but you can also generate less frames, quality may vary."
- ],
- "color": "#432",
- "bgcolor": "#653"
}
],
"links": [
@@ -1696,20 +1760,12 @@
0,
"WANTEXTENCODER"
],
- [
- 29,
- 22,
- 0,
- 27,
- 0,
- "WANVIDEOMODEL"
- ],
[
30,
16,
0,
27,
- 1,
+ 2,
"WANVIDEOTEXTEMBEDS"
],
[
@@ -1768,158 +1824,6 @@
0,
"WANVAE"
],
- [
- 71,
- 64,
- 0,
- 27,
- 6,
- "TEACACHEARGS"
- ],
- [
- 72,
- 57,
- 0,
- 65,
- 0,
- "IMAGE"
- ],
- [
- 73,
- 65,
- 0,
- 60,
- 0,
- "IMAGE"
- ],
- [
- 76,
- 61,
- 0,
- 60,
- 2,
- "INT"
- ],
- [
- 77,
- 62,
- 0,
- 60,
- 3,
- "INT"
- ],
- [
- 79,
- 61,
- 0,
- 65,
- 2,
- "INT"
- ],
- [
- 80,
- 62,
- 0,
- 65,
- 3,
- "INT"
- ],
- [
- 81,
- 28,
- 0,
- 66,
- 0,
- "IMAGE"
- ],
- [
- 82,
- 60,
- 0,
- 66,
- 1,
- "IMAGE"
- ],
- [
- 83,
- 66,
- 0,
- 30,
- 0,
- "IMAGE"
- ],
- [
- 85,
- 61,
- 0,
- 68,
- 2,
- "INT"
- ],
- [
- 86,
- 62,
- 0,
- 68,
- 3,
- "INT"
- ],
- [
- 87,
- 67,
- 0,
- 68,
- 0,
- "IMAGE"
- ],
- [
- 89,
- 61,
- 0,
- 69,
- 2,
- "INT"
- ],
- [
- 90,
- 62,
- 0,
- 69,
- 3,
- "INT"
- ],
- [
- 91,
- 68,
- 0,
- 69,
- 0,
- "IMAGE"
- ],
- [
- 102,
- 69,
- 0,
- 63,
- 0,
- "IMAGE"
- ],
- [
- 105,
- 69,
- 0,
- 73,
- 1,
- "IMAGE"
- ],
- [
- 106,
- 60,
- 0,
- 56,
- 1,
- "IMAGE"
- ],
[
110,
38,
@@ -1933,24 +1837,192 @@
74,
0,
27,
- 2,
+ 1,
"WANVIDIMAGE_EMBEDS"
],
[
- 119,
+ 122,
+ 35,
+ 0,
+ 22,
+ 0,
+ "WANCOMPILEARGS"
+ ],
+ [
+ 125,
+ 66,
+ 0,
+ 79,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 126,
+ 28,
+ 0,
+ 79,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 127,
+ 79,
+ 0,
+ 30,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 130,
+ 80,
+ 0,
+ 63,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 131,
+ 80,
+ 0,
73,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 137,
+ 81,
+ 0,
+ 56,
+ 1,
+ "IMAGE"
+ ],
+ [
+ 139,
+ 61,
+ 0,
+ 81,
+ 2,
+ "INT"
+ ],
+ [
+ 140,
+ 62,
+ 0,
+ 81,
+ 3,
+ "INT"
+ ],
+ [
+ 141,
+ 81,
+ 1,
+ 80,
+ 2,
+ "INT"
+ ],
+ [
+ 142,
+ 81,
+ 2,
+ 80,
+ 3,
+ "INT"
+ ],
+ [
+ 143,
+ 56,
0,
74,
0,
"LATENT"
],
[
- 120,
- 56,
+ 144,
+ 73,
0,
74,
1,
"LATENT"
+ ],
+ [
+ 145,
+ 81,
+ 0,
+ 82,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 147,
+ 78,
+ 0,
+ 83,
+ 1,
+ "WANVIDLORA"
+ ],
+ [
+ 148,
+ 83,
+ 0,
+ 27,
+ 0,
+ "WANVIDEOMODEL"
+ ],
+ [
+ 149,
+ 22,
+ 0,
+ 84,
+ 0,
+ "WANVIDEOMODEL"
+ ],
+ [
+ 150,
+ 84,
+ 0,
+ 83,
+ 0,
+ "WANVIDEOMODEL"
+ ],
+ [
+ 151,
+ 39,
+ 0,
+ 84,
+ 1,
+ "BLOCKSWAPARGS"
+ ],
+ [
+ 152,
+ 67,
+ 0,
+ 81,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 153,
+ 57,
+ 0,
+ 80,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 155,
+ 81,
+ 0,
+ 66,
+ 0,
+ "IMAGE"
+ ],
+ [
+ 156,
+ 80,
+ 0,
+ 66,
+ 1,
+ "IMAGE"
]
],
"groups": [
@@ -1971,13 +2043,13 @@
"config": {},
"extra": {
"ds": {
- "scale": 0.7400249944258622,
+ "scale": 0.7400249944258633,
"offset": [
- 1005.437787735656,
- 997.7652923947804
+ -638.0262905717265,
+ 888.6874794608037
]
},
- "frontendVersion": "1.20.3",
+ "frontendVersion": "1.26.7",
"node_versions": {
"ComfyUI-WanVideoWrapper": "5a2383621a05825d0d0437781afcb8552d9590fd",
"comfy-core": "0.3.26",
diff --git a/nodes_model_loading.py b/nodes_model_loading.py
index 631dca8..d955e9f 100644
--- a/nodes_model_loading.py
+++ b/nodes_model_loading.py
@@ -330,7 +330,7 @@ class WanVideoTorchCompileSettings:
RETURN_NAMES = ("torch_compile_args",)
FUNCTION = "set_args"
CATEGORY = "WanVideoWrapper"
- DESCRIPTION = "torch.compile settings, when connected to the model loader, torch.compile of the selected layers is attempted. Requires Triton and torch 2.5.0 is recommended"
+ DESCRIPTION = "torch.compile settings, when connected to the model loader, torch.compile of the selected layers is attempted. Requires Triton and torch > 2.7.0 is recommended"
def set_args(self, backend, fullgraph, mode, dynamic, dynamo_cache_size_limit, compile_transformer_blocks_only, dynamo_recompile_limit=128):