From cf18ecc2da1519349718bd9dfc2d8ea8e26068da Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 18 Jul 2025 16:42:02 +0300 Subject: [PATCH] update i2v basic example --- ...json => wanvideo_480p_I2V_example_03.json} | 1429 ++++++++--------- 1 file changed, 698 insertions(+), 731 deletions(-) rename example_workflows/{wanvideo_480p_I2V_example_02.json => wanvideo_480p_I2V_example_03.json} (83%) diff --git a/example_workflows/wanvideo_480p_I2V_example_02.json b/example_workflows/wanvideo_480p_I2V_example_03.json similarity index 83% rename from example_workflows/wanvideo_480p_I2V_example_02.json rename to example_workflows/wanvideo_480p_I2V_example_03.json index 06b1bc2..1e8c2ba 100644 --- a/example_workflows/wanvideo_480p_I2V_example_02.json +++ b/example_workflows/wanvideo_480p_I2V_example_03.json @@ -1,22 +1,22 @@ { "id": "206247b6-9fec-4ed2-8927-e4f388c674d4", "revision": 0, - "last_node_id": 67, - "last_link_id": 83, + "last_node_id": 69, + "last_link_id": 89, "nodes": [ { "id": 46, "type": "WanVideoTextEmbedBridge", "pos": [ - 1204.152587890625, - 707.1484985351562 + 919.7472534179688, + 822.0996704101562 ], "size": [ 315, 46 ], "flags": {}, - "order": 22, + "order": 18, "mode": 2, "inputs": [ { @@ -26,6 +26,7 @@ }, { "name": "negative", + "shape": 7, "type": "CONDITIONING", "link": 55 } @@ -48,15 +49,15 @@ "id": 50, "type": "CLIPTextEncode", "pos": [ - 754.153076171875, - 967.1485595703125 + 469.7478332519531, + 1082.099609375 ], "size": [ 400, 200 ], "flags": {}, - "order": 19, + "order": 15, "mode": 2, "inputs": [ { @@ -88,12 +89,12 @@ "id": 48, "type": "CLIPLoader", "pos": [ - 394.15313720703125, - 717.1484985351562 + 109.74829864501953, + 832.0996704101562 ], "size": [ 315, - 98.00003051757812 + 106 ], "flags": {}, "order": 0, @@ -125,15 +126,15 @@ "id": 49, "type": "CLIPTextEncode", "pos": [ - 754.153076171875, - 717.1484985351562 + 469.7478332519531, + 832.0996704101562 ], "size": [ 400, 200 ], "flags": {}, - "order": 18, + "order": 14, "mode": 2, "inputs": [ { @@ -161,62 +162,6 @@ "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": [ - -580, - -760 - ], - "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": 45, - "type": "WanVideoVRAMManagement", - "pos": [ - -210, - -580 - ], - "size": [ - 315, - 58 - ], - "flags": {}, - "order": 2, - "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": 36, "type": "Note", @@ -229,7 +174,7 @@ 171.9547576904297 ], "flags": {}, - "order": 3, + "order": 1, "mode": 0, "inputs": [], "outputs": [], @@ -252,7 +197,7 @@ 88 ], "flags": {}, - "order": 4, + "order": 2, "mode": 0, "inputs": [], "outputs": [], @@ -267,15 +212,15 @@ "id": 51, "type": "Note", "pos": [ - 424.153076171875, - 547.1480712890625 + 139.7482452392578, + 662.0992431640625 ], "size": [ 253.16725158691406, 88 ], "flags": {}, - "order": 5, + "order": 3, "mode": 0, "inputs": [], "outputs": [], @@ -286,175 +231,6 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 62, - "type": "Note", - "pos": [ - 315.68389892578125, - 215.8892364501953 - ], - "size": [ - 268.73455810546875, - 90.03050994873047 - ], - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "The original code had automatic resolution adjustment based on input image total pixels and aspect ratio. If you want to set it manually, disable the adjust_resolution" - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 11, - "type": "LoadWanVideoT5TextEncoder", - "pos": [ - 161.7229461669922, - -501.2225036621094 - ], - "size": [ - 377.1661376953125, - 130 - ], - "flags": {}, - "order": 7, - "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": 52, - "type": "WanVideoTeaCache", - "pos": [ - 1307.6705322265625, - -787.4303588867188 - ], - "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.25, - 1, - -1, - "offload_device", - "true", - "e" - ] - }, - { - "id": 54, - "type": "Note", - "pos": [ - 961.6879272460938, - -580.803466796875 - ], - "size": [ - 327.61932373046875, - 88 - ], - "flags": {}, - "order": 9, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "Enhance-a-video can increase the fidelity of the results, too high values lead to noisy results." - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 53, - "type": "Note", - "pos": [ - 960.3718872070312, - -810.77099609375 - ], - "size": [ - 324.64129638671875, - 159.47401428222656 - ], - "flags": {}, - "order": 10, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "TeaCache could be considered to be sort of an automated step skipper \n\nThe relative l1 threshold -value determines how aggressive this is, higher values are faster but quality suffers more. Very first steps should NEVER be skipped with this model or it kills the motion. When using the pre-calculated coefficients, the treshold value should be much higher than with the default coefficients." - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 44, - "type": "Note", - "pos": [ - -620.9041137695312, - -1049.732421875 - ], - "size": [ - 303.0501403808594, - 88 - ], - "flags": {}, - "order": 11, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "If you have Triton installed, connect this for ~30% speed increase" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 39, "type": "WanVideoBlockSwap", @@ -464,10 +240,10 @@ ], "size": [ 315, - 130 + 154 ], "flags": {}, - "order": 12, + "order": 4, "mode": 0, "inputs": [], "outputs": [ @@ -489,7 +265,8 @@ 10, false, false, - true + true, + 0 ], "color": "#223", "bgcolor": "#335" @@ -503,10 +280,10 @@ ], "size": [ 390.5999755859375, - 178 + 202 ], "flags": {}, - "order": 13, + "order": 5, "mode": 0, "inputs": [], "outputs": [ @@ -528,140 +305,12 @@ "default", false, 64, - true + true, + 128 ], "color": "#223", "bgcolor": "#335" }, - { - "id": 58, - "type": "LoadImage", - "pos": [ - -650.719482421875, - 173.7036895751953 - ], - "size": [ - 413.10479736328125, - 498.3180847167969 - ], - "flags": {}, - "order": 14, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 72 - ] - }, - { - "name": "MASK", - "type": "MASK", - "links": null - } - ], - "properties": { - "cnr_id": "comfy-core", - "ver": "0.3.26", - "Node name for S&R": "LoadImage" - }, - "widgets_values": [ - "oldman_upscaled.png", - "image", - "" - ], - "color": "#2a363b", - "bgcolor": "#3f5159" - }, - { - "id": 63, - "type": "WanVideoImageToVideoEncode", - "pos": [ - 304.6556091308594, - -129.80532836914062 - ], - "size": [ - 352.79998779296875, - 338 - ], - "flags": {}, - "order": 25, - "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": 83 - }, - { - "name": "end_image", - "shape": 7, - "type": "IMAGE", - "link": null - }, - { - "name": "width", - "type": "INT", - "widget": { - "name": "width" - }, - "link": 75 - }, - { - "name": "height", - "type": "INT", - "widget": { - "name": "height" - }, - "link": 76 - }, - { - "name": "control_embeds", - "shape": 7, - "type": "WANVIDIMAGE_EMBEDS", - "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.030000000000000006, - 1, - 1, - true, - false - ], - "color": "#2a363b", - "bgcolor": "#3f5159" - }, { "id": 59, "type": "CLIPVisionLoader", @@ -674,7 +323,7 @@ 58 ], "flags": {}, - "order": 15, + "order": 6, "mode": 0, "inputs": [], "outputs": [ @@ -709,7 +358,7 @@ 261.5306701660156 ], "flags": {}, - "order": 23, + "order": 20, "mode": 0, "inputs": [ { @@ -747,149 +396,6 @@ "color": "#332922", "bgcolor": "#593930" }, - { - "id": 27, - "type": "WanVideoSampler", - "pos": [ - 1315.2401123046875, - -401.48028564453125 - ], - "size": [ - 315, - 787 - ], - "flags": {}, - "order": 26, - "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": 80 - }, - { - "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": null - }, - { - "name": "loop_args", - "shape": 7, - "type": "LOOPARGS", - "link": null - }, - { - "name": "experimental_args", - "shape": 7, - "type": "EXPERIMENTALARGS", - "link": null - } - ], - "outputs": [ - { - "name": "samples", - "type": "LATENT", - "slot_index": 0, - "links": [ - 33 - ] - } - ], - "properties": { - "cnr_id": "ComfyUI-WanVideoWrapper", - "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50", - "Node name for S&R": "WanVideoSampler" - }, - "widgets_values": [ - 25, - 6, - 5, - 1057359483639287, - "fixed", - true, - "unipc", - 0, - 1, - "", - "comfy" - ] - }, - { - "id": 55, - "type": "WanVideoEnhanceAVideo", - "pos": [ - 1312.6407470703125, - -596.7884521484375 - ], - "size": [ - 315, - 106 - ], - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "feta_args", - "type": "FETAARGS", - "links": [ - 80 - ] - } - ], - "properties": { - "cnr_id": "ComfyUI-WanVideoWrapper", - "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50", - "Node name for S&R": "WanVideoEnhanceAVideo" - }, - "widgets_values": [ - 2, - 0, - 1 - ] - }, { "id": 30, "type": "VHS_VideoCombine", @@ -899,10 +405,10 @@ ], "size": [ 1245.8460693359375, - 1573.8460693359375 + 334 ], "flags": {}, - "order": 28, + "order": 24, "mode": 0, "inputs": [ { @@ -976,10 +482,10 @@ ], "size": [ 315, - 174 + 198 ], "flags": {}, - "order": 27, + "order": 23, "mode": 0, "inputs": [ { @@ -1013,111 +519,8 @@ 272, 272, 144, - 128 - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 22, - "type": "WanVideoModelLoader", - "pos": [ - 150, - -780 - ], - "size": [ - 477.4410095214844, - 226.43276977539062 - ], - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [ - { - "name": "compile_args", - "shape": 7, - "type": "WANCOMPILEARGS", - "link": null - }, - { - "name": "block_swap_args", - "shape": 7, - "type": "BLOCKSWAPARGS", - "link": 50 - }, - { - "name": "lora", - "shape": 7, - "type": "WANVIDLORA", - "link": null - }, - { - "name": "vram_management_args", - "shape": 7, - "type": "VRAM_MANAGEMENTARGS", - "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-I2V-14B-480P_fp8_e4m3fn.safetensors", - "fp16", - "fp8_e4m3fn", - "offload_device", - "sdpa" - ], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 38, - "type": "WanVideoVAELoader", - "pos": [ - 169.25408935546875, - -322.9471740722656 - ], - "size": [ - 372.7727966308594, - 82 - ], - "flags": {}, - "order": 17, - "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" + 128, + "default" ], "color": "#322", "bgcolor": "#533" @@ -1134,7 +537,7 @@ 262 ], "flags": {}, - "order": 24, + "order": 19, "mode": 0, "inputs": [ { @@ -1145,7 +548,7 @@ { "name": "image_1", "type": "IMAGE", - "link": 73 + "link": 85 }, { "name": "image_2", @@ -1187,47 +590,70 @@ "bgcolor": "#355" }, { - "id": 66, - "type": "ImageResizeKJ", + "id": 58, + "type": "LoadImage", "pos": [ - -175.95899963378906, - 176.40057373046875 + -650.719482421875, + 173.7036895751953 ], "size": [ - 315, - 266 + 413.10479736328125, + 498.3180847167969 ], "flags": {}, - "order": 21, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 84 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.26", + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "oldman_upscaled.png", + "image" + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 68, + "type": "ImageResizeKJv2", + "pos": [ + -153.1925811767578, + 172.66262817382812 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 16, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", - "link": 72 + "link": 84 }, { - "name": "get_image_size", + "name": "mask", "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" - }, + "type": "MASK", "link": null } ], @@ -1236,40 +662,588 @@ "name": "IMAGE", "type": "IMAGE", "links": [ - 73, - 83 + 85, + 86 ] }, { "name": "width", "type": "INT", "links": [ - 75 + 87 ] }, { "name": "height", "type": "INT", "links": [ - 76 + 88 ] + }, + { + "name": "mask", + "type": "MASK", + "links": null } ], "properties": { "cnr_id": "comfyui-kjnodes", - "ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028", - "Node name for S&R": "ImageResizeKJ" + "ver": "ad37ce656c13e9abea002b46e3a89be3dba32355", + "Node name for S&R": "ImageResizeKJv2" }, "widgets_values": [ 624, 624, "lanczos", - false, + "crop", + "0, 0, 0", + "center", 16, - 0, - 0, - "disabled" + "cpu", + "Output: 1 x 624 x 624 | 4.46MB" ] + }, + { + "id": 45, + "type": "WanVideoVRAMManagement", + "pos": [ + -206.39657592773438, + -531.3529663085938 + ], + "size": [ + 315, + 58 + ], + "flags": {}, + "order": 8, + "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": 63, + "type": "WanVideoImageToVideoEncode", + "pos": [ + 312.583251953125, + -87.46442413330078 + ], + "size": [ + 352.79998779296875, + 390 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "vae", + "type": "WANVAE", + "link": 81 + }, + { + "name": "clip_embeds", + "shape": 7, + "type": "WANVIDIMAGE_CLIPEMBEDS", + "link": 82 + }, + { + "name": "start_image", + "shape": 7, + "type": "IMAGE", + "link": 86 + }, + { + "name": "end_image", + "shape": 7, + "type": "IMAGE", + "link": null + }, + { + "name": "control_embeds", + "shape": 7, + "type": "WANVIDIMAGE_EMBEDS", + "link": null + }, + { + "name": "temporal_mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "extra_latents", + "shape": 7, + "type": "LATENT", + "link": null + }, + { + "name": "add_cond_latents", + "shape": 7, + "type": "ADD_COND_LATENTS", + "link": null + }, + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 87 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 88 + } + ], + "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.030000000000000006, + 1, + 1, + true, + false, + false + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 11, + "type": "LoadWanVideoT5TextEncoder", + "pos": [ + 172.5333709716797, + -444.4674987792969 + ], + "size": [ + 377.1661376953125, + 130 + ], + "flags": {}, + "order": 9, + "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": [ + 173.75848388671875, + -263.48968505859375 + ], + "size": [ + 372.7727966308594, + 82 + ], + "flags": {}, + "order": 10, + "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": 22, + "type": "WanVideoModelLoader", + "pos": [ + 150, + -780 + ], + "size": [ + 477.4410095214844, + 274 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "compile_args", + "shape": 7, + "type": "WANCOMPILEARGS", + "link": null + }, + { + "name": "block_swap_args", + "shape": 7, + "type": "BLOCKSWAPARGS", + "link": 50 + }, + { + "name": "lora", + "shape": 7, + "type": "WANVIDLORA", + "link": 89 + }, + { + "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": [ + 29, + 79 + ] + } + ], + "properties": { + "cnr_id": "ComfyUI-WanVideoWrapper", + "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50", + "Node name for S&R": "WanVideoModelLoader" + }, + "widgets_values": [ + "WanVideo\\Wan2_1-I2V-14B-480P_fp8_e4m3fn.safetensors", + "fp16", + "fp8_e4m3fn", + "offload_device", + "sdpa" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 69, + "type": "WanVideoLoraSelect", + "pos": [ + -558.93408203125, + -405.2188415527344 + ], + "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": [ + 89 + ] + } + ], + "properties": { + "cnr_id": "ComfyUI-WanVideoWrapper", + "ver": "6b9565ed6307168c45770ec08517d7df65b61e3f", + "Node name for S&R": "WanVideoLoraSelect" + }, + "widgets_values": [ + "WanVideo\\Lightx2v\\lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", + 1, + false, + "
Metadata
Metadata
No metadata found
" + ] + }, + { + "id": 27, + "type": "WanVideoSampler", + "pos": [ + 1315.2401123046875, + -401.48028564453125 + ], + "size": [ + 315, + 927 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 29 + }, + { + "name": "image_embeds", + "type": "WANVIDIMAGE_EMBEDS", + "link": 66 + }, + { + "name": "text_embeds", + "shape": 7, + "type": "WANVIDEOTEXTEMBEDS", + "link": 30 + }, + { + "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": null + }, + { + "name": "flowedit_args", + "shape": 7, + "type": "FLOWEDITARGS", + "link": null + }, + { + "name": "slg_args", + "shape": 7, + "type": "SLGARGS", + "link": null + }, + { + "name": "loop_args", + "shape": 7, + "type": "LOOPARGS", + "link": null + }, + { + "name": "experimental_args", + "shape": 7, + "type": "EXPERIMENTALARGS", + "link": null + }, + { + "name": "sigmas", + "shape": 7, + "type": "SIGMAS", + "link": null + }, + { + "name": "unianimate_poses", + "shape": 7, + "type": "UNIANIMATE_POSE", + "link": null + }, + { + "name": "fantasytalking_embeds", + "shape": 7, + "type": "FANTASYTALKING_EMBEDS", + "link": null + }, + { + "name": "uni3c_embeds", + "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": [ + { + "name": "samples", + "type": "LATENT", + "slot_index": 0, + "links": [ + 33 + ] + } + ], + "properties": { + "cnr_id": "ComfyUI-WanVideoWrapper", + "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50", + "Node name for S&R": "WanVideoSampler" + }, + "widgets_values": [ + 4, + 1, + 5, + 1057359483639287, + "fixed", + true, + "dpm++_sde", + 0, + 1, + "", + "comfy", + "" + ] + }, + { + "id": 42, + "type": "Note", + "pos": [ + -580, + -760 + ], + "size": [ + 325.1150207519531, + 196.76773071289062 + ], + "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.\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": 44, + "type": "Note", + "pos": [ + -620.9041137695312, + -1049.732421875 + ], + "size": [ + 303.0501403808594, + 88 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "If you have Triton installed, connect this for ~30% speed increase and reduced peak VRAM usage" + ], + "color": "#432", + "bgcolor": "#653" } ], "links": [ @@ -1294,7 +1268,7 @@ 16, 0, 27, - 1, + 2, "WANVIDEOTEXTEMBEDS" ], [ @@ -1361,20 +1335,12 @@ 1, "CONDITIONING" ], - [ - 56, - 52, - 0, - 27, - 6, - "TEACACHEARGS" - ], [ 66, 63, 0, 27, - 2, + 1, "WANVIDIMAGE_EMBEDS" ], [ @@ -1385,38 +1351,6 @@ 0, "CLIP_VISION" ], - [ - 72, - 58, - 0, - 66, - 0, - "IMAGE" - ], - [ - 73, - 66, - 0, - 65, - 1, - "IMAGE" - ], - [ - 75, - 66, - 1, - 63, - 4, - "INT" - ], - [ - 76, - 66, - 2, - 63, - 5, - "INT" - ], [ 79, 22, @@ -1425,14 +1359,6 @@ 1, "WANVIDEOMODEL" ], - [ - 80, - 55, - 0, - 27, - 4, - "FETAARGS" - ], [ 81, 38, @@ -1450,12 +1376,52 @@ "WANVIDIMAGE_CLIPEMBEDS" ], [ - 83, - 66, + 84, + 58, + 0, + 68, + 0, + "IMAGE" + ], + [ + 85, + 68, + 0, + 65, + 1, + "IMAGE" + ], + [ + 86, + 68, 0, 63, 2, "IMAGE" + ], + [ + 87, + 68, + 1, + 63, + 8, + "INT" + ], + [ + 88, + 68, + 2, + 63, + 9, + "INT" + ], + [ + 89, + 69, + 0, + 22, + 2, + "WANVIDLORA" ] ], "groups": [ @@ -1463,8 +1429,8 @@ "id": 1, "title": "ComfyUI text encoding alternative", "bounding": [ - 331.337158203125, - 403.2147216796875, + 46.93235778808594, + 518.1659545898438, 1210.621337890625, 805.9080810546875 ], @@ -1476,10 +1442,10 @@ "config": {}, "extra": { "ds": { - "scale": 0.6727499949326018, + "scale": 0.672749994932602, "offset": [ - 547.1803980844202, - 840.3120224296222 + 568.4491971472158, + 889.9586829499522 ] }, "node_versions": { @@ -1491,7 +1457,8 @@ "VHS_latentpreview": true, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, - "VHS_KeepIntermediate": true + "VHS_KeepIntermediate": true, + "frontendVersion": "1.24.1" }, "version": 0.4 } \ No newline at end of file