diff --git a/example_workflows/wanvideo_480p_I2V_example_02.json b/example_workflows/wanvideo_480p_I2V_example_02.json index a9285f7..41145ff 100644 --- a/example_workflows/wanvideo_480p_I2V_example_02.json +++ b/example_workflows/wanvideo_480p_I2V_example_02.json @@ -773,10 +773,11 @@ "Node name for S&R": "WanVideoTeaCache" }, "widgets_values": [ - 0.030000000000000006, - 6, + 0.25, + 1, -1, - "offload_device" + "offload_device", + "true" ] }, { diff --git a/example_workflows/wanvideo_T2V_example_02.json b/example_workflows/wanvideo_T2V_example_02.json index de95560..efc4370 100644 --- a/example_workflows/wanvideo_T2V_example_02.json +++ b/example_workflows/wanvideo_T2V_example_02.json @@ -35,7 +35,9 @@ "bf16", "offload_device", "disabled" - ] + ], + "color": "#332922", + "bgcolor": "#593930" }, { "id": 37, @@ -115,40 +117,9 @@ 272, 144, 128 - ] - }, - { - "id": 38, - "type": "WanVideoVAELoader", - "pos": [ - 1687.4093017578125, - -582.2750854492188 ], - "size": [ - 315, - 82 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "vae", - "type": "WANVAE", - "links": [ - 43 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "WanVideoVAELoader" - }, - "widgets_values": [ - "wanvideo\\Wan2_1_VAE_bf16.safetensors", - "bf16" - ] + "color": "#322", + "bgcolor": "#533" }, { "id": 36, @@ -162,7 +133,7 @@ 171.9547576904297 ], "flags": {}, - "order": 3, + "order": 2, "mode": 0, "inputs": [], "outputs": [], @@ -173,67 +144,6 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 22, - "type": "WanVideoModelLoader", - "pos": [ - 620.3950805664062, - -357.8426818847656 - ], - "size": [ - 477.4410095214844, - 226.43276977539062 - ], - "flags": {}, - "order": 19, - "mode": 0, - "inputs": [ - { - "name": "compile_args", - "type": "WANCOMPILEARGS", - "shape": 7, - "link": null - }, - { - "name": "block_swap_args", - "type": "BLOCKSWAPARGS", - "shape": 7, - "link": 50 - }, - { - "name": "lora", - "type": "WANVIDLORA", - "shape": 7, - "link": null - }, - { - "name": "vram_management_args", - "type": "VRAM_MANAGEMENTARGS", - "shape": 7, - "link": null - } - ], - "outputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "links": [ - 29 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "WanVideoModelLoader" - }, - "widgets_values": [ - "WanVideo\\Wan2_1-T2V-14B_fp8_e4m3fn.safetensors", - "fp16", - "fp8_e4m3fn", - "offload_device", - "sdpa" - ] - }, { "id": 42, "type": "Note", @@ -246,7 +156,7 @@ 152.77333068847656 ], "flags": {}, - "order": 4, + "order": 3, "mode": 0, "inputs": [], "outputs": [], @@ -257,83 +167,6 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 46, - "type": "WanVideoTextEmbedBridge", - "pos": [ - 1036.8792724609375, - 570.4955444335938 - ], - "size": [ - 315, - 46 - ], - "flags": {}, - "order": 20, - "mode": 2, - "inputs": [ - { - "name": "positive", - "type": "CONDITIONING", - "link": 54 - }, - { - "name": "negative", - "type": "CONDITIONING", - "link": 55 - } - ], - "outputs": [ - { - "name": "text_embeds", - "type": "WANVIDEOTEXTEMBEDS", - "links": null - } - ], - "properties": { - "Node name for S&R": "WanVideoTextEmbedBridge" - } - }, - { - "id": 16, - "type": "WanVideoTextEncode", - "pos": [ - 675.8850708007812, - -36.032100677490234 - ], - "size": [ - 420.30511474609375, - 261.5306701660156 - ], - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [ - { - "name": "t5", - "type": "WANTEXTENCODER", - "link": 15 - } - ], - "outputs": [ - { - "name": "text_embeds", - "type": "WANVIDEOTEXTEMBEDS", - "links": [ - 30 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "WanVideoTextEncode" - }, - "widgets_values": [ - "high quality nature video featuring a red panda balancing on a bamboo stem while a bird lands on it's head, on the background there is a waterfall", - "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", - true - ] - }, { "id": 50, "type": "CLIPTextEncode", @@ -370,7 +203,9 @@ }, "widgets_values": [ "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" - ] + ], + "color": "#432", + "bgcolor": "#653" }, { "id": 48, @@ -384,7 +219,7 @@ 98.00003051757812 ], "flags": {}, - "order": 5, + "order": 4, "mode": 2, "inputs": [], "outputs": [ @@ -405,7 +240,9 @@ "umt5_xxl_fp16.safetensors", "wan", "default" - ] + ], + "color": "#432", + "bgcolor": "#653" }, { "id": 51, @@ -419,7 +256,7 @@ 88 ], "flags": {}, - "order": 6, + "order": 5, "mode": 0, "inputs": [], "outputs": [], @@ -466,7 +303,9 @@ }, "widgets_values": [ "high quality nature video featuring a red panda balancing on a bamboo stem while a bird lands on it's head, on the background there is a waterfall" - ] + ], + "color": "#432", + "bgcolor": "#653" }, { "id": 27, @@ -551,8 +390,7 @@ true, "unipc", 0, - 1, - "" + 1 ] }, { @@ -567,7 +405,7 @@ 58 ], "flags": {}, - "order": 7, + "order": 6, "mode": 0, "inputs": [], "outputs": [ @@ -596,7 +434,7 @@ 88 ], "flags": {}, - "order": 8, + "order": 7, "mode": 0, "inputs": [], "outputs": [], @@ -619,7 +457,7 @@ 159.47401428222656 ], "flags": {}, - "order": 9, + "order": 8, "mode": 0, "inputs": [], "outputs": [], @@ -639,10 +477,10 @@ ], "size": [ 315, - 130 + 154 ], "flags": {}, - "order": 10, + "order": 9, "mode": 0, "inputs": [], "outputs": [ @@ -658,10 +496,11 @@ "Node name for S&R": "WanVideoTeaCache" }, "widgets_values": [ - 0.030000000000000006, - 6, + 0.25, + 1, -1, - "offload_device" + "offload_device", + "true" ] }, { @@ -676,7 +515,7 @@ 106 ], "flags": {}, - "order": 11, + "order": 10, "mode": 0, "inputs": [], "outputs": [ @@ -709,7 +548,7 @@ 88 ], "flags": {}, - "order": 12, + "order": 11, "mode": 0, "inputs": [], "outputs": [], @@ -732,7 +571,7 @@ 178 ], "flags": {}, - "order": 13, + "order": 12, "mode": 0, "inputs": [], "outputs": [ @@ -767,7 +606,7 @@ 88 ], "flags": {}, - "order": 14, + "order": 13, "mode": 0, "inputs": [], "outputs": [], @@ -790,7 +629,7 @@ 106 ], "flags": {}, - "order": 15, + "order": 14, "mode": 0, "inputs": [], "outputs": [ @@ -810,7 +649,9 @@ 20, false, false - ] + ], + "color": "#223", + "bgcolor": "#335" }, { "id": 30, @@ -821,7 +662,7 @@ ], "size": [ 1245.8460693359375, - 1055.2188720703125 + 334 ], "flags": {}, "order": 23, @@ -886,6 +727,184 @@ } } } + }, + { + "id": 22, + "type": "WanVideoModelLoader", + "pos": [ + 620.3950805664062, + -357.8426818847656 + ], + "size": [ + 477.4410095214844, + 226.43276977539062 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "compile_args", + "type": "WANCOMPILEARGS", + "shape": 7, + "link": null + }, + { + "name": "block_swap_args", + "type": "BLOCKSWAPARGS", + "shape": 7, + "link": 50 + }, + { + "name": "lora", + "type": "WANVIDLORA", + "shape": 7, + "link": null + }, + { + "name": "vram_management_args", + "type": "VRAM_MANAGEMENTARGS", + "shape": 7, + "link": null + } + ], + "outputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "links": [ + 29 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "WanVideoModelLoader" + }, + "widgets_values": [ + "WanVideo\\Wan2_1-T2V-14B_fp8_e4m3fn.safetensors", + "fp16", + "fp8_e4m3fn", + "offload_device", + "sdpa" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 16, + "type": "WanVideoTextEncode", + "pos": [ + 675.8850708007812, + -36.032100677490234 + ], + "size": [ + 420.30511474609375, + 261.5306701660156 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "t5", + "type": "WANTEXTENCODER", + "link": 15 + } + ], + "outputs": [ + { + "name": "text_embeds", + "type": "WANVIDEOTEXTEMBEDS", + "links": [ + 30 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "WanVideoTextEncode" + }, + "widgets_values": [ + "high quality nature video featuring a red panda balancing on a bamboo stem while a bird lands on it's head, on the background there is a waterfall", + "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", + true + ], + "color": "#332922", + "bgcolor": "#593930" + }, + { + "id": 38, + "type": "WanVideoVAELoader", + "pos": [ + 1687.4093017578125, + -582.2750854492188 + ], + "size": [ + 315, + 82 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "vae", + "type": "WANVAE", + "links": [ + 43 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "WanVideoVAELoader" + }, + "widgets_values": [ + "wanvideo\\Wan2_1_VAE_bf16.safetensors", + "bf16" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 46, + "type": "WanVideoTextEmbedBridge", + "pos": [ + 1036.8792724609375, + 570.4955444335938 + ], + "size": [ + 315, + 46 + ], + "flags": {}, + "order": 20, + "mode": 2, + "inputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "link": 54 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 55 + } + ], + "outputs": [ + { + "name": "text_embeds", + "type": "WANVIDEOTEXTEMBEDS", + "links": null + } + ], + "properties": { + "Node name for S&R": "WanVideoTextEmbedBridge" + }, + "widgets_values": [] } ], "links": [ @@ -1020,15 +1039,15 @@ "config": {}, "extra": { "ds": { - "scale": 0.611590904484182, + "scale": 0.7400249944258603, "offset": [ - 238.14121489210675, - 1082.2774342540883 + 174.8364183273494, + 1243.2697711976823 ] }, "node_versions": { - "ComfyUI-WanVideoWrapper": "721cd65e7b5224c70a3d20446d9d561f1732216b", - "comfy-core": "0.3.19", + "ComfyUI-WanVideoWrapper": "bc11af31e4e720e6926a0612e88b65c3d1c49fc7", + "comfy-core": "0.3.23", "ComfyUI-VideoHelperSuite": "2c25b8b53835aaeb63f831b3137c705cf9f85dce" }, "VHS_latentpreview": true, diff --git a/example_workflows/wanvideo_long_T2V_example_01.json b/example_workflows/wanvideo_long_T2V_example_01.json index a8cb379..fd41120 100644 --- a/example_workflows/wanvideo_long_T2V_example_01.json +++ b/example_workflows/wanvideo_long_T2V_example_01.json @@ -1,6 +1,6 @@ { - "last_node_id": 44, - "last_link_id": 57, + "last_node_id": 46, + "last_link_id": 58, "nodes": [ { "id": 33, @@ -11,7 +11,7 @@ ], "size": [ 351.70458984375, - 60 + 88 ], "flags": {}, "order": 0, @@ -72,7 +72,7 @@ 174 ], "flags": {}, - "order": 10, + "order": 12, "mode": 0, "inputs": [ { @@ -119,7 +119,7 @@ 226.43276977539062 ], "flags": {}, - "order": 8, + "order": 10, "mode": 0, "inputs": [ { @@ -139,6 +139,12 @@ "type": "WANVIDLORA", "shape": 7, "link": null + }, + { + "name": "vram_management_args", + "type": "VRAM_MANAGEMENTARGS", + "shape": 7, + "link": null } ], "outputs": [ @@ -207,7 +213,7 @@ 86 ], "flags": {}, - "order": 11, + "order": 13, "mode": 0, "inputs": [ { @@ -226,17 +232,20 @@ "slot_index": 0 }, { - "name": "832 width", + "name": "width", + "label": "832 width", "type": "INT", "links": null }, { - "name": "480 height", + "name": "height", + "label": "480 height", "type": "INT", "links": null }, { - "name": "129 count", + "name": "count", + "label": "257 count", "type": "INT", "links": null } @@ -258,7 +267,7 @@ 261.5306701660156 ], "flags": {}, - "order": 7, + "order": 9, "mode": 0, "inputs": [ { @@ -286,104 +295,6 @@ true ] }, - { - "id": 27, - "type": "WanVideoSampler", - "pos": [ - 1315.2401123046875, - -401.48028564453125 - ], - "size": [ - 315, - 534.1923217773438 - ], - "flags": {}, - "order": 9, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 29 - }, - { - "name": "text_embeds", - "type": "WANVIDEOTEXTEMBEDS", - "link": 30 - }, - { - "name": "image_embeds", - "type": "WANVIDIMAGE_EMBEDS", - "link": 42 - }, - { - "name": "samples", - "type": "LATENT", - "shape": 7, - "link": null - }, - { - "name": "feta_args", - "type": "FETAARGS", - "shape": 7, - "link": null - }, - { - "name": "context_options", - "type": "WANVIDCONTEXT", - "shape": 7, - "link": 57 - } - ], - "outputs": [ - { - "name": "samples", - "type": "LATENT", - "links": [ - 33 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "WanVideoSampler" - }, - "widgets_values": [ - 30, - 6, - 5, - 1057359483639288, - "fixed", - true, - "unipc", - 0, - 1, - "" - ] - }, - { - "id": 36, - "type": "Note", - "pos": [ - 796.0189208984375, - -521.5020751953125 - ], - "size": [ - 298.2554016113281, - 108.62744140625 - ], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": {}, - "widgets_values": [ - "sdpa should work too, haven't tested flaash\n\nfp8_fast seems to cause huge quality degradation" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 30, "type": "VHS_VideoCombine", @@ -396,7 +307,7 @@ 840.2385864257812 ], "flags": {}, - "order": 12, + "order": 14, "mode": 0, "inputs": [ { @@ -448,13 +359,13 @@ "hidden": false, "paused": false, "params": { - "filename": "WanVideo2_1_T2V_00125.mp4", + "filename": "WanVideo2_1_T2V_00412.mp4", "subfolder": "", "type": "output", "format": "video/h264-mp4", "frame_rate": 16, - "workflow": "WanVideo2_1_T2V_00125.png", - "fullpath": "N:\\AI\\ComfyUI\\output\\WanVideo2_1_T2V_00125.mp4" + "workflow": "WanVideo2_1_T2V_00412.png", + "fullpath": "N:\\AI\\ComfyUI\\output\\WanVideo2_1_T2V_00412.mp4" } } } @@ -471,7 +382,7 @@ 106 ], "flags": {}, - "order": 4, + "order": 3, "mode": 0, "inputs": [], "outputs": [ @@ -492,42 +403,6 @@ 257 ] }, - { - "id": 43, - "type": "WanVideoContextOptions", - "pos": [ - 1307.9541015625, - -776.4462280273438 - ], - "size": [ - 315, - 154 - ], - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "context_options", - "type": "WANVIDCONTEXT", - "links": [ - 57 - ], - "slot_index": 0 - } - ], - "properties": { - "Node name for S&R": "WanVideoContextOptions" - }, - "widgets_values": [ - "uniform_standard", - 81, - 4, - 16, - true - ] - }, { "id": 35, "type": "WanVideoTorchCompileSettings", @@ -540,7 +415,7 @@ 178 ], "flags": {}, - "order": 6, + "order": 4, "mode": 0, "inputs": [], "outputs": [ @@ -564,6 +439,211 @@ 64, true ] + }, + { + "id": 43, + "type": "WanVideoContextOptions", + "pos": [ + 1306.3160400390625, + -808.3861083984375 + ], + "size": [ + 315, + 178 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "context_options", + "type": "WANVIDCONTEXT", + "links": [ + 57 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "WanVideoContextOptions" + }, + "widgets_values": [ + "uniform_standard", + 81, + 4, + 16, + true, + false + ] + }, + { + "id": 27, + "type": "WanVideoSampler", + "pos": [ + 1315.2401123046875, + -401.48028564453125 + ], + "size": [ + 315, + 574.1923217773438 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 29 + }, + { + "name": "text_embeds", + "type": "WANVIDEOTEXTEMBEDS", + "link": 30 + }, + { + "name": "image_embeds", + "type": "WANVIDIMAGE_EMBEDS", + "link": 42 + }, + { + "name": "samples", + "type": "LATENT", + "shape": 7, + "link": null + }, + { + "name": "feta_args", + "type": "FETAARGS", + "shape": 7, + "link": null + }, + { + "name": "context_options", + "type": "WANVIDCONTEXT", + "shape": 7, + "link": 57 + }, + { + "name": "teacache_args", + "type": "TEACACHEARGS", + "shape": 7, + "link": 58 + }, + { + "name": "flowedit_args", + "type": "FLOWEDITARGS", + "shape": 7, + "link": null + } + ], + "outputs": [ + { + "name": "samples", + "type": "LATENT", + "links": [ + 33 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "WanVideoSampler" + }, + "widgets_values": [ + 30, + 6, + 5, + 1057359483639288, + "fixed", + true, + "unipc", + 0, + 1, + "" + ] + }, + { + "id": 45, + "type": "WanVideoTeaCache", + "pos": [ + 931.4036865234375, + -792.5159912109375 + ], + "size": [ + 315, + 154 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "teacache_args", + "type": "TEACACHEARGS", + "links": [ + 58 + ] + } + ], + "properties": { + "Node name for S&R": "WanVideoTeaCache" + }, + "widgets_values": [ + 0.10000000000000002, + 1, + -1, + "offload_device", + true + ] + }, + { + "id": 36, + "type": "Note", + "pos": [ + 796.0189208984375, + -521.5020751953125 + ], + "size": [ + 298.2554016113281, + 108.62744140625 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "sdpa should work too, haven't tested flaash\n\nfp8_fast seems to cause huge quality degradation" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 46, + "type": "Note", + "pos": [ + 937.9556274414062, + -940.750244140625 + ], + "size": [ + 297.4364013671875, + 88 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "TeaCache with context windows is VERY experimental and lower values than normal should be used." + ], + "color": "#432", + "bgcolor": "#653" } ], "links": [ @@ -646,21 +726,29 @@ 27, 5, "WANVIDCONTEXT" + ], + [ + 58, + 45, + 0, + 27, + 6, + "TEACACHEARGS" ] ], "groups": [], "config": {}, "extra": { "ds": { - "scale": 0.7400249944258609, + "scale": 0.8140274938684471, "offset": [ - -125.57518289152554, - 940.6273495482347 + -154.19829473418952, + 830.5983033847808 ] }, "node_versions": { - "ComfyUI-WanVideoWrapper": "dfe8000e63aaa961e1e4c71d14ce47ed22a419bc", - "ComfyUI-KJNodes": "dc482957d814a5a78000a3452b6c623a48fbd992", + "ComfyUI-WanVideoWrapper": "bc11af31e4e720e6926a0612e88b65c3d1c49fc7", + "ComfyUI-KJNodes": "d126b62cebee81ea14ec06ea7cd7526999cb0554", "ComfyUI-VideoHelperSuite": "2c25b8b53835aaeb63f831b3137c705cf9f85dce" }, "VHS_latentpreview": true, diff --git a/example_workflows/wanvideo_vid2vid_example_01.json b/example_workflows/wanvideo_vid2vid_example_01.json index ac8f59b..9a9de67 100644 --- a/example_workflows/wanvideo_vid2vid_example_01.json +++ b/example_workflows/wanvideo_vid2vid_example_01.json @@ -698,10 +698,11 @@ "Node name for S&R": "WanVideoTeaCache" }, "widgets_values": [ - 0.030000000000000006, - 6, + 0.25, + 1, -1, - "offload_device" + "offload_device", + "true" ] }, {