diff --git a/.gitignore b/.gitignore index e71a3b1..e29b3b0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ nodes/__pycache__/ .env .env2 .env 22 -wanvideo_cached_samples.pt \ No newline at end of file +wanvideo_cached_samples.pt +ref_image.jpg \ No newline at end of file diff --git a/examples/rabbit_control_base/wan22_control_base.json b/examples/rabbit_control_base/wan22_control_base.json index 0aec681..175aa10 100644 --- a/examples/rabbit_control_base/wan22_control_base.json +++ b/examples/rabbit_control_base/wan22_control_base.json @@ -1,8 +1,8 @@ { "id": "206247b6-9fec-4ed2-8927-e4f388c674d4", "revision": 0, - "last_node_id": 262, - "last_link_id": 481, + "last_node_id": 274, + "last_link_id": 511, "nodes": [ { "id": 104, @@ -12,7 +12,7 @@ -753.145751953125 ], "size": [ - 201.76815795898438, + 201.7681640625, 46 ], "flags": { @@ -69,7 +69,7 @@ 172.00003051757812 ], "flags": {}, - "order": 43, + "order": 42, "mode": 0, "inputs": [ { @@ -115,72 +115,6 @@ 1 ] }, - { - "id": 77, - "type": "WanVideoEncode", - "pos": [ - 562.4077758789062, - 342.7292175292969 - ], - "size": [ - 315, - 242 - ], - "flags": { - "collapsed": true - }, - "order": 41, - "mode": 0, - "inputs": [ - { - "name": "vae", - "type": "WANVAE", - "link": 214 - }, - { - "name": "image", - "type": "IMAGE", - "link": 90 - }, - { - "name": "mask", - "shape": 7, - "type": "MASK", - "link": null - } - ], - "outputs": [ - { - "name": "samples", - "type": "LATENT", - "links": [ - 246 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoEncode", - "ver": "d5085d4e879b5c9d56e39f57e656255ce72e81fc", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - false, - 272, - 272, - 144, - 128, - 0, - 1 - ], - "color": "#322", - "bgcolor": "#533" - }, { "id": 28, "type": "WanVideoDecode", @@ -195,7 +129,7 @@ "flags": { "collapsed": true }, - "order": 50, + "order": 49, "mode": 0, "inputs": [ { @@ -255,7 +189,7 @@ "flags": { "collapsed": true }, - "order": 47, + "order": 46, "mode": 0, "inputs": [ { @@ -341,102 +275,6 @@ "color": "#322", "bgcolor": "#533" }, - { - "id": 98, - "type": "WanVideoSetBlockSwap", - "pos": [ - 31.39767074584961, - -1492.0509033203125 - ], - "size": [ - 201.76815795898438, - 46 - ], - "flags": { - "collapsed": true - }, - "order": 30, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 140 - }, - { - "name": "block_swap_args", - "shape": 7, - "type": "BLOCKSWAPARGS", - "link": 142 - } - ], - "outputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "links": [ - 141 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSetBlockSwap", - "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 201, - "type": "SetNode", - "pos": [ - 629.1361694335938, - -1194.4281005859375 - ], - "size": [ - 210, - 60 - ], - "flags": { - "collapsed": false - }, - "order": 37, - "mode": 0, - "inputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "link": 358 - } - ], - "outputs": [ - { - "name": "*", - "type": "*", - "links": null - } - ], - "title": "Set_HIGH", - "properties": { - "previousName": "HIGH", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "HIGH" - ] - }, { "id": 39, "type": "WanVideoBlockSwap", @@ -562,155 +400,6 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 202, - "type": "SetNode", - "pos": [ - 629.1361694335938, - -1064.0980224609375 - ], - "size": [ - 210, - 58 - ], - "flags": { - "collapsed": false - }, - "order": 38, - "mode": 0, - "inputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "link": 359 - } - ], - "outputs": [ - { - "name": "*", - "type": "*", - "links": null - } - ], - "title": "Set_LOW", - "properties": { - "previousName": "LOW", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "LOW" - ] - }, - { - "id": 105, - "type": "WanVideoSetLoRAs", - "pos": [ - 292.6243591308594, - -753.145751953125 - ], - "size": [ - 247.54364013671875, - 46 - ], - "flags": { - "collapsed": true - }, - "order": 35, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 156 - }, - { - "name": "lora", - "shape": 7, - "type": "WANVIDLORA", - "link": 467 - } - ], - "outputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "links": [ - 359 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSetLoRAs", - "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 97, - "type": "WanVideoSetLoRAs", - "pos": [ - 305.09619140625, - -1492.0509033203125 - ], - "size": [ - 247.54364013671875, - 104 - ], - "flags": { - "collapsed": true - }, - "order": 34, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 141 - }, - { - "name": "lora", - "shape": 7, - "type": "WANVIDLORA", - "link": 276 - } - ], - "outputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "links": [ - 358 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSetLoRAs", - "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, { "id": 141, "type": "Reroute", @@ -723,7 +412,7 @@ 26 ], "flags": {}, - "order": 23, + "order": 22, "mode": 0, "inputs": [ { @@ -752,474 +441,6 @@ } } }, - { - "id": 76, - "type": "GetImageSizeAndCount", - "pos": [ - 276.89501953125, - 461.0667419433594 - ], - "size": [ - 277.20001220703125, - 86 - ], - "flags": { - "collapsed": true - }, - "order": 40, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 454 - } - ], - "outputs": [ - { - "name": "image", - "type": "IMAGE", - "links": [ - 90 - ] - }, - { - "label": "1280 width", - "name": "width", - "type": "INT", - "links": [ - 172 - ] - }, - { - "label": "720 height", - "name": "height", - "type": "INT", - "links": [ - 192 - ] - }, - { - "label": "41 count", - "name": "count", - "type": "INT", - "links": [ - 120 - ] - } - ], - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028", - "Node name for S&R": "GetImageSizeAndCount", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [] - }, - { - "id": 109, - "type": "ImageResizeKJv2", - "pos": [ - -87.14596557617188, - 373.65594482421875 - ], - "size": [ - 270, - 336.0000305175781 - ], - "flags": { - "collapsed": true - }, - "order": 29, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 168 - }, - { - "name": "mask", - "shape": 7, - "type": "MASK", - "link": null - }, - { - "name": "width", - "type": "INT", - "widget": { - "name": "width" - }, - "link": 292 - }, - { - "name": "height", - "type": "INT", - "widget": { - "name": "height" - }, - "link": 293 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 215, - 463 - ] - }, - { - "name": "width", - "type": "INT", - "links": [] - }, - { - "name": "height", - "type": "INT", - "links": [] - }, - { - "name": "mask", - "type": "MASK", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", - "Node name for S&R": "ImageResizeKJv2", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": { - "width": true, - "height": true - }, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 480, - 832, - "lanczos", - "resize", - "0,0,0", - "center", - 16, - "cpu" - ] - }, - { - "id": 203, - "type": "GetNode", - "pos": [ - 1245.93115234375, - -412.84857177734375 - ], - "size": [ - 210, - 50 - ], - "flags": { - "collapsed": true - }, - "order": 4, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "links": [ - 360 - ] - } - ], - "title": "Get_HIGH", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "HIGH" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 205, - "type": "GetNode", - "pos": [ - 2106.88720703125, - -412.84857177734375 - ], - "size": [ - 210, - 50 - ], - "flags": { - "collapsed": true - }, - "order": 5, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "links": [ - 361 - ] - } - ], - "title": "Get_LOW", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "LOW" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 161, - "type": "PathFrameConfig", - "pos": [ - -87.14596557617188, - 781.0169067382812 - ], - "size": [ - 270, - 130 - ], - "flags": {}, - "order": 24, - "mode": 0, - "inputs": [ - { - "name": "total_frames", - "type": "INT", - "widget": { - "name": "total_frames" - }, - "link": 367 - } - ], - "outputs": [ - { - "name": "path_frame_config", - "type": "PATH_FRAME_CONFIG", - "links": [ - 291 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "PathFrameConfig", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 61, - "ease_in_out", - "each", - 1 - ] - }, - { - "id": 197, - "type": "WanVideoCacheSamples", - "pos": [ - 1726.8284912109375, - -778.1482543945312 - ], - "size": [ - 305.3199157714844, - 82 - ], - "flags": {}, - "order": 46, - "mode": 0, - "inputs": [ - { - "name": "samples", - "shape": 7, - "type": "LATENT", - "link": 354 - } - ], - "outputs": [ - { - "name": "samples", - "type": "LATENT", - "links": [ - 355 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "WanVideoCacheSamples", - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "widgets_values": [ - "cache_data", - "wanvideo_cached_samples.pt" - ] - }, - { - "id": 58, - "type": "LoadImage", - "pos": [ - -748.3421020507812, - -171.49490356445312 - ], - "size": [ - 413.10479736328125, - 498.3180847167969 - ], - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 168 - ] - }, - { - "name": "MASK", - "type": "MASK", - "links": null - } - ], - "properties": { - "cnr_id": "comfy-core", - "ver": "0.3.26", - "Node name for S&R": "LoadImage", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "snowy-rabbit-gathering-stockcake-1824665364.jpg", - "image" - ], - "color": "#2a363b", - "bgcolor": "#3f5159", - "shape": 1 - }, - { - "id": 82, - "type": "VHS_VideoCombine", - "pos": [ - -99.35043334960938, - -179.50051879882812 - ], - "size": [ - 309.3501892089844, - 510.7594909667969 - ], - "flags": {}, - "order": 39, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 453 - }, - { - "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", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": { - "frame_rate": 16, - "loop_count": 0, - "filename_prefix": "control", - "format": "video/h264-mp4", - "pix_fmt": "yuv420p", - "crf": 19, - "save_metadata": false, - "trim_to_audio": false, - "pingpong": false, - "save_output": false, - "videopreview": { - "hidden": false, - "paused": false, - "params": { - "filename": "control_00039.mp4", - "subfolder": "", - "type": "temp", - "format": "video/h264-mp4", - "frame_rate": 16, - "workflow": "control_00039.png", - "fullpath": "" - } - } - }, - "shape": 1 - }, { "id": 38, "type": "WanVideoVAELoader", @@ -1232,7 +453,7 @@ 82 ], "flags": {}, - "order": 7, + "order": 4, "mode": 0, "inputs": [ { @@ -1284,7 +505,7 @@ "flags": { "collapsed": true }, - "order": 22, + "order": 21, "mode": 0, "inputs": [ { @@ -1327,7 +548,7 @@ 338 ], "flags": {}, - "order": 26, + "order": 27, "mode": 0, "inputs": [ { @@ -1417,87 +638,6 @@ "color": "#223", "bgcolor": "#335" }, - { - "id": 124, - "type": "Reroute", - "pos": [ - 276.89501953125, - 568.8627319335938 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 32, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 215 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [ - 274 - ] - } - ], - "properties": { - "showOutputText": false, - "horizontal": false, - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - } - }, - { - "id": 85, - "type": "GetNode", - "pos": [ - 276.89501953125, - 537.4837036132812 - ], - "size": [ - 210, - 58 - ], - "flags": { - "collapsed": true - }, - "order": 8, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVAE", - "type": "WANVAE", - "links": [ - 123, - 214 - ] - } - ], - "title": "Get_VAE", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "VAE" - ], - "color": "#322", - "bgcolor": "#533" - }, { "id": 80, "type": "Reroute", @@ -1510,7 +650,7 @@ 26 ], "flags": {}, - "order": 44, + "order": 43, "mode": 0, "inputs": [ { @@ -1539,80 +679,6 @@ } } }, - { - "id": 159, - "type": "DrawShapeOnPath", - "pos": [ - -87.14596557617188, - 427.06256103515625 - ], - "size": [ - 273.4234313964844, - 314 - ], - "flags": {}, - "order": 36, - "mode": 0, - "inputs": [ - { - "name": "bg_image", - "type": "IMAGE", - "link": 464 - }, - { - "name": "coordinates", - "type": "STRING", - "link": 465 - }, - { - "name": "path_frame_config", - "type": "PATH_FRAME_CONFIG", - "link": 291 - } - ], - "outputs": [ - { - "name": "image", - "type": "IMAGE", - "links": [ - 453, - 454 - ] - }, - { - "name": "mask", - "type": "MASK", - "links": null - }, - { - "name": "output_coordinates", - "type": "STRING", - "links": [] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "DrawShapeOnPath", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "circle", - 47, - 47, - "white", - "black", - 16, - 1.43, - 0, - 0, - "black" - ] - }, { "id": 86, "type": "GetNode", @@ -1627,7 +693,7 @@ "flags": { "collapsed": true }, - "order": 9, + "order": 5, "mode": 0, "inputs": [], "outputs": [ @@ -1665,7 +731,7 @@ 366.7752685546875 ], "flags": {}, - "order": 10, + "order": 6, "mode": 0, "inputs": [ { @@ -1718,414 +784,358 @@ "bgcolor": "#653" }, { - "id": 22, - "type": "WanVideoModelLoader", + "id": 251, + "type": "SetNode", "pos": [ - -702.2020263671875, - -1417.9134521484375 + -289.2106042401627, + -82.83876165789789 ], "size": [ - 674.41357421875, - 338 + 210, + 34 ], - "flags": {}, - "order": 25, + "flags": { + "collapsed": true + }, + "order": 24, "mode": 0, "inputs": [ { - "name": "compile_args", - "shape": 7, - "type": "WANCOMPILEARGS", - "link": 160 - }, - { - "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": [ - 140 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoModelLoader", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "wan_2.2\\Wan2_2-Fun-Control-A14B-HIGH_fp8_e4m3fn_scaled_KJ_fixed.safetensors", - "fp16_fast", - "fp8_e4m3fn_scaled", - "offload_device", - "sageattn", - "default" - ], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 204, - "type": "Seed (rgthree)", - "pos": [ - 2097.3115234375, - -599.0325317382812 - ], - "size": [ - 315, - 130 - ], - "flags": {}, - "order": 11, - "mode": 0, - "inputs": [], - "outputs": [ - { - "dir": 4, - "name": "SEED", - "shape": 3, + "name": "INT", "type": "INT", - "links": [ - 466 - ] + "link": 472 } ], - "properties": { - "cnr_id": "rgthree-comfy", - "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", - "randomMax": 1125899906842624, - "randomMin": 0, - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "widgets_values": [ - 980431780092676, - "", - "", - "" - ] - }, - { - "id": 206, - "type": "Fast Groups Bypasser (rgthree)", - "pos": [ - 750.872314453125, - -344.28887939453125 - ], - "size": [ - 312.3485107421875, - 96.41674041748047 - ], - "flags": {}, - "order": 12, - "mode": 0, - "inputs": [], "outputs": [ { - "name": "OPT_CONNECTION", + "name": "*", "type": "*", "links": null } ], + "title": "Set_total_steps", "properties": { - "matchColors": "cyan", - "matchTitle": "", - "showNav": true, - "showAllGraphs": true, - "sort": "position", - "customSortAlphabet": "", - "toggleRestriction": "default", + "previousName": "", "ue_properties": { "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "color": "#233", - "bgcolor": "#355" - }, - { - "id": 63, - "type": "WanVideoImageToVideoEncode", - "pos": [ - 751.0526733398438, - 533.2509765625 - ], - "size": [ - 293.7520751953125, - 390 - ], - "flags": {}, - "order": 42, - "mode": 0, - "inputs": [ - { - "name": "vae", - "shape": 7, - "type": "WANVAE", - "link": 123 - }, - { - "name": "clip_embeds", - "shape": 7, - "type": "WANVIDIMAGE_CLIPEMBEDS", - "link": null - }, - { - "name": "start_image", - "shape": 7, - "type": "IMAGE", - "link": 274 - }, - { - "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": 172 - }, - { - "name": "height", - "type": "INT", - "widget": { - "name": "height" - }, - "link": 192 - }, - { - "name": "num_frames", - "type": "INT", - "widget": { - "name": "num_frames" - }, - "link": 120 - } - ], - "outputs": [ - { - "name": "image_embeds", - "type": "WANVIDIMAGE_EMBEDS", - "links": [ - 247 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoImageToVideoEncode", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { "version": "7.2.2", - "widget_ue_connectable": { - "width": true, - "height": true, - "num_frames": true - }, "input_ue_unconnectable": {} } }, "widgets_values": [ - 832, - 480, - 81, - 0.02, - 1, - 1.0000000000000002, - true, - false, - false + "total_steps" ], - "color": "#2a363b", - "bgcolor": "#3f5159" + "color": "#1b4669", + "bgcolor": "#29699c", + "shape": 1 }, { - "id": 210, - "type": "WanFrames", + "id": 252, + "type": "SetNode", "pos": [ - -333.8786315917969, - 134.33880615234375 + -285.7494225995377, + 6.601751952941933 ], "size": [ - 236.44627380371094, - 86.4462890625 + 210, + 34 ], - "flags": {}, - "order": 13, + "flags": { + "collapsed": true + }, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "INT", + "type": "INT", + "link": 473 + } + ], + "outputs": [ + { + "name": "*", + "type": "*", + "links": null + } + ], + "title": "Set_split_step", + "properties": { + "previousName": "", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "split_step" + ], + "color": "#1b4669", + "bgcolor": "#29699c", + "shape": 1 + }, + { + "id": 260, + "type": "GetNode", + "pos": [ + 1076.175048828125, + 200.13568115234375 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 7, "mode": 0, "inputs": [], "outputs": [ { - "name": "frame_count", + "name": "INT", "type": "INT", "links": [ - 367 + 480, + 481 ] } ], + "title": "Get_split_step", "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "0a2536acb32c76369fa019dfcadd77cb92650373", - "Node name for S&R": "WanFrames", "ue_properties": { + "version": "7.2.2", "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" + "input_ue_unconnectable": {} } }, "widgets_values": [ - 40 + "split_step" ], "color": "#222", "bgcolor": "#000", "shape": 1 }, { - "id": 198, - "type": "Seed (rgthree)", + "id": 259, + "type": "GetNode", "pos": [ - 1245.93115234375, - -597.31396484375 + 1076.175048828125, + 169.95538330078125 ], "size": [ - 315, - 130 + 210, + 58 ], - "flags": {}, - "order": 14, + "flags": { + "collapsed": true + }, + "order": 8, "mode": 0, "inputs": [], "outputs": [ { - "dir": 4, - "name": "SEED", - "shape": 3, + "name": "INT", "type": "INT", "links": [ - 356 + 477, + 478 ] } ], + "title": "Get_total_steps", "properties": { - "cnr_id": "rgthree-comfy", - "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", - "randomMax": 1125899906842624, - "randomMin": 0, "ue_properties": { + "version": "7.2.2", "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" + "input_ue_unconnectable": {} } }, "widgets_values": [ - 730873827362456, - "", - "", - "" - ] + "total_steps" + ], + "color": "#222", + "bgcolor": "#000", + "shape": 1 + }, + { + "id": 30, + "type": "VHS_VideoCombine", + "pos": [ + 2480.57373046875, + -579.6849365234375 + ], + "size": [ + 628.69873046875, + 688.4586119570974 + ], + "flags": {}, + "order": 50, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 280 + }, + { + "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", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "WanVideoWrapper_22FunControl", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 18, + "save_metadata": false, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideoWrapper_22FunControl_00005.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideoWrapper_22FunControl_00005.png", + "fullpath": "" + } + } + } + }, + { + "id": 187, + "type": "VHS_VideoCombine", + "pos": [ + 1627.18212890625, + -579.6849365234375 + ], + "size": [ + 432.51849365234375, + 578.730682890294 + ], + "flags": {}, + "order": 48, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 353 + }, + { + "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", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "WanVideoWrapper_22FunControl", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": false, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideoWrapper_22FunControl_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideoWrapper_22FunControl_00004.png", + "fullpath": "" + } + } + } }, { "id": 156, "type": "WanVideoPowerLoraLoader", "pos": [ - 26.585525512695312, - -1177.3343505859375 + 27.568278305438284, + -1056.4539200873703 ], "size": [ 480, 185.326171875 ], "flags": {}, - "order": 15, + "order": 9, "mode": 0, "inputs": [ { @@ -2191,37 +1201,47 @@ ] }, { - "id": 35, - "type": "WanVideoTorchCompileSettings", + "id": 98, + "type": "WanVideoSetBlockSwap", "pos": [ - -1014.3798217773438, - -1052.2005615234375 + 56.36982747136634, + -1144.8193791834356 ], "size": [ - 390.5999755859375, - 202 + 201.7681640625, + 46 ], "flags": { "collapsed": true }, - "order": 16, + "order": 30, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 140 + }, + { + "name": "block_swap_args", + "shape": 7, + "type": "BLOCKSWAPARGS", + "link": 142 + } + ], "outputs": [ { - "name": "torch_compile_args", - "type": "WANCOMPILEARGS", - "slot_index": 0, + "name": "model", + "type": "WANVIDEOMODEL", "links": [ - 160, - 161 + 141 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoTorchCompileSettings", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "Node name for S&R": "WanVideoSetBlockSwap", + "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", @@ -2229,129 +1249,787 @@ "input_ue_unconnectable": {} } }, - "widgets_values": [ - "inductor", - false, - "default", - false, - 64, - true, - 128 - ], + "widgets_values": [], "color": "#223", "bgcolor": "#335" }, { - "id": 251, - "type": "SetNode", + "id": 97, + "type": "WanVideoSetLoRAs", "pos": [ - -290.0227966308594, - -44.665130615234375 + 330.0683481317665, + -1144.8193791834356 ], "size": [ - 210, - 34 + 247.54364013671875, + 104 ], "flags": { "collapsed": true }, - "order": 28, - "mode": 0, - "inputs": [ - { - "name": "INT", - "type": "INT", - "link": 472 - } - ], - "outputs": [ - { - "name": "*", - "type": "*", - "links": null - } - ], - "title": "Set_total_steps", - "properties": { - "previousName": "", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "total_steps" - ], - "color": "#1b4669", - "bgcolor": "#29699c", - "shape": 1 - }, - { - "id": 252, - "type": "SetNode", - "pos": [ - -286.5616149902344, - 44.77538299560547 - ], - "size": [ - 210, - 34 - ], - "flags": { - "collapsed": true - }, - "order": 27, - "mode": 0, - "inputs": [ - { - "name": "INT", - "type": "INT", - "link": 473 - } - ], - "outputs": [ - { - "name": "*", - "type": "*", - "links": null - } - ], - "title": "Set_split_step", - "properties": { - "previousName": "", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "split_step" - ], - "color": "#1b4669", - "bgcolor": "#29699c", - "shape": 1 - }, - { - "id": 27, - "type": "WanVideoSampler", - "pos": [ - 1245.93115234375, - -381.1658020019531 - ], - "size": [ - 357.6112060546875, - 893.9063110351562 - ], - "flags": {}, - "order": 45, + "order": 33, "mode": 0, "inputs": [ { "name": "model", "type": "WANVIDEOMODEL", - "link": 360 + "link": 141 + }, + { + "name": "lora", + "shape": 7, + "type": "WANVIDLORA", + "link": 276 + } + ], + "outputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "links": [ + 489 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoSetLoRAs", + "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 265, + "type": "Reroute", + "pos": [ + 959.4096057395299, + -1174.327432570377 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 38, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 489 + } + ], + "outputs": [ + { + "name": "", + "type": "WANVIDEOMODEL", + "links": [ + 490 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 105, + "type": "WanVideoSetLoRAs", + "pos": [ + 292.6243591308594, + -754.334882832344 + ], + "size": [ + 247.54364013671875, + 47.189130879218965 + ], + "flags": { + "collapsed": true + }, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 156 + }, + { + "name": "lora", + "shape": 7, + "type": "WANVIDLORA", + "link": 467 + } + ], + "outputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "links": [ + 491 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoSetLoRAs", + "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 266, + "type": "Reroute", + "pos": [ + 2133.09947487845, + -772.3950261031546 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 39, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 491 + } + ], + "outputs": [ + { + "name": "", + "type": "WANVIDEOMODEL", + "links": [ + 492 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 58, + "type": "LoadImage", + "pos": [ + -747.2610739787638, + -190.95369753080683 + ], + "size": [ + 413.10479736328125, + 498.3180847167969 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 168 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.26", + "Node name for S&R": "LoadImage", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "snowy-rabbit-gathering-stockcake-1824665364.jpg", + "image" + ], + "color": "#2a363b", + "bgcolor": "#3f5159", + "shape": 1 + }, + { + "id": 254, + "type": "INTConstant", + "pos": [ + -323.37008910344395, + 0.9536997373657573 + ], + "size": [ + 210, + 59.31474304199219 + ], + "flags": { + "pinned": true + }, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "value", + "type": "INT", + "links": [ + 473 + ] + } + ], + "title": "split_step", + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "INTConstant", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 3 + ], + "color": "#323", + "bgcolor": "#535", + "shape": 1 + }, + { + "id": 253, + "type": "INTConstant", + "pos": [ + -323.15869383977207, + -86.75855764788813 + ], + "size": [ + 210, + 58 + ], + "flags": { + "pinned": true + }, + "order": 12, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "value", + "type": "INT", + "links": [ + 472 + ] + } + ], + "title": "total_steps", + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "INTConstant", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 7 + ], + "color": "#323", + "bgcolor": "#535", + "shape": 1 + }, + { + "id": 153, + "type": "INTConstant", + "pos": [ + -333.8786315917969, + 250.31076049804688 + ], + "size": [ + 235.78514099121094, + 76.51242065429688 + ], + "flags": { + "pinned": true + }, + "order": 13, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "value", + "type": "INT", + "links": [ + 292, + 293 + ] + } + ], + "title": "SIZE", + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "INTConstant", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 958 + ], + "color": "#222", + "bgcolor": "#000", + "shape": 1 + }, + { + "id": 210, + "type": "WanFrames", + "pos": [ + -333.8786315917969, + 134.33880615234375 + ], + "size": [ + 236.44627380371094, + 86.4462890625 + ], + "flags": { + "pinned": true + }, + "order": 14, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "frame_count", + "type": "INT", + "links": [ + 494 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "0a2536acb32c76369fa019dfcadd77cb92650373", + "Node name for S&R": "WanFrames", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + 40 + ], + "color": "#222", + "bgcolor": "#000", + "shape": 1 + }, + { + "id": 82, + "type": "VHS_VideoCombine", + "pos": [ + -80.97270869385055, + -175.1763034143151 + ], + "size": [ + 309.3501892089844, + 509.83993633722855 + ], + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 510 + }, + { + "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", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "control", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": false, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "control_00007.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "control_00007.png", + "fullpath": "" + } + } + }, + "shape": 1 + }, + { + "id": 272, + "type": "Fast Groups Bypasser (rgthree)", + "pos": [ + 1245.8731691432868, + -798.2924608197811 + ], + "size": [ + 312.3485107421875, + 96.41674041748047 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "OPT_CONNECTION", + "type": "*", + "links": null + } + ], + "properties": { + "matchColors": "cyan", + "matchTitle": "", + "showNav": true, + "showAllGraphs": true, + "sort": "position", + "customSortAlphabet": "", + "toggleRestriction": "default", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 206, + "type": "Fast Groups Bypasser (rgthree)", + "pos": [ + 264.2725736722456, + 74.29152722276638 + ], + "size": [ + 312.3485107421875, + 96.41674041748047 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "OPT_CONNECTION", + "type": "*", + "links": null + } + ], + "properties": { + "matchColors": "cyan", + "matchTitle": "", + "showNav": true, + "showAllGraphs": true, + "sort": "position", + "customSortAlphabet": "", + "toggleRestriction": "default", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 100, + "type": "WanVideoSampler", + "pos": [ + 2100.554690130707, + -421.1644592452555 + ], + "size": [ + 357.6112060546875, + 892.8333864373676 + ], + "flags": {}, + "order": 47, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 492 + }, + { + "name": "image_embeds", + "type": "WANVIDIMAGE_EMBEDS", + "link": 469 + }, + { + "name": "text_embeds", + "shape": 7, + "type": "WANVIDEOTEXTEMBEDS", + "link": 237 + }, + { + "name": "samples", + "shape": 7, + "type": "LATENT", + "link": 355 + }, + { + "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 + }, + { + "name": "steps", + "type": "INT", + "widget": { + "name": "steps" + }, + "link": 478 + }, + { + "name": "seed", + "type": "INT", + "widget": { + "name": "seed" + }, + "link": 466 + }, + { + "name": "start_step", + "shape": 7, + "type": "INT", + "widget": { + "name": "start_step" + }, + "link": 481 + } + ], + "outputs": [ + { + "name": "samples", + "type": "LATENT", + "slot_index": 0, + "links": [ + 218 + ] + }, + { + "name": "denoised_samples", + "type": "LATENT", + "links": null + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoSampler", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": { + "steps": true, + "shift": true, + "start_step": true + }, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 6, + 1, + 5.000000000000001, + 42, + "fixed", + true, + "dpm++_sde", + 0, + 1, + "", + "comfy", + 2, + -1, + false + ] + }, + { + "id": 27, + "type": "WanVideoSampler", + "pos": [ + 1249.1743190369568, + -421.1644592452555 + ], + "size": [ + 357.6112060546875, + 892.8333864373676 + ], + "flags": {}, + "order": 44, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 490 }, { "name": "image_embeds", @@ -2524,203 +2202,15 @@ ] }, { - "id": 100, - "type": "WanVideoSampler", + "id": 35, + "type": "WanVideoTorchCompileSettings", "pos": [ - 2097.3115234375, - -381.1658020019531 + -1051.135353566016, + -993.824138385799 ], "size": [ - 357.6112060546875, - 893.9063110351562 - ], - "flags": {}, - "order": 48, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 361 - }, - { - "name": "image_embeds", - "type": "WANVIDIMAGE_EMBEDS", - "link": 469 - }, - { - "name": "text_embeds", - "shape": 7, - "type": "WANVIDEOTEXTEMBEDS", - "link": 237 - }, - { - "name": "samples", - "shape": 7, - "type": "LATENT", - "link": 355 - }, - { - "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 - }, - { - "name": "steps", - "type": "INT", - "widget": { - "name": "steps" - }, - "link": 478 - }, - { - "name": "seed", - "type": "INT", - "widget": { - "name": "seed" - }, - "link": 466 - }, - { - "name": "start_step", - "shape": 7, - "type": "INT", - "widget": { - "name": "start_step" - }, - "link": 481 - } - ], - "outputs": [ - { - "name": "samples", - "type": "LATENT", - "slot_index": 0, - "links": [ - 218 - ] - }, - { - "name": "denoised_samples", - "type": "LATENT", - "links": null - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSampler", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": { - "steps": true, - "shift": true, - "start_step": true - }, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 6, - 1, - 5.000000000000001, - 42, - "fixed", - true, - "dpm++_sde", - 0, - 1, - "", - "comfy", - 2, - -1, - false - ] - }, - { - "id": 260, - "type": "GetNode", - "pos": [ - 1076.175048828125, - 200.13568115234375 - ], - "size": [ - 210, - 58 + 390.5999755859375, + 202 ], "flags": { "collapsed": true @@ -2730,16 +2220,20 @@ "inputs": [], "outputs": [ { - "name": "INT", - "type": "INT", + "name": "torch_compile_args", + "type": "WANCOMPILEARGS", + "slot_index": 0, "links": [ - 480, - 481 + 160, + 161 ] } ], - "title": "Get_split_step", "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoTorchCompileSettings", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, @@ -2747,18 +2241,385 @@ } }, "widgets_values": [ - "split_step" + "inductor", + false, + "default", + false, + 64, + true, + 128 ], - "color": "#222", - "bgcolor": "#000", - "shape": 1 + "color": "#223", + "bgcolor": "#335" }, { - "id": 259, + "id": 22, + "type": "WanVideoModelLoader", + "pos": [ + -702.2020263671875, + -1417.9134521484375 + ], + "size": [ + 674.41357421875, + 338 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "compile_args", + "shape": 7, + "type": "WANCOMPILEARGS", + "link": 160 + }, + { + "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": [ + 140 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoModelLoader", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "wan_2.2\\Wan2_2-Fun-Control-A14B-HIGH_fp8_e4m3fn_scaled_KJ_fixed.safetensors", + "fp16_fast", + "fp8_e4m3fn_scaled", + "offload_device", + "sageattn", + "default" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 63, + "type": "WanVideoImageToVideoEncode", + "pos": [ + 755.5197996516134, + 521.6363868052545 + ], + "size": [ + 293.7520751953125, + 390 + ], + "flags": {}, + "order": 41, + "mode": 0, + "inputs": [ + { + "name": "vae", + "shape": 7, + "type": "WANVAE", + "link": 123 + }, + { + "name": "clip_embeds", + "shape": 7, + "type": "WANVIDIMAGE_CLIPEMBEDS", + "link": null + }, + { + "name": "start_image", + "shape": 7, + "type": "IMAGE", + "link": 274 + }, + { + "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": 172 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 192 + }, + { + "name": "num_frames", + "type": "INT", + "widget": { + "name": "num_frames" + }, + "link": 120 + } + ], + "outputs": [ + { + "name": "image_embeds", + "type": "WANVIDIMAGE_EMBEDS", + "links": [ + 247 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoImageToVideoEncode", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": { + "width": true, + "height": true, + "num_frames": true + }, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 832, + 480, + 81, + 0.02, + 1, + 1.0000000000000002, + true, + false, + false + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 76, + "type": "GetImageSizeAndCount", + "pos": [ + 297.4439641564424, + 311.8647163139556 + ], + "size": [ + 277.20001220703125, + 86 + ], + "flags": { + "collapsed": true + }, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 504 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 90 + ] + }, + { + "label": "944 width", + "name": "width", + "type": "INT", + "links": [ + 172 + ] + }, + { + "label": "528 height", + "name": "height", + "type": "INT", + "links": [ + 192 + ] + }, + { + "label": "41 count", + "name": "count", + "type": "INT", + "links": [ + 120 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028", + "Node name for S&R": "GetImageSizeAndCount", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 77, + "type": "WanVideoEncode", + "pos": [ + 564.194735464315, + 311.8647163139556 + ], + "size": [ + 315, + 242 + ], + "flags": { + "collapsed": true + }, + "order": 40, + "mode": 0, + "inputs": [ + { + "name": "vae", + "type": "WANVAE", + "link": 214 + }, + { + "name": "image", + "type": "IMAGE", + "link": 90 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "samples", + "type": "LATENT", + "links": [ + 246 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoEncode", + "ver": "d5085d4e879b5c9d56e39f57e656255ce72e81fc", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + false, + 272, + 272, + 144, + 128, + 0, + 1 + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 85, "type": "GetNode", "pos": [ - 1076.175048828125, - 169.95538330078125 + 564.194735464315, + 352.815404817867 ], "size": [ 210, @@ -2772,15 +2633,15 @@ "inputs": [], "outputs": [ { - "name": "INT", - "type": "INT", + "name": "WANVAE", + "type": "WANVAE", "links": [ - 477, - 478 + 123, + 214 ] } ], - "title": "Get_total_steps", + "title": "Get_VAE", "properties": { "ue_properties": { "version": "7.2.2", @@ -2789,240 +2650,70 @@ } }, "widgets_values": [ - "total_steps" + "VAE" ], - "color": "#222", - "bgcolor": "#000", - "shape": 1 + "color": "#322", + "bgcolor": "#533" }, { - "id": 254, - "type": "INTConstant", + "id": 124, + "type": "Reroute", "pos": [ - -324.1822814941406, - 39.1273307800293 + 297.4437968474129, + 333.97317595617506 ], "size": [ - 210, - 59.31474304199219 + 75, + 26 ], "flags": {}, - "order": 19, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "value", - "type": "INT", - "links": [ - 473 - ] - } - ], - "title": "split_step", - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", - "Node name for S&R": "INTConstant", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 3 - ], - "color": "#222", - "bgcolor": "#000", - "shape": 1 - }, - { - "id": 253, - "type": "INTConstant", - "pos": [ - -323.97088623046875, - -48.58492660522461 - ], - "size": [ - 210, - 58 - ], - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "value", - "type": "INT", - "links": [ - 472 - ] - } - ], - "title": "total_steps", - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", - "Node name for S&R": "INTConstant", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 7 - ], - "color": "#222", - "bgcolor": "#000", - "shape": 1 - }, - { - "id": 153, - "type": "INTConstant", - "pos": [ - -333.8786315917969, - 250.31076049804688 - ], - "size": [ - 235.78514099121094, - 76.51242065429688 - ], - "flags": {}, - "order": 21, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "value", - "type": "INT", - "links": [ - 292, - 293 - ] - } - ], - "title": "Width", - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", - "Node name for S&R": "INTConstant", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 1292 - ], - "color": "#222", - "bgcolor": "#000", - "shape": 1 - }, - { - "id": 30, - "type": "VHS_VideoCombine", - "pos": [ - 2480.57373046875, - -579.6849365234375 - ], - "size": [ - 628.69873046875, - 690.39306640625 - ], - "flags": {}, - "order": 51, + "order": 28, "mode": 0, "inputs": [ { - "name": "images", - "type": "IMAGE", - "link": 280 - }, - { - "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 + "name": "", + "type": "*", + "link": 215 } ], "outputs": [ { - "name": "Filenames", - "type": "VHS_FILENAMES", - "links": null + "name": "", + "type": "IMAGE", + "links": [ + 274 + ] } ], "properties": { - "cnr_id": "comfyui-videohelpersuite", - "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", - "Node name for S&R": "VHS_VideoCombine", + "showOutputText": false, + "horizontal": false, "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, "input_ue_unconnectable": {} } - }, - "widgets_values": { - "frame_rate": 16, - "loop_count": 0, - "filename_prefix": "WanVideoWrapper_22FunControl", - "format": "video/h264-mp4", - "pix_fmt": "yuv420p", - "crf": 18, - "save_metadata": false, - "trim_to_audio": false, - "pingpong": false, - "save_output": false, - "videopreview": { - "hidden": false, - "paused": false, - "params": { - "filename": "WanVideoWrapper_22FunControl_00037.mp4", - "subfolder": "", - "type": "temp", - "format": "video/h264-mp4", - "frame_rate": 16, - "workflow": "WanVideoWrapper_22FunControl_00037.png", - "fullpath": "2FunControl_00037.mp4" - } - } } }, { - "id": 187, + "id": 274, "type": "VHS_VideoCombine", "pos": [ - 1627.18212890625, - -579.6849365234375 + 277.7960444253319, + 469.88338675018696 ], "size": [ - 432.51849365234375, - 580.0416259765625 + 309.3501892089844, + 509.83993633722855 ], "flags": {}, - "order": 49, + "order": 37, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", - "link": 353 + "link": 511 }, { "name": "audio", @@ -3051,19 +2742,19 @@ } ], "properties": { - "cnr_id": "comfyui-videohelpersuite", - "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", - "Node name for S&R": "VHS_VideoCombine", "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, "input_ue_unconnectable": {} - } + }, + "cnr_id": "comfyui-videohelpersuite", + "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "Node name for S&R": "VHS_VideoCombine" }, "widgets_values": { "frame_rate": 16, "loop_count": 0, - "filename_prefix": "WanVideoWrapper_22FunControl", + "filename_prefix": "control", "format": "video/h264-mp4", "pix_fmt": "yuv420p", "crf": 19, @@ -3075,64 +2766,212 @@ "hidden": false, "paused": false, "params": { - "filename": "WanVideoWrapper_22FunControl_00036.mp4", + "filename": "control_00006.mp4", "subfolder": "", "type": "temp", "format": "video/h264-mp4", "frame_rate": 16, - "workflow": "WanVideoWrapper_22FunControl_00036.png", - "fullpath": "2FunControl_00036.mp4" + "workflow": "control_00006.png", + "fullpath": "" } } - } + }, + "shape": 1 }, { - "id": 250, - "type": "PowerSplineEditor", + "id": 198, + "type": "Seed (rgthree)", "pos": [ - -690.3178100585938, - 363.7523193359375 + 1245.93115234375, + -597.31396484375 ], "size": [ - 589, - 844 + 315, + 130 ], "flags": {}, - "order": 33, + "order": 19, + "mode": 0, + "inputs": [], + "outputs": [ + { + "dir": 4, + "name": "SEED", + "shape": 3, + "type": "INT", + "links": [ + 356 + ] + } + ], + "properties": { + "cnr_id": "rgthree-comfy", + "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", + "randomMax": 1125899906842624, + "randomMin": 0, + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + 580589296699951, + "", + "", + "" + ] + }, + { + "id": 204, + "type": "Seed (rgthree)", + "pos": [ + 2097.3115234375, + -599.0325317382812 + ], + "size": [ + 315, + 130 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [], + "outputs": [ + { + "dir": 4, + "name": "SEED", + "shape": 3, + "type": "INT", + "links": [ + 466 + ] + } + ], + "properties": { + "cnr_id": "rgthree-comfy", + "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", + "randomMax": 1125899906842624, + "randomMin": 0, + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + 183296707294039, + "", + "", + "" + ] + }, + { + "id": 197, + "type": "WanVideoCacheSamples", + "pos": [ + 1721.0730977555177, + -798.2924608197811 + ], + "size": [ + 305.3199157714844, + 82 + ], + "flags": {}, + "order": 45, "mode": 0, "inputs": [ { - "name": "bg_image", + "name": "samples", + "shape": 7, + "type": "LATENT", + "link": 354 + } + ], + "outputs": [ + { + "name": "samples", + "type": "LATENT", + "links": [ + 355 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", + "Node name for S&R": "WanVideoCacheSamples", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + "cache_data", + "wanvideo_cached_samples.pt" + ] + }, + { + "id": 264, + "type": "PowerSplineEditor", + "pos": [ + -796.9005842176789, + 371.8861879488691 + ], + "size": [ + 701, + 722 + ], + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "ref_image", "shape": 7, "type": "IMAGE", - "link": 463 + "link": 488 }, { "name": "coord_in", "shape": 7, "type": "STRING", "link": null + }, + { + "name": "frames", + "shape": 7, + "type": "INT", + "link": 494 } ], "outputs": [ { - "name": "bg_image", + "name": "ref_image", "type": "IMAGE", "links": [ - 464 + 500 ] }, { "name": "coord_out", "type": "STRING", "links": [ - 465 + 501 + ] + }, + { + "name": "frames", + "type": "INT", + "links": [ + 502 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9b74fabda95354c41c806ffbdf1cc0997cbd83d8", + "ver": "edaa843d7d840adcd8b0a7528f6303c49932041d", "Node name for S&R": "PowerSplineEditor", "userAdjustedSize": true, "ue_properties": { @@ -3140,179 +2979,271 @@ "input_ue_unconnectable": {}, "version": "7.2.2" }, - "userAdjustedDims": true, "bgImageDims": { - "width": 547.2000732421875, - "height": 520 - } + "width": 657.5999755859375, + "height": 480 + }, + "userAdjustedDims": true }, "widgets_values": [ - "[{\"on\":false,\"name\":\"ss\",\"interpolation\":\"linear\",\"repeat\":2,\"offset\":0,\"a_pause\":5,\"z_pause\":0,\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"smooth\":0},\"points_store\":\"[{\\\"x\\\":0.5232393790121327,\\\"y\\\":0.5397911456689215,\\\"highlighted\\\":false},{\\\"x\\\":0.4321907669753678,\\\"y\\\":0.5332152491830405,\\\"highlighted\\\":false},{\\\"x\\\":0.5620969330232419,\\\"y\\\":0.5362936687227398,\\\"highlighted\\\":false},{\\\"x\\\":0.46894968265357234,\\\"y\\\":0.5696521792215975,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 5\",\"interpolation\":\"linear\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":{\"driver\":\"ss\",\"rotate\":0,\"smooth\":0,\"d_scale\":1},\"_drivenConfig\":{\"driver\":\"ss\",\"rotate\":0,\"smooth\":0,\"d_scale\":1},\"points_store\":\"[{\\\"x\\\":0.498270691687773,\\\"y\\\":0.5385148765050286,\\\"highlighted\\\":false},{\\\"x\\\":0.5130245846778169,\\\"y\\\":0.5354391150867422,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 5_1\",\"interpolation\":\"linear\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":{\"driver\":\"ss\",\"rotate\":60,\"smooth\":0,\"d_scale\":1},\"_drivenConfig\":{\"driver\":\"ss\",\"rotate\":60,\"smooth\":0,\"d_scale\":1},\"points_store\":\"[{\\\"x\\\":0.6653093240807902,\\\"y\\\":0.6119824636395692,\\\"highlighted\\\":false},{\\\"x\\\":0.6779228064474786,\\\"y\\\":0.6010831323566043,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 5_2\",\"interpolation\":\"linear\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":{\"driver\":\"ss\",\"rotate\":120,\"smooth\":0,\"d_scale\":1},\"_drivenConfig\":{\"driver\":\"ss\",\"rotate\":120,\"smooth\":0,\"d_scale\":1},\"points_store\":\"[{\\\"x\\\":0.7479576170596172,\\\"y\\\":0.3475504626290671,\\\"highlighted\\\":false},{\\\"x\\\":0.7562902781795947,\\\"y\\\":0.3444747012107806,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 5_3\",\"interpolation\":\"linear\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":{\"driver\":\"ss\",\"rotate\":180,\"smooth\":0,\"d_scale\":1},\"_drivenConfig\":{\"driver\":\"ss\",\"rotate\":180,\"smooth\":0,\"d_scale\":1},\"points_store\":\"[{\\\"x\\\":0.3284745029348544,\\\"y\\\":0.598191255841267,\\\"highlighted\\\":false},{\\\"x\\\":0.34322839592489823,\\\"y\\\":0.5951154944229804,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 5_4\",\"interpolation\":\"linear\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":{\"driver\":\"ss\",\"rotate\":240,\"smooth\":0,\"d_scale\":1},\"_drivenConfig\":{\"driver\":\"ss\",\"rotate\":240,\"smooth\":0,\"d_scale\":1},\"points_store\":\"[{\\\"x\\\":0.8225520225072923,\\\"y\\\":0.654883816210693,\\\"highlighted\\\":false},{\\\"x\\\":0.8330250942506253,\\\"y\\\":0.6518080547924066,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 5_5\",\"interpolation\":\"linear\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":{\"driver\":\"ss\",\"rotate\":300,\"smooth\":0,\"d_scale\":1},\"_drivenConfig\":{\"driver\":\"ss\",\"rotate\":300,\"smooth\":0,\"d_scale\":1},\"points_store\":\"[{\\\"x\\\":0.1806538593801499,\\\"y\\\":0.7586013634970744,\\\"highlighted\\\":false},{\\\"x\\\":0.1954077523701937,\\\"y\\\":0.755525602078788,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"}]", + "[{\"on\":true,\"name\":\"Spline 1\",\"interpolation\":\"basis\",\"repeat\":1,\"offset\":6,\"a_pause\":0,\"z_pause\":0,\"easing\":\"in_out\",\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"d_scale\":1},\"easingConfig\":{\"path\":\"full\",\"strength\":1},\"scale\":1.84,\"points_store\":\"[{\\\"x\\\":0.16734756890663047,\\\"y\\\":0.8291453830740663,\\\"highlighted\\\":false},{\\\"x\\\":0.40826350018417734,\\\"y\\\":0.5354926052428199,\\\"highlighted\\\":false},{\\\"x\\\":0.44699653146644214,\\\"y\\\":0.926485751402128,\\\"highlighted\\\":true,\\\"fix\\\":null},{\\\"x\\\":0.7060983180155901,\\\"y\\\":0.5176323253815309,\\\"highlighted\\\":false},{\\\"x\\\":0.7201990955148635,\\\"y\\\":0.9296307777561326,\\\"highlighted\\\":true,\\\"fix\\\":null},{\\\"x\\\":1.0321787976862866,\\\"y\\\":0.5585176679835905,\\\"highlighted\\\":false},{\\\"x\\\":1.0550925611226054,\\\"y\\\":0.9453559095261559,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 1_1\",\"interpolation\":\"basis\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"easing\":\"in_out\",\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"d_scale\":1},\"easingConfig\":{\"path\":\"full\",\"strength\":1},\"scale\":1.89,\"points_store\":\"[{\\\"x\\\":0.49342522075763895,\\\"y\\\":0.6083132461402964,\\\"highlighted\\\":false},{\\\"x\\\":0.6752187518114265,\\\"y\\\":0.49242980482164167,\\\"highlighted\\\":false},{\\\"x\\\":0.6939596823385212,\\\"y\\\":0.7908319550438878,\\\"highlighted\\\":true},{\\\"x\\\":0.8999363806551236,\\\"y\\\":0.534384963040345,\\\"highlighted\\\":false},{\\\"x\\\":0.9064718018990809,\\\"y\\\":0.8072868674994239,\\\"highlighted\\\":true},{\\\"x\\\":1.0802300820658168,\\\"y\\\":0.5511732979852062,\\\"highlighted\\\":false},{\\\"x\\\":1.096043389626622,\\\"y\\\":0.8181391373940944,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 3\",\"interpolation\":\"points\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"easing\":\"in_out\",\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"d_scale\":1},\"easingConfig\":{\"path\":\"full\",\"strength\":1},\"scale\":1.01,\"points_store\":\"[{\\\"x\\\":0.1825084381354701,\\\"y\\\":0.5597005375309391,\\\"highlighted\\\":false},{\\\"x\\\":0.3365074749955557,\\\"y\\\":0.6076201622338966,\\\"highlighted\\\":false},{\\\"x\\\":0.3189020559617375,\\\"y\\\":0.35938667690686077,\\\"highlighted\\\":false},{\\\"x\\\":0.6634434660802881,\\\"y\\\":0.627109436647994,\\\"highlighted\\\":false},{\\\"x\\\":0.7567427823191606,\\\"y\\\":0.3196802409162543,\\\"highlighted\\\":false},{\\\"x\\\":0.8208569029648533,\\\"y\\\":0.65848825171457,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"}]", null, "[{\"x\":200,\"y\":240},{\"x\":304,\"y\":240}]", - 544, - 520, + 656, + 480, + "None", {}, "", + null, + null, { - "type": "PowerSplineHeaderWidget" - }, - { - "on": false, - "name": "ss", - "interpolation": "linear", - "repeat": 2, - "offset": 0, - "a_pause": 5, + "on": true, + "name": "Spline 1", + "interpolation": "basis", + "repeat": 1, + "offset": 6, + "a_pause": 0, "z_pause": 0, + "easing": "in_out", "driven": false, "_drivenConfig": { "driver": "", "rotate": 0, - "smooth": 0 + "d_scale": 1 }, - "points_store": "[{\"x\":0.5232393790121327,\"y\":0.5397911456689215,\"highlighted\":false},{\"x\":0.4321907669753678,\"y\":0.5332152491830405,\"highlighted\":false},{\"x\":0.5620969330232419,\"y\":0.5362936687227398,\"highlighted\":false},{\"x\":0.46894968265357234,\"y\":0.5696521792215975,\"highlighted\":false}]", + "easingConfig": { + "path": "full", + "strength": 1 + }, + "scale": 1.84, + "points_store": "[{\"x\":0.16734756890663047,\"y\":0.8291453830740663,\"highlighted\":false},{\"x\":0.40826350018417734,\"y\":0.5354926052428199,\"highlighted\":false},{\"x\":0.44699653146644214,\"y\":0.926485751402128,\"highlighted\":true,\"fix\":null},{\"x\":0.7060983180155901,\"y\":0.5176323253815309,\"highlighted\":false},{\"x\":0.7201990955148635,\"y\":0.9296307777561326,\"highlighted\":true,\"fix\":null},{\"x\":1.0321787976862866,\"y\":0.5585176679835905,\"highlighted\":false},{\"x\":1.0550925611226054,\"y\":0.9453559095261559,\"highlighted\":false}]", "coordinates": "[]" }, { "on": true, - "name": "Spline 5", - "interpolation": "linear", + "name": "Spline 1_1", + "interpolation": "basis", "repeat": 1, "offset": 0, "a_pause": 0, "z_pause": 0, - "driven": { - "driver": "ss", + "easing": "in_out", + "driven": false, + "_drivenConfig": { + "driver": "", "rotate": 0, - "smooth": 0, "d_scale": 1 }, + "easingConfig": { + "path": "full", + "strength": 1 + }, + "scale": 1.89, + "points_store": "[{\"x\":0.49342522075763895,\"y\":0.6083132461402964,\"highlighted\":false},{\"x\":0.6752187518114265,\"y\":0.49242980482164167,\"highlighted\":false},{\"x\":0.6939596823385212,\"y\":0.7908319550438878,\"highlighted\":true},{\"x\":0.8999363806551236,\"y\":0.534384963040345,\"highlighted\":false},{\"x\":0.9064718018990809,\"y\":0.8072868674994239,\"highlighted\":true},{\"x\":1.0802300820658168,\"y\":0.5511732979852062,\"highlighted\":false},{\"x\":1.096043389626622,\"y\":0.8181391373940944,\"highlighted\":false}]", + "coordinates": "[]" + }, + { + "on": true, + "name": "Spline 3", + "interpolation": "points", + "repeat": 1, + "offset": 0, + "a_pause": 0, + "z_pause": 0, + "easing": "in_out", + "driven": false, "_drivenConfig": { - "driver": "ss", + "driver": "", "rotate": 0, - "smooth": 0, "d_scale": 1 }, - "points_store": "[{\"x\":0.498270691687773,\"y\":0.5385148765050286,\"highlighted\":false},{\"x\":0.5130245846778169,\"y\":0.5354391150867422,\"highlighted\":false}]", - "coordinates": "[]" - }, - { - "on": true, - "name": "Spline 5_1", - "interpolation": "linear", - "repeat": 1, - "offset": 0, - "a_pause": 0, - "z_pause": 0, - "driven": { - "driver": "ss", - "rotate": 60, - "smooth": 0, - "d_scale": 1 + "easingConfig": { + "path": "full", + "strength": 1 }, - "_drivenConfig": { - "driver": "ss", - "rotate": 60, - "smooth": 0, - "d_scale": 1 - }, - "points_store": "[{\"x\":0.6653093240807902,\"y\":0.6119824636395692,\"highlighted\":false},{\"x\":0.6779228064474786,\"y\":0.6010831323566043,\"highlighted\":false}]", - "coordinates": "[]" - }, - { - "on": true, - "name": "Spline 5_2", - "interpolation": "linear", - "repeat": 1, - "offset": 0, - "a_pause": 0, - "z_pause": 0, - "driven": { - "driver": "ss", - "rotate": 120, - "smooth": 0, - "d_scale": 1 - }, - "_drivenConfig": { - "driver": "ss", - "rotate": 120, - "smooth": 0, - "d_scale": 1 - }, - "points_store": "[{\"x\":0.7479576170596172,\"y\":0.3475504626290671,\"highlighted\":false},{\"x\":0.7562902781795947,\"y\":0.3444747012107806,\"highlighted\":false}]", - "coordinates": "[]" - }, - { - "on": true, - "name": "Spline 5_3", - "interpolation": "linear", - "repeat": 1, - "offset": 0, - "a_pause": 0, - "z_pause": 0, - "driven": { - "driver": "ss", - "rotate": 180, - "smooth": 0, - "d_scale": 1 - }, - "_drivenConfig": { - "driver": "ss", - "rotate": 180, - "smooth": 0, - "d_scale": 1 - }, - "points_store": "[{\"x\":0.3284745029348544,\"y\":0.598191255841267,\"highlighted\":false},{\"x\":0.34322839592489823,\"y\":0.5951154944229804,\"highlighted\":false}]", - "coordinates": "[]" - }, - { - "on": true, - "name": "Spline 5_4", - "interpolation": "linear", - "repeat": 1, - "offset": 0, - "a_pause": 0, - "z_pause": 0, - "driven": { - "driver": "ss", - "rotate": 240, - "smooth": 0, - "d_scale": 1 - }, - "_drivenConfig": { - "driver": "ss", - "rotate": 240, - "smooth": 0, - "d_scale": 1 - }, - "points_store": "[{\"x\":0.8225520225072923,\"y\":0.654883816210693,\"highlighted\":false},{\"x\":0.8330250942506253,\"y\":0.6518080547924066,\"highlighted\":false}]", - "coordinates": "[]" - }, - { - "on": true, - "name": "Spline 5_5", - "interpolation": "linear", - "repeat": 1, - "offset": 0, - "a_pause": 0, - "z_pause": 0, - "driven": { - "driver": "ss", - "rotate": 300, - "smooth": 0, - "d_scale": 1 - }, - "_drivenConfig": { - "driver": "ss", - "rotate": 300, - "smooth": 0, - "d_scale": 1 - }, - "points_store": "[{\"x\":0.1806538593801499,\"y\":0.7586013634970744,\"highlighted\":false},{\"x\":0.1954077523701937,\"y\":0.755525602078788,\"highlighted\":false}]", + "scale": 1.01, + "points_store": "[{\"x\":0.1825084381354701,\"y\":0.5597005375309391,\"highlighted\":false},{\"x\":0.3365074749955557,\"y\":0.6076201622338966,\"highlighted\":false},{\"x\":0.3189020559617375,\"y\":0.35938667690686077,\"highlighted\":false},{\"x\":0.6634434660802881,\"y\":0.627109436647994,\"highlighted\":false},{\"x\":0.7567427823191606,\"y\":0.3196802409162543,\"highlighted\":false},{\"x\":0.8208569029648533,\"y\":0.65848825171457,\"highlighted\":false}]", "coordinates": "[]" } ] + }, + { + "id": 109, + "type": "ImageResizeKJv2", + "pos": [ + -67.44595217385478, + 383.44788283677536 + ], + "size": [ + 270, + 336.0000305175781 + ], + "flags": { + "collapsed": true + }, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 168 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 292 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 293 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 215, + 488 + ] + }, + { + "name": "width", + "type": "INT", + "links": [] + }, + { + "name": "height", + "type": "INT", + "links": [] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": { + "width": true, + "height": true + }, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 480, + 832, + "lanczos", + "resize", + "0,0,0", + "center", + 16, + "cpu", + "Output: 1 x 944 x 528 | 5.70MB" + ] + }, + { + "id": 270, + "type": "DrawShapeOnPath", + "pos": [ + -73.13712058134249, + 432.67323582903435 + ], + "size": [ + 270, + 358 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "bg_image", + "type": "IMAGE", + "link": 500 + }, + { + "name": "coordinates", + "type": "STRING", + "link": 501 + }, + { + "name": "frames", + "shape": 7, + "type": "INT", + "link": 502 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 504, + 510 + ] + }, + { + "name": "mask", + "type": "MASK", + "links": null + }, + { + "name": "output_coordinates", + "type": "STRING", + "links": null + }, + { + "name": "preview", + "type": "IMAGE", + "links": [ + 511 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "7f2c53a50344a37df99e3bf83e254ce18a170c72", + "Node name for S&R": "DrawShapeOnPath", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + "circle", + 40, + 40, + "white", + "black", + 15.199951171875, + 1, + 0, + 0, + "black", + true + ] } ], "links": [ @@ -3540,14 +3471,6 @@ 0, "IMAGE" ], - [ - 291, - 161, - 0, - 159, - 2, - "PATH_FRAME_CONFIG" - ], [ 292, 153, @@ -3620,86 +3543,6 @@ 0, "WANVAE" ], - [ - 358, - 97, - 0, - 201, - 0, - "*" - ], - [ - 359, - 105, - 0, - 202, - 0, - "*" - ], - [ - 360, - 203, - 0, - 27, - 0, - "WANVIDEOMODEL" - ], - [ - 361, - 205, - 0, - 100, - 0, - "WANVIDEOMODEL" - ], - [ - 367, - 210, - 0, - 161, - 0, - "INT" - ], - [ - 453, - 159, - 0, - 82, - 0, - "IMAGE" - ], - [ - 454, - 159, - 0, - 76, - 0, - "IMAGE" - ], - [ - 463, - 109, - 0, - 250, - 0, - "IMAGE" - ], - [ - 464, - 250, - 0, - 159, - 0, - "IMAGE" - ], - [ - 465, - 250, - 1, - 159, - 1, - "STRING" - ], [ 466, 204, @@ -3771,6 +3614,102 @@ 100, 19, "INT" + ], + [ + 488, + 109, + 0, + 264, + 0, + "IMAGE" + ], + [ + 489, + 97, + 0, + 265, + 0, + "*" + ], + [ + 490, + 265, + 0, + 27, + 0, + "WANVIDEOMODEL" + ], + [ + 491, + 105, + 0, + 266, + 0, + "*" + ], + [ + 492, + 266, + 0, + 100, + 0, + "WANVIDEOMODEL" + ], + [ + 494, + 210, + 0, + 264, + 2, + "INT" + ], + [ + 500, + 264, + 0, + 270, + 0, + "IMAGE" + ], + [ + 501, + 264, + 1, + 270, + 1, + "STRING" + ], + [ + 502, + 264, + 2, + 270, + 2, + "INT" + ], + [ + 504, + 270, + 0, + 76, + 0, + "IMAGE" + ], + [ + 510, + 270, + 0, + 82, + 0, + "IMAGE" + ], + [ + 511, + 270, + 3, + 274, + 0, + "IMAGE" ] ], "groups": [ @@ -3780,8 +3719,8 @@ "bounding": [ 247.32363891601562, 206.1204376220703, - 826.9085693359375, - 780.00634765625 + 844.745804698834, + 998.8097862527568 ], "color": "#A88", "font_size": 24, @@ -3817,13 +3756,13 @@ "config": {}, "extra": { "ds": { - "scale": 0.45949729863573274, + "scale": 0.5054470284993099, "offset": [ - 1158.6655131354307, - 826.8347265089876 + 1479.397374863866, + 589.8946647145658 ] }, - "frontendVersion": "1.27.10", + "frontendVersion": "1.29.1", "node_versions": { "ComfyUI-WanVideoWrapper": "5a2383621a05825d0d0437781afcb8552d9590fd", "comfy-core": "0.3.26", diff --git a/examples/rabbit_control_with_i2v/output.mp4 b/examples/rabbit_control_with_i2v/output.mp4 index 783ff46..fa6fa77 100644 Binary files a/examples/rabbit_control_with_i2v/output.mp4 and b/examples/rabbit_control_with_i2v/output.mp4 differ diff --git a/examples/rabbit_control_with_i2v/wan22_control+i2v.json b/examples/rabbit_control_with_i2v/wan22_control+i2v.json index 64b5ccd..64e0c28 100644 --- a/examples/rabbit_control_with_i2v/wan22_control+i2v.json +++ b/examples/rabbit_control_with_i2v/wan22_control+i2v.json @@ -1,24 +1,24 @@ { - "id": "206247b6-9fec-4ed2-8927-e4f388c674d4", + "id": "2b9ad2fa-2e59-439b-ba64-7a023d34c75e", "revision": 0, - "last_node_id": 245, - "last_link_id": 454, + "last_node_id": 276, + "last_link_id": 518, "nodes": [ { "id": 104, "type": "WanVideoSetBlockSwap", "pos": [ - -401.815185546875, - -902.7181396484375 + 23.7281436920166, + -753.145751953125 ], "size": [ - 201.76815795898438, + 201.7681640625, 46 ], "flags": { "collapsed": true }, - "order": 30, + "order": 32, "mode": 0, "inputs": [ { @@ -58,110 +58,47 @@ "bgcolor": "#335" }, { - "id": 145, - "type": "WanVideoAddControlEmbeds", + "id": 28, + "type": "WanVideoDecode", "pos": [ - 753.6688842773438, - 294.4811096191406 - ], - "size": [ - 296.7886657714844, - 172.00003051757812 - ], - "flags": {}, - "order": 43, - "mode": 0, - "inputs": [ - { - "name": "embeds", - "type": "WANVIDIMAGE_EMBEDS", - "link": 247 - }, - { - "name": "latents", - "shape": 7, - "type": "LATENT", - "link": 246 - }, - { - "name": "fun_ref_image", - "shape": 7, - "type": "LATENT", - "link": null - } - ], - "outputs": [ - { - "name": "image_embeds", - "type": "WANVIDIMAGE_EMBEDS", - "links": [ - 248 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoAddControlEmbeds", - "ver": "64a0c036732ce2f85caf9ec933a51bf802f8b645", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 0, - 1 - ] - }, - { - "id": 77, - "type": "WanVideoEncode", - "pos": [ - 562.4077758789062, - 342.7292175292969 + 2501.210693359375, + -412.84857177734375 ], "size": [ 315, - 242 + 198 ], "flags": { "collapsed": true }, - "order": 40, + "order": 51, "mode": 0, "inputs": [ { "name": "vae", "type": "WANVAE", - "link": 214 + "link": 357 }, { - "name": "image", - "type": "IMAGE", - "link": 90 - }, - { - "name": "mask", - "shape": 7, - "type": "MASK", - "link": null + "name": "samples", + "type": "LATENT", + "link": 218 } ], "outputs": [ { - "name": "samples", - "type": "LATENT", + "name": "images", + "type": "IMAGE", + "slot_index": 0, "links": [ - 246 + 280 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoEncode", - "ver": "d5085d4e879b5c9d56e39f57e656255ce72e81fc", + "Node name for S&R": "WanVideoDecode", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", @@ -175,40 +112,99 @@ 272, 144, 128, - 0, - 1 + "default" ], "color": "#322", "bgcolor": "#533" }, { - "id": 191, - "type": "WanVideoSigmaToStep", + "id": 195, + "type": "WanVideoDecode", "pos": [ - 1245.93115234375, - 1253.2054443359375 + 1634.7493896484375, + -412.84857177734375 ], "size": [ - 256.3936767578125, - 58 + 315, + 198 ], - "flags": {}, - "order": 0, + "flags": { + "collapsed": true + }, + "order": 48, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "vae", + "type": "WANVAE", + "link": 350 + }, + { + "name": "samples", + "type": "LATENT", + "link": 352 + } + ], "outputs": [ { - "name": "step", - "type": "INT", + "name": "images", + "type": "IMAGE", + "slot_index": 0, "links": [ - 337 + 353 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSigmaToStep", - "ver": "3de291dbca23db4e108f30b7419996485b1c49d1", + "Node name for S&R": "WanVideoDecode", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + }, + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper" + }, + "widgets_values": [ + false, + 272, + 272, + 144, + 128, + "default" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 200, + "type": "GetNode", + "pos": [ + 2501.210693359375, + -462.88226318359375 + ], + "size": [ + 210, + 50 + ], + "flags": { + "collapsed": true + }, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "WANVAE", + "type": "WANVAE", + "links": [ + 357 + ] + } + ], + "title": "Get_VAE", + "properties": { "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, @@ -216,19 +212,21 @@ } }, "widgets_values": [ - 0.8500000000000002 - ] + "VAE" + ], + "color": "#322", + "bgcolor": "#533" }, { - "id": 193, - "type": "WanVideoSigmaToStep", + "id": 39, + "type": "WanVideoBlockSwap", "pos": [ - 2097.3115234375, - 1261.9476318359375 + -291.97454833984375, + -1678.8804931640625 ], "size": [ - 256.3936767578125, - 58 + 269.9057312011719, + 202 ], "flags": {}, "order": 1, @@ -236,17 +234,19 @@ "inputs": [], "outputs": [ { - "name": "step", - "type": "INT", + "name": "block_swap_args", + "type": "BLOCKSWAPARGS", + "slot_index": 0, "links": [ - 344 + 142 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSigmaToStep", - "ver": "3de291dbca23db4e108f30b7419996485b1c49d1", + "Node name for S&R": "WanVideoBlockSwap", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, @@ -254,156 +254,1465 @@ } }, "widgets_values": [ - 0.8500000000000002 - ] + 20, + false, + false, + true, + 0, + 0, + false + ], + "color": "#223", + "bgcolor": "#335" }, { - "id": 189, - "type": "WanVideoImageToVideoEncode", + "id": 157, + "type": "WanVideoBlockSwap", "pos": [ - 402.54937744140625, - 832.2178344726562 + -291.97454833984375, + -613.8773193359375 ], "size": [ - 293.7520751953125, - 390 + 259.7272644042969, + 202 ], - "flags": { - "collapsed": false - }, - "order": 42, + "flags": {}, + "order": 2, "mode": 0, - "inputs": [ - { - "name": "vae", - "shape": 7, - "type": "WANVAE", - "link": 324 - }, - { - "name": "clip_embeds", - "shape": 7, - "type": "WANVIDIMAGE_CLIPEMBEDS", - "link": null - }, - { - "name": "start_image", - "shape": 7, - "type": "IMAGE", - "link": 325 - }, - { - "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": 326 - }, - { - "name": "height", - "type": "INT", - "widget": { - "name": "height" - }, - "link": 327 - }, - { - "name": "num_frames", - "type": "INT", - "widget": { - "name": "num_frames" - }, - "link": 328 - } - ], + "inputs": [], "outputs": [ { - "name": "image_embeds", - "type": "WANVIDIMAGE_EMBEDS", + "name": "block_swap_args", + "type": "BLOCKSWAPARGS", + "slot_index": 0, "links": [ - 329 + 277 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoImageToVideoEncode", + "Node name for S&R": "WanVideoBlockSwap", "ver": "d20baf00247fd06553fdc9253e18732244e54172", "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", - "widget_ue_connectable": { - "width": true, - "height": true, - "num_frames": true - }, + "widget_ue_connectable": {}, "input_ue_unconnectable": {} } }, "widgets_values": [ - 832, - 480, - 81, + 20, + false, + false, + true, + 0, 0, - 1, - 1.0000000000000002, - true, - true, false ], - "color": "#2a363b", - "bgcolor": "#3f5159" + "color": "#223", + "bgcolor": "#335" }, { - "id": 27, - "type": "WanVideoSampler", + "id": 33, + "type": "Note", "pos": [ - 1245.93115234375, - -381.1658020019531 + -778.8823852539062, + -598.2893676757812 ], "size": [ - 357.6112060546875, - 888.7306518554688 + 442.0411376953125, + 88 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Models:\nhttps://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/tree/main/Fun" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 141, + "type": "Reroute", + "pos": [ + 1105.133056640625, + -345.3215637207031 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 235 + } + ], + "outputs": [ + { + "name": "", + "type": "WANVIDEOTEXTEMBEDS", + "links": [ + 236, + 237 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + } + }, + { + "id": 38, + "type": "WanVideoVAELoader", + "pos": [ + 326.0544128417969, + -75.39892578125 + ], + "size": [ + 250.94207763671875, + 82 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "compile_args", + "shape": 7, + "type": "WANCOMPILEARGS", + "link": null + } + ], + "outputs": [ + { + "name": "vae", + "type": "WANVAE", + "slot_index": 0, + "links": [ + 103 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoVAELoader", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Wan2_1_VAE_bf16.safetensors", + "bf16" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 83, + "type": "SetNode", + "pos": [ + 458.51458740234375, + -146.63731384277344 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "WANVAE", + "type": "WANVAE", + "link": 103 + } + ], + "outputs": [ + { + "name": "*", + "type": "*", + "links": null + } + ], + "title": "Set_VAE", + "properties": { + "previousName": "VAE", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "VAE" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 80, + "type": "Reroute", + "pos": [ + 1101.2559814453125, + 294.0339050292969 + ], + "size": [ + 75, + 26 ], "flags": {}, "order": 45, "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 248 + } + ], + "outputs": [ + { + "name": "", + "type": "WANVIDIMAGE_EMBEDS", + "links": [ + 196 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + } + }, + { + "id": 86, + "type": "GetNode", + "pos": [ + 1634.7493896484375, + -463.3868713378906 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "WANVAE", + "type": "WANVAE", + "links": [ + 350 + ] + } + ], + "title": "Get_VAE", + "properties": { + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "VAE" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 126, + "type": "WanVideoTextEncodeCached", + "pos": [ + 592.6211547851562, + -193.55918884277344 + ], + "size": [ + 474.5360107421875, + 366.7752685546875 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "extender_args", + "shape": 7, + "type": "WANVIDEOPROMPTEXTENDER_ARGS", + "link": null + } + ], + "outputs": [ + { + "name": "text_embeds", + "type": "WANVIDEOTEXTEMBEDS", + "links": [ + 235 + ] + }, + { + "name": "negative_text_embeds", + "type": "WANVIDEOTEXTEMBEDS", + "links": null + }, + { + "name": "positive_prompt", + "type": "STRING", + "links": null + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoTextEncodeCached", + "ver": "bbf14ec9e9965c1a8582eea02b50913e79a036d0", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "umt5-xxl-enc-bf16.safetensors", + "bf16", + "multiple rabbits in snow , all are moving around", + "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", + "disabled", + true, + "gpu" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 251, + "type": "SetNode", + "pos": [ + -289.2106042401627, + -82.83876165789789 + ], + "size": [ + 210, + 34 + ], + "flags": { + "collapsed": true + }, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "INT", + "type": "INT", + "link": 472 + } + ], + "outputs": [ + { + "name": "*", + "type": "*", + "links": null + } + ], + "title": "Set_total_steps", + "properties": { + "previousName": "", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "total_steps" + ], + "color": "#1b4669", + "bgcolor": "#29699c", + "shape": 1 + }, + { + "id": 252, + "type": "SetNode", + "pos": [ + -285.7494225995377, + 6.601751952941933 + ], + "size": [ + 210, + 34 + ], + "flags": { + "collapsed": true + }, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "INT", + "type": "INT", + "link": 473 + } + ], + "outputs": [ + { + "name": "*", + "type": "*", + "links": null + } + ], + "title": "Set_split_step", + "properties": { + "previousName": "", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "split_step" + ], + "color": "#1b4669", + "bgcolor": "#29699c", + "shape": 1 + }, + { + "id": 260, + "type": "GetNode", + "pos": [ + 1076.175048828125, + 200.13568115234375 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 480, + 481 + ] + } + ], + "title": "Get_split_step", + "properties": { + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "split_step" + ], + "color": "#222", + "bgcolor": "#000", + "shape": 1 + }, + { + "id": 259, + "type": "GetNode", + "pos": [ + 1076.175048828125, + 169.95538330078125 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 477, + 478 + ] + } + ], + "title": "Get_total_steps", + "properties": { + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "total_steps" + ], + "color": "#222", + "bgcolor": "#000", + "shape": 1 + }, + { + "id": 30, + "type": "VHS_VideoCombine", + "pos": [ + 2480.57373046875, + -579.6849365234375 + ], + "size": [ + 628.69873046875, + 688.4586119570974 + ], + "flags": {}, + "order": 52, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 280 + }, + { + "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", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "WanVideoWrapper_22FunControl", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 18, + "save_metadata": false, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideoWrapper_22FunControl_00007.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideoWrapper_22FunControl_00007.png", + "fullpath": "" + } + } + } + }, + { + "id": 187, + "type": "VHS_VideoCombine", + "pos": [ + 1627.18212890625, + -579.6849365234375 + ], + "size": [ + 432.51849365234375, + 578.730682890294 + ], + "flags": {}, + "order": 50, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 353 + }, + { + "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", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "WanVideoWrapper_22FunControl", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": false, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideoWrapper_22FunControl_00006.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideoWrapper_22FunControl_00006.png", + "fullpath": "" + } + } + } + }, + { + "id": 98, + "type": "WanVideoSetBlockSwap", + "pos": [ + 56.36982747136634, + -1144.8193791834356 + ], + "size": [ + 201.7681640625, + 46 + ], + "flags": { + "collapsed": true + }, + "order": 31, + "mode": 0, "inputs": [ { "name": "model", "type": "WANVIDEOMODEL", - "link": 360 + "link": 140 + }, + { + "name": "block_swap_args", + "shape": 7, + "type": "BLOCKSWAPARGS", + "link": 142 + } + ], + "outputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "links": [ + 141 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoSetBlockSwap", + "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 97, + "type": "WanVideoSetLoRAs", + "pos": [ + 330.0683481317665, + -1144.8193791834356 + ], + "size": [ + 247.54364013671875, + 104 + ], + "flags": { + "collapsed": true + }, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 141 + }, + { + "name": "lora", + "shape": 7, + "type": "WANVIDLORA", + "link": 276 + } + ], + "outputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "links": [ + 489 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoSetLoRAs", + "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 265, + "type": "Reroute", + "pos": [ + 959.4096057395299, + -1174.327432570377 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 39, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 489 + } + ], + "outputs": [ + { + "name": "", + "type": "WANVIDEOMODEL", + "links": [ + 490 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 105, + "type": "WanVideoSetLoRAs", + "pos": [ + 292.6243591308594, + -754.334882832344 + ], + "size": [ + 247.54364013671875, + 47.189130879218965 + ], + "flags": { + "collapsed": true + }, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 156 + }, + { + "name": "lora", + "shape": 7, + "type": "WANVIDLORA", + "link": 512 + } + ], + "outputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "links": [ + 491 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoSetLoRAs", + "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 58, + "type": "LoadImage", + "pos": [ + -747.2610739787638, + -190.95369753080683 + ], + "size": [ + 413.10479736328125, + 498.3180847167969 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 168 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.26", + "Node name for S&R": "LoadImage", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "snowy-rabbit-gathering-stockcake-1824665364.jpg", + "image" + ], + "color": "#2a363b", + "bgcolor": "#3f5159", + "shape": 1 + }, + { + "id": 254, + "type": "INTConstant", + "pos": [ + -323.37008910344395, + 0.9536997373657573 + ], + "size": [ + 210, + 59.31474304199219 + ], + "flags": { + "pinned": true + }, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "value", + "type": "INT", + "links": [ + 473 + ] + } + ], + "title": "split_step", + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "INTConstant", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 3 + ], + "color": "#323", + "bgcolor": "#535", + "shape": 1 + }, + { + "id": 253, + "type": "INTConstant", + "pos": [ + -323.15869383977207, + -86.75855764788813 + ], + "size": [ + 210, + 58 + ], + "flags": { + "pinned": true + }, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "value", + "type": "INT", + "links": [ + 472 + ] + } + ], + "title": "total_steps", + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "INTConstant", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 7 + ], + "color": "#323", + "bgcolor": "#535", + "shape": 1 + }, + { + "id": 153, + "type": "INTConstant", + "pos": [ + -333.8786315917969, + 250.31076049804688 + ], + "size": [ + 235.78514099121094, + 76.51242065429688 + ], + "flags": { + "pinned": true + }, + "order": 12, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "value", + "type": "INT", + "links": [ + 292, + 293 + ] + } + ], + "title": "SIZE", + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "INTConstant", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 958 + ], + "color": "#222", + "bgcolor": "#000", + "shape": 1 + }, + { + "id": 210, + "type": "WanFrames", + "pos": [ + -333.8786315917969, + 134.33880615234375 + ], + "size": [ + 236.44627380371094, + 86.4462890625 + ], + "flags": { + "pinned": true + }, + "order": 13, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "frame_count", + "type": "INT", + "links": [ + 494 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "0a2536acb32c76369fa019dfcadd77cb92650373", + "Node name for S&R": "WanFrames", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + 40 + ], + "color": "#222", + "bgcolor": "#000", + "shape": 1 + }, + { + "id": 82, + "type": "VHS_VideoCombine", + "pos": [ + -80.97270869385055, + -175.1763034143151 + ], + "size": [ + 309.3501892089844, + 509.83993633722855 + ], + "flags": {}, + "order": 37, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 510 + }, + { + "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", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "control", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": false, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "control_00009.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "control_00009.png", + "fullpath": "" + } + } + }, + "shape": 1 + }, + { + "id": 206, + "type": "Fast Groups Bypasser (rgthree)", + "pos": [ + 264.2725736722456, + 74.29152722276638 + ], + "size": [ + 312.3485107421875, + 96.41674041748047 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "OPT_CONNECTION", + "type": "*", + "links": null + } + ], + "properties": { + "matchColors": "cyan", + "matchTitle": "", + "showNav": true, + "showAllGraphs": true, + "sort": "position", + "customSortAlphabet": "", + "toggleRestriction": "default", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 100, + "type": "WanVideoSampler", + "pos": [ + 2100.554690130707, + -421.1644592452555 + ], + "size": [ + 357.6112060546875, + 892.8333864373676 + ], + "flags": {}, + "order": 49, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 492 + }, + { + "name": "image_embeds", + "type": "WANVIDIMAGE_EMBEDS", + "link": 518 + }, + { + "name": "text_embeds", + "shape": 7, + "type": "WANVIDEOTEXTEMBEDS", + "link": 237 + }, + { + "name": "samples", + "shape": 7, + "type": "LATENT", + "link": 355 + }, + { + "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 + }, + { + "name": "steps", + "type": "INT", + "widget": { + "name": "steps" + }, + "link": 478 + }, + { + "name": "seed", + "type": "INT", + "widget": { + "name": "seed" + }, + "link": 466 + }, + { + "name": "start_step", + "shape": 7, + "type": "INT", + "widget": { + "name": "start_step" + }, + "link": 481 + } + ], + "outputs": [ + { + "name": "samples", + "type": "LATENT", + "slot_index": 0, + "links": [ + 218 + ] + }, + { + "name": "denoised_samples", + "type": "LATENT", + "links": null + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoSampler", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": { + "steps": true, + "shift": true, + "start_step": true + }, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 6, + 1, + 5.000000000000001, + 42, + "fixed", + true, + "dpm++_sde", + 0, + 1, + "", + "comfy", + 2, + -1, + false + ] + }, + { + "id": 27, + "type": "WanVideoSampler", + "pos": [ + 1249.1743190369568, + -421.1644592452555 + ], + "size": [ + 357.6112060546875, + 892.8333864373676 + ], + "flags": {}, + "order": 46, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "WANVIDEOMODEL", + "link": 490 }, { "name": "image_embeds", @@ -468,7 +1777,7 @@ "name": "sigmas", "shape": 7, "type": "SIGMAS", - "link": 331 + "link": null }, { "name": "unianimate_poses", @@ -506,15 +1815,7 @@ "widget": { "name": "steps" }, - "link": 332 - }, - { - "name": "shift", - "type": "FLOAT", - "widget": { - "name": "shift" - }, - "link": 333 + "link": 477 }, { "name": "seed", @@ -524,23 +1825,6 @@ }, "link": 356 }, - { - "name": "scheduler", - "type": "COMBO", - "widget": { - "name": "scheduler" - }, - "link": 334 - }, - { - "name": "start_step", - "shape": 7, - "type": "INT", - "widget": { - "name": "start_step" - }, - "link": 335 - }, { "name": "end_step", "shape": 7, @@ -548,7 +1832,7 @@ "widget": { "name": "end_step" }, - "link": 336 + "link": 480 } ], "outputs": [ @@ -600,663 +1884,12 @@ false ] }, - { - "id": 28, - "type": "WanVideoDecode", - "pos": [ - 2501.210693359375, - -412.84857177734375 - ], - "size": [ - 315, - 198 - ], - "flags": { - "collapsed": true - }, - "order": 50, - "mode": 0, - "inputs": [ - { - "name": "vae", - "type": "WANVAE", - "link": 357 - }, - { - "name": "samples", - "type": "LATENT", - "link": 218 - } - ], - "outputs": [ - { - "name": "images", - "type": "IMAGE", - "slot_index": 0, - "links": [ - 280 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoDecode", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - false, - 272, - 272, - 144, - 128, - "default" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 30, - "type": "VHS_VideoCombine", - "pos": [ - 2501.210693359375, - -372.42315673828125 - ], - "size": [ - 628.69873046875, - 681.0615844726562 - ], - "flags": {}, - "order": 51, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 280 - }, - { - "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", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": { - "frame_rate": 16, - "loop_count": 0, - "filename_prefix": "WanVideoWrapper_22FunControl", - "format": "video/h264-mp4", - "pix_fmt": "yuv420p", - "crf": 18, - "save_metadata": false, - "trim_to_audio": false, - "pingpong": false, - "save_output": false, - "videopreview": { - "hidden": false, - "paused": false, - "params": { - "filename": "WanVideoWrapper_22FunControl_00021.mp4", - "subfolder": "", - "type": "temp", - "format": "video/h264-mp4", - "frame_rate": 16, - "workflow": "WanVideoWrapper_22FunControl_00021.png", - "fullpath": "" - } - } - } - }, - { - "id": 195, - "type": "WanVideoDecode", - "pos": [ - 1634.7493896484375, - -438.9059143066406 - ], - "size": [ - 315, - 198 - ], - "flags": { - "collapsed": true - }, - "order": 47, - "mode": 0, - "inputs": [ - { - "name": "vae", - "type": "WANVAE", - "link": 350 - }, - { - "name": "samples", - "type": "LATENT", - "link": 352 - } - ], - "outputs": [ - { - "name": "images", - "type": "IMAGE", - "slot_index": 0, - "links": [ - 353 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoDecode", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - }, - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper" - }, - "widgets_values": [ - false, - 272, - 272, - 144, - 128, - "default" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 187, - "type": "VHS_VideoCombine", - "pos": [ - 1634.7493896484375, - -381.1658020019531 - ], - "size": [ - 426.03216552734375, - 570.1685180664062 - ], - "flags": {}, - "order": 49, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 353 - }, - { - "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", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": { - "frame_rate": 16, - "loop_count": 0, - "filename_prefix": "WanVideoWrapper_22FunControl", - "format": "video/h264-mp4", - "pix_fmt": "yuv420p", - "crf": 19, - "save_metadata": false, - "trim_to_audio": false, - "pingpong": false, - "save_output": false, - "videopreview": { - "hidden": false, - "paused": false, - "params": { - "filename": "WanVideoWrapper_22FunControl_00020.mp4", - "subfolder": "", - "type": "temp", - "format": "video/h264-mp4", - "frame_rate": 16, - "workflow": "WanVideoWrapper_22FunControl_00020.png", - "fullpath": "" - } - } - } - }, - { - "id": 86, - "type": "GetNode", - "pos": [ - 1634.7493896484375, - -486.9320983886719 - ], - "size": [ - 210, - 58 - ], - "flags": { - "collapsed": true - }, - "order": 2, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVAE", - "type": "WANVAE", - "links": [ - 350 - ] - } - ], - "title": "Get_VAE", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "VAE" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 200, - "type": "GetNode", - "pos": [ - 2501.210693359375, - -462.88226318359375 - ], - "size": [ - 210, - 50 - ], - "flags": { - "collapsed": true - }, - "order": 3, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVAE", - "type": "WANVAE", - "links": [ - 357 - ] - } - ], - "title": "Get_VAE", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "VAE" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 203, - "type": "GetNode", - "pos": [ - 1245.93115234375, - -422.92840576171875 - ], - "size": [ - 210, - 50 - ], - "flags": { - "collapsed": true - }, - "order": 4, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "links": [ - 360 - ] - } - ], - "title": "Get_HIGH", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "HIGH" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 100, - "type": "WanVideoSampler", - "pos": [ - 2097.3115234375, - -372.42315673828125 - ], - "size": [ - 357.6112060546875, - 888.7306518554688 - ], - "flags": {}, - "order": 48, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 361 - }, - { - "name": "image_embeds", - "type": "WANVIDIMAGE_EMBEDS", - "link": 329 - }, - { - "name": "text_embeds", - "shape": 7, - "type": "WANVIDEOTEXTEMBEDS", - "link": 237 - }, - { - "name": "samples", - "shape": 7, - "type": "LATENT", - "link": 355 - }, - { - "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": 338 - }, - { - "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 - }, - { - "name": "steps", - "type": "INT", - "widget": { - "name": "steps" - }, - "link": 339 - }, - { - "name": "shift", - "type": "FLOAT", - "widget": { - "name": "shift" - }, - "link": 340 - }, - { - "name": "scheduler", - "type": "COMBO", - "widget": { - "name": "scheduler" - }, - "link": 341 - }, - { - "name": "start_step", - "shape": 7, - "type": "INT", - "widget": { - "name": "start_step" - }, - "link": 342 - }, - { - "name": "end_step", - "shape": 7, - "type": "INT", - "widget": { - "name": "end_step" - }, - "link": 343 - } - ], - "outputs": [ - { - "name": "samples", - "type": "LATENT", - "slot_index": 0, - "links": [ - 218 - ] - }, - { - "name": "denoised_samples", - "type": "LATENT", - "links": null - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSampler", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": { - "steps": true, - "shift": true, - "start_step": true - }, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 6, - 1, - 5.000000000000001, - 42, - "fixed", - true, - "dpm++_sde", - 0, - 1, - "", - "comfy", - 2, - -1, - false - ] - }, - { - "id": 204, - "type": "Seed (rgthree)", - "pos": [ - 2097.3115234375, - -599.0325317382812 - ], - "size": [ - 315, - 130 - ], - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [], - "outputs": [ - { - "dir": 4, - "name": "SEED", - "shape": 3, - "type": "INT", - "links": [] - } - ], - "properties": { - "cnr_id": "rgthree-comfy", - "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", - "randomMax": 1125899906842624, - "randomMin": 0, - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "widgets_values": [ - 79750880556572, - "", - "", - "" - ] - }, { "id": 35, "type": "WanVideoTorchCompileSettings", "pos": [ - -1393.5465087890625, - -1141.1263427734375 + -1051.135353566016, + -993.824138385799 ], "size": [ 390.5999755859375, @@ -1265,7 +1898,7 @@ "flags": { "collapsed": true }, - "order": 6, + "order": 15, "mode": 0, "inputs": [], "outputs": [ @@ -1302,738 +1935,19 @@ "color": "#223", "bgcolor": "#335" }, - { - "id": 197, - "type": "WanVideoCacheSamples", - "pos": [ - 1726.8284912109375, - -778.1482543945312 - ], - "size": [ - 305.3199157714844, - 82 - ], - "flags": {}, - "order": 46, - "mode": 0, - "inputs": [ - { - "name": "samples", - "shape": 7, - "type": "LATENT", - "link": 354 - } - ], - "outputs": [ - { - "name": "samples", - "type": "LATENT", - "links": [ - 355 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "WanVideoCacheSamples", - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "widgets_values": [ - "cache_data", - "wanvideo_cached_samples.pt" - ] - }, - { - "id": 198, - "type": "Seed (rgthree)", - "pos": [ - 1245.93115234375, - -597.31396484375 - ], - "size": [ - 315, - 130 - ], - "flags": {}, - "order": 7, - "mode": 0, - "inputs": [], - "outputs": [ - { - "dir": 4, - "name": "SEED", - "shape": 3, - "type": "INT", - "links": [ - 356 - ] - } - ], - "properties": { - "cnr_id": "rgthree-comfy", - "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", - "randomMax": 1125899906842624, - "randomMin": 0, - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "widgets_values": [ - 1071592969883523, - "", - "", - "" - ] - }, - { - "id": 82, - "type": "VHS_VideoCombine", - "pos": [ - -104.71569061279297, - 430.94500732421875 - ], - "size": [ - 309.3501892089844, - 506.3236999511719 - ], - "flags": {}, - "order": 38, - "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 453 - }, - { - "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", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": { - "frame_rate": 16, - "loop_count": 0, - "filename_prefix": "control", - "format": "video/h264-mp4", - "pix_fmt": "yuv420p", - "crf": 19, - "save_metadata": false, - "trim_to_audio": false, - "pingpong": false, - "save_output": false, - "videopreview": { - "hidden": false, - "paused": false, - "params": { - "filename": "control_00200.mp4", - "subfolder": "", - "type": "temp", - "format": "video/h264-mp4", - "frame_rate": 16, - "workflow": "control_00200.png", - "fullpath": "" - } - } - } - }, - { - "id": 245, - "type": "WanVideoPowerLoraLoader", - "pos": [ - -408.59637451171875, - -1171.0582275390625 - ], - "size": [ - 480, - 185.326171875 - ], - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "prev_lora", - "shape": 7, - "type": "WANVIDLORA", - "link": null - }, - { - "name": "blocks", - "shape": 7, - "type": "SELECTEDBLOCKS", - "link": null - } - ], - "outputs": [ - { - "name": "selected_lora", - "type": "WANVIDLORA", - "links": [ - 450 - ] - }, - { - "name": "low_lora", - "type": "WANVIDLORA", - "links": [] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - }, - "Node name for S&R": "WanVideoPowerLoraLoader", - "Show Strengths": "Single Strength", - "low_mem_load": true, - "merge_loras": false, - "overwrite_duplicates": false - }, - "widgets_values": [ - {}, - {}, - { - "type": "PowerLoraLoaderHeaderWidget" - }, - { - "on": true, - "lora": "wan_22_lighting\\old\\Wan2.2-Lightning_I2V-A14B-4steps-lora_LOW_fp16.safetensors", - "strength": 1, - "strengthTwo": null, - "low_strength": 1, - "is_low": false, - "low_variant_name": null - }, - {}, - "" - ] - }, - { - "id": 103, - "type": "WanVideoModelLoader", - "pos": [ - -1127.7454833984375, - -1171.0582275390625 - ], - "size": [ - 672.8318481445312, - 338 - ], - "flags": {}, - "order": 24, - "mode": 0, - "inputs": [ - { - "name": "compile_args", - "shape": 7, - "type": "WANCOMPILEARGS", - "link": 161 - }, - { - "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": [ - 154 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoModelLoader", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "wan_2.2\\Wan2_2-I2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors", - "fp16_fast", - "fp8_e4m3fn_scaled", - "offload_device", - "sageattn", - "default" - ], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 98, - "type": "WanVideoSetBlockSwap", - "pos": [ - -394.1456604003906, - -1641.6221923828125 - ], - "size": [ - 201.76815795898438, - 46 - ], - "flags": { - "collapsed": true - }, - "order": 29, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 140 - }, - { - "name": "block_swap_args", - "shape": 7, - "type": "BLOCKSWAPARGS", - "link": 142 - } - ], - "outputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "links": [ - 141 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSetBlockSwap", - "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 201, - "type": "SetNode", - "pos": [ - 203.5926971435547, - -1343.9993896484375 - ], - "size": [ - 210, - 60 - ], - "flags": { - "collapsed": false - }, - "order": 36, - "mode": 0, - "inputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "link": 358 - } - ], - "outputs": [ - { - "name": "*", - "type": "*", - "links": null - } - ], - "title": "Set_HIGH", - "properties": { - "previousName": "HIGH", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "HIGH" - ] - }, - { - "id": 39, - "type": "WanVideoBlockSwap", - "pos": [ - -717.51806640625, - -1828.4517822265625 - ], - "size": [ - 269.9057312011719, - 202 - ], - "flags": {}, - "order": 9, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "block_swap_args", - "type": "BLOCKSWAPARGS", - "slot_index": 0, - "links": [ - 142 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoBlockSwap", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 20, - false, - false, - true, - 0, - 0, - false - ], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 157, - "type": "WanVideoBlockSwap", - "pos": [ - -717.51806640625, - -763.44970703125 - ], - "size": [ - 259.7272644042969, - 202 - ], - "flags": {}, - "order": 10, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "block_swap_args", - "type": "BLOCKSWAPARGS", - "slot_index": 0, - "links": [ - 277 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoBlockSwap", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 20, - false, - false, - true, - 0, - 0, - false - ], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 33, - "type": "Note", - "pos": [ - -1204.426025390625, - -747.8617553710938 - ], - "size": [ - 442.0411376953125, - 88 - ], - "flags": {}, - "order": 11, - "mode": 0, - "inputs": [], - "outputs": [], - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "Models:\nhttps://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/tree/main/Fun" - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 202, - "type": "SetNode", - "pos": [ - 203.5926971435547, - -1213.6693115234375 - ], - "size": [ - 210, - 50 - ], - "flags": { - "collapsed": false - }, - "order": 37, - "mode": 0, - "inputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "link": 359 - } - ], - "outputs": [ - { - "name": "*", - "type": "*", - "links": null - } - ], - "title": "Set_LOW", - "properties": { - "previousName": "LOW", - "ue_properties": { - "widget_ue_connectable": {}, - "version": "7.2.2", - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "LOW" - ] - }, - { - "id": 105, - "type": "WanVideoSetLoRAs", - "pos": [ - -132.9191131591797, - -902.7181396484375 - ], - "size": [ - 247.54364013671875, - 46 - ], - "flags": { - "collapsed": true - }, - "order": 34, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 156 - }, - { - "name": "lora", - "shape": 7, - "type": "WANVIDLORA", - "link": 450 - } - ], - "outputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "links": [ - 359 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSetLoRAs", - "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, - { - "id": 97, - "type": "WanVideoSetLoRAs", - "pos": [ - -120.44728088378906, - -1641.6221923828125 - ], - "size": [ - 247.54364013671875, - 104 - ], - "flags": { - "collapsed": true - }, - "order": 33, - "mode": 0, - "inputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "link": 141 - }, - { - "name": "lora", - "shape": 7, - "type": "WANVIDLORA", - "link": 276 - } - ], - "outputs": [ - { - "name": "model", - "type": "WANVIDEOMODEL", - "links": [ - 358 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoSetLoRAs", - "ver": "d446e97309824fa936fec2b52efeb19adb9ba38f", - "cnr_id": "ComfyUI-WanVideoWrapper", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [], - "color": "#223", - "bgcolor": "#335" - }, { "id": 22, "type": "WanVideoModelLoader", "pos": [ - -1127.7454833984375, - -1567.4847412109375 + -702.2020263671875, + -1417.9134521484375 ], "size": [ 674.41357421875, 338 ], "flags": {}, - "order": 23, + "order": 27, "mode": 0, "inputs": [ { @@ -2124,122 +2038,123 @@ "bgcolor": "#335" }, { - "id": 80, - "type": "Reroute", + "id": 76, + "type": "GetImageSizeAndCount", "pos": [ - 1101.2559814453125, - 294.0339050292969 + 297.4439641564424, + 311.8647163139556 ], "size": [ - 75, - 26 + 277.20001220703125, + 86 ], - "flags": {}, - "order": 44, + "flags": { + "collapsed": true + }, + "order": 36, "mode": 0, "inputs": [ { - "name": "", - "type": "*", - "link": 248 + "name": "image", + "type": "IMAGE", + "link": 504 } ], "outputs": [ { - "name": "", - "type": "WANVIDIMAGE_EMBEDS", + "name": "image", + "type": "IMAGE", "links": [ - 196 + 90 + ] + }, + { + "label": "944 width", + "name": "width", + "type": "INT", + "links": [ + 172, + 515 + ] + }, + { + "label": "528 height", + "name": "height", + "type": "INT", + "links": [ + 192, + 516 + ] + }, + { + "label": "41 count", + "name": "count", + "type": "INT", + "links": [ + 120, + 517 ] } ], "properties": { - "showOutputText": false, - "horizontal": false, + "cnr_id": "comfyui-kjnodes", + "ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028", + "Node name for S&R": "GetImageSizeAndCount", "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, "input_ue_unconnectable": {} } - } + }, + "widgets_values": [] }, { - "id": 141, - "type": "Reroute", + "id": 77, + "type": "WanVideoEncode", "pos": [ - 1105.133056640625, - -345.3215637207031 + 564.194735464315, + 311.8647163139556 ], "size": [ - 75, - 26 + 315, + 242 ], - "flags": {}, - "order": 26, + "flags": { + "collapsed": true + }, + "order": 41, "mode": 0, "inputs": [ { - "name": "", - "type": "*", - "link": 235 - } - ], - "outputs": [ + "name": "vae", + "type": "WANVAE", + "link": 214 + }, { - "name": "", - "type": "WANVIDEOTEXTEMBEDS", - "links": [ - 236, - 237 - ] - } - ], - "properties": { - "showOutputText": false, - "horizontal": false, - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - } - }, - { - "id": 38, - "type": "WanVideoVAELoader", - "pos": [ - 195.2891387939453, - -192.3563995361328 - ], - "size": [ - 372.7727966308594, - 82 - ], - "flags": {}, - "order": 12, - "mode": 0, - "inputs": [ + "name": "image", + "type": "IMAGE", + "link": 90 + }, { - "name": "compile_args", + "name": "mask", "shape": 7, - "type": "WANCOMPILEARGS", + "type": "MASK", "link": null } ], "outputs": [ { - "name": "vae", - "type": "WANVAE", - "slot_index": 0, + "name": "samples", + "type": "LATENT", "links": [ - 103 + 246 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoVAELoader", - "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "Node name for S&R": "WanVideoEncode", + "ver": "d5085d4e879b5c9d56e39f57e656255ce72e81fc", "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", @@ -2248,45 +2163,47 @@ } }, "widgets_values": [ - "Wan2_1_VAE_bf16.safetensors", - "bf16" + false, + 272, + 272, + 144, + 128, + 0, + 1 ], "color": "#322", "bgcolor": "#533" }, { - "id": 83, - "type": "SetNode", + "id": 85, + "type": "GetNode", "pos": [ - 452.82916259765625, - -244.9141845703125 + 564.194735464315, + 352.815404817867 ], "size": [ 210, - 60 + 58 ], "flags": { "collapsed": true }, - "order": 25, + "order": 16, "mode": 0, - "inputs": [ + "inputs": [], + "outputs": [ { "name": "WANVAE", "type": "WANVAE", - "link": 103 + "links": [ + 123, + 214, + 513 + ] } ], - "outputs": [ - { - "name": "*", - "type": "*", - "links": null - } - ], - "title": "Set_VAE", + "title": "Get_VAE", "properties": { - "previousName": "VAE", "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, @@ -2300,88 +2217,634 @@ "bgcolor": "#533" }, { - "id": 58, - "type": "LoadImage", + "id": 124, + "type": "Reroute", "pos": [ - -839.9069213867188, - -144.8290252685547 + 297.4437968474129, + 333.97317595617506 ], "size": [ - 413.10479736328125, - 498.3180847167969 + 75, + 26 ], "flags": {}, - "order": 13, + "order": 29, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "", + "type": "*", + "link": 215 + } + ], "outputs": [ { - "name": "IMAGE", + "name": "", "type": "IMAGE", "links": [ - 168 + 274, + 514 ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + } + }, + { + "id": 274, + "type": "VHS_VideoCombine", + "pos": [ + 277.7960444253319, + 469.88338675018696 + ], + "size": [ + 309.3501892089844, + 509.83993633722855 + ], + "flags": {}, + "order": 38, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 511 }, { - "name": "MASK", - "type": "MASK", + "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": "comfy-core", - "ver": "0.3.26", - "Node name for S&R": "LoadImage", + "cnr_id": "comfyui-videohelpersuite", + "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "Node name for S&R": "VHS_VideoCombine", "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, "input_ue_unconnectable": {} } }, - "widgets_values": [ - "snowy-rabbit-gathering-stockcake-1824665364.jpg", - "image" - ], - "color": "#2a363b", - "bgcolor": "#3f5159" + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "control", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": false, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "control_00008.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "control_00008.png", + "fullpath": "" + } + } + }, + "shape": 1 }, { - "id": 161, - "type": "PathFrameConfig", + "id": 198, + "type": "Seed (rgthree)", "pos": [ - -401.82037353515625, - 784.8471069335938 + 1245.93115234375, + -597.31396484375 + ], + "size": [ + 315, + 130 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [], + "outputs": [ + { + "dir": 4, + "name": "SEED", + "shape": 3, + "type": "INT", + "links": [ + 356 + ] + } + ], + "properties": { + "cnr_id": "rgthree-comfy", + "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", + "randomMax": 1125899906842624, + "randomMin": 0, + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + 580589296699951, + "", + "", + "" + ] + }, + { + "id": 204, + "type": "Seed (rgthree)", + "pos": [ + 2097.3115234375, + -599.0325317382812 + ], + "size": [ + 315, + 130 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [], + "outputs": [ + { + "dir": 4, + "name": "SEED", + "shape": 3, + "type": "INT", + "links": [ + 466 + ] + } + ], + "properties": { + "cnr_id": "rgthree-comfy", + "ver": "2b9eb36d3e1741e88dbfccade0e08137f7fa2bfb", + "randomMax": 1125899906842624, + "randomMin": 0, + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + 183296707294039, + "", + "", + "" + ] + }, + { + "id": 264, + "type": "PowerSplineEditor", + "pos": [ + -796.9005842176789, + 371.8861879488691 + ], + "size": [ + 701, + 722 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "ref_image", + "shape": 7, + "type": "IMAGE", + "link": 488 + }, + { + "name": "coord_in", + "shape": 7, + "type": "STRING", + "link": null + }, + { + "name": "frames", + "shape": 7, + "type": "INT", + "link": 494 + } + ], + "outputs": [ + { + "name": "ref_image", + "type": "IMAGE", + "links": [ + 500 + ] + }, + { + "name": "coord_out", + "type": "STRING", + "links": [ + 501 + ] + }, + { + "name": "frames", + "type": "INT", + "links": [ + 502 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "edaa843d7d840adcd8b0a7528f6303c49932041d", + "Node name for S&R": "PowerSplineEditor", + "userAdjustedSize": true, + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + }, + "bgImageDims": { + "width": 657.5999755859375, + "height": 480 + }, + "userAdjustedDims": true + }, + "widgets_values": [ + "[{\"on\":true,\"name\":\"Spline 1\",\"interpolation\":\"basis\",\"repeat\":1,\"offset\":6,\"a_pause\":0,\"z_pause\":0,\"easing\":\"in_out\",\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"d_scale\":1},\"easingConfig\":{\"path\":\"full\",\"strength\":1},\"scale\":1.84,\"points_store\":\"[{\\\"x\\\":0.16734756890663047,\\\"y\\\":0.8291453830740663,\\\"highlighted\\\":false},{\\\"x\\\":0.40826350018417734,\\\"y\\\":0.5354926052428199,\\\"highlighted\\\":false},{\\\"x\\\":0.44699653146644214,\\\"y\\\":0.926485751402128,\\\"highlighted\\\":true,\\\"fix\\\":null},{\\\"x\\\":0.7060983180155901,\\\"y\\\":0.5176323253815309,\\\"highlighted\\\":false},{\\\"x\\\":0.7201990955148635,\\\"y\\\":0.9296307777561326,\\\"highlighted\\\":true,\\\"fix\\\":null},{\\\"x\\\":1.0321787976862866,\\\"y\\\":0.5585176679835905,\\\"highlighted\\\":false},{\\\"x\\\":1.0550925611226054,\\\"y\\\":0.9453559095261559,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 1_1\",\"interpolation\":\"basis\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"easing\":\"in_out\",\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"d_scale\":1},\"easingConfig\":{\"path\":\"full\",\"strength\":1},\"scale\":1.89,\"points_store\":\"[{\\\"x\\\":0.49342522075763895,\\\"y\\\":0.6083132461402964,\\\"highlighted\\\":false},{\\\"x\\\":0.6752187518114265,\\\"y\\\":0.49242980482164167,\\\"highlighted\\\":false},{\\\"x\\\":0.6939596823385212,\\\"y\\\":0.7908319550438878,\\\"highlighted\\\":true},{\\\"x\\\":0.8999363806551236,\\\"y\\\":0.534384963040345,\\\"highlighted\\\":false},{\\\"x\\\":0.9064718018990809,\\\"y\\\":0.8072868674994239,\\\"highlighted\\\":true},{\\\"x\\\":1.0802300820658168,\\\"y\\\":0.5511732979852062,\\\"highlighted\\\":false},{\\\"x\\\":1.096043389626622,\\\"y\\\":0.8181391373940944,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 3\",\"interpolation\":\"points\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"easing\":\"in_out\",\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"d_scale\":1},\"easingConfig\":{\"path\":\"full\",\"strength\":1},\"scale\":1.01,\"points_store\":\"[{\\\"x\\\":0.1825084381354701,\\\"y\\\":0.5597005375309391,\\\"highlighted\\\":false},{\\\"x\\\":0.3365074749955557,\\\"y\\\":0.6076201622338966,\\\"highlighted\\\":false},{\\\"x\\\":0.3189020559617375,\\\"y\\\":0.35938667690686077,\\\"highlighted\\\":false},{\\\"x\\\":0.6634434660802881,\\\"y\\\":0.627109436647994,\\\"highlighted\\\":false},{\\\"x\\\":0.7567427823191606,\\\"y\\\":0.3196802409162543,\\\"highlighted\\\":false},{\\\"x\\\":0.8208569029648533,\\\"y\\\":0.65848825171457,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"}]", + null, + "[{\"x\":200,\"y\":240},{\"x\":304,\"y\":240}]", + 656, + 480, + "None", + {}, + "", + null, + null, + { + "on": true, + "name": "Spline 1", + "interpolation": "basis", + "repeat": 1, + "offset": 6, + "a_pause": 0, + "z_pause": 0, + "easing": "in_out", + "driven": false, + "_drivenConfig": { + "driver": "", + "rotate": 0, + "d_scale": 1 + }, + "easingConfig": { + "path": "full", + "strength": 1 + }, + "scale": 1.84, + "points_store": "[{\"x\":0.16734756890663047,\"y\":0.8291453830740663,\"highlighted\":false},{\"x\":0.40826350018417734,\"y\":0.5354926052428199,\"highlighted\":false},{\"x\":0.44699653146644214,\"y\":0.926485751402128,\"highlighted\":true,\"fix\":null},{\"x\":0.7060983180155901,\"y\":0.5176323253815309,\"highlighted\":false},{\"x\":0.7201990955148635,\"y\":0.9296307777561326,\"highlighted\":true,\"fix\":null},{\"x\":1.0321787976862866,\"y\":0.5585176679835905,\"highlighted\":false},{\"x\":1.0550925611226054,\"y\":0.9453559095261559,\"highlighted\":false}]", + "coordinates": "[]" + }, + { + "on": true, + "name": "Spline 1_1", + "interpolation": "basis", + "repeat": 1, + "offset": 0, + "a_pause": 0, + "z_pause": 0, + "easing": "in_out", + "driven": false, + "_drivenConfig": { + "driver": "", + "rotate": 0, + "d_scale": 1 + }, + "easingConfig": { + "path": "full", + "strength": 1 + }, + "scale": 1.89, + "points_store": "[{\"x\":0.49342522075763895,\"y\":0.6083132461402964,\"highlighted\":false},{\"x\":0.6752187518114265,\"y\":0.49242980482164167,\"highlighted\":false},{\"x\":0.6939596823385212,\"y\":0.7908319550438878,\"highlighted\":true},{\"x\":0.8999363806551236,\"y\":0.534384963040345,\"highlighted\":false},{\"x\":0.9064718018990809,\"y\":0.8072868674994239,\"highlighted\":true},{\"x\":1.0802300820658168,\"y\":0.5511732979852062,\"highlighted\":false},{\"x\":1.096043389626622,\"y\":0.8181391373940944,\"highlighted\":false}]", + "coordinates": "[]" + }, + { + "on": true, + "name": "Spline 3", + "interpolation": "points", + "repeat": 1, + "offset": 0, + "a_pause": 0, + "z_pause": 0, + "easing": "in_out", + "driven": false, + "_drivenConfig": { + "driver": "", + "rotate": 0, + "d_scale": 1 + }, + "easingConfig": { + "path": "full", + "strength": 1 + }, + "scale": 1.01, + "points_store": "[{\"x\":0.1825084381354701,\"y\":0.5597005375309391,\"highlighted\":false},{\"x\":0.3365074749955557,\"y\":0.6076201622338966,\"highlighted\":false},{\"x\":0.3189020559617375,\"y\":0.35938667690686077,\"highlighted\":false},{\"x\":0.6634434660802881,\"y\":0.627109436647994,\"highlighted\":false},{\"x\":0.7567427823191606,\"y\":0.3196802409162543,\"highlighted\":false},{\"x\":0.8208569029648533,\"y\":0.65848825171457,\"highlighted\":false}]", + "coordinates": "[]" + } + ] + }, + { + "id": 109, + "type": "ImageResizeKJv2", + "pos": [ + -67.44595217385478, + 383.44788283677536 ], "size": [ 270, - 130 + 336.0000305175781 + ], + "flags": { + "collapsed": true + }, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 168 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 292 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 293 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 215, + 488 + ] + }, + { + "name": "width", + "type": "INT", + "links": [] + }, + { + "name": "height", + "type": "INT", + "links": [] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": { + "width": true, + "height": true + }, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 480, + 832, + "lanczos", + "resize", + "0,0,0", + "center", + 16, + "cpu" + ] + }, + { + "id": 270, + "type": "DrawShapeOnPath", + "pos": [ + -73.13712058134249, + 432.67323582903435 + ], + "size": [ + 270, + 358 + ], + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "bg_image", + "type": "IMAGE", + "link": 500 + }, + { + "name": "coordinates", + "type": "STRING", + "link": 501 + }, + { + "name": "frames", + "shape": 7, + "type": "INT", + "link": 502 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 504, + 510 + ] + }, + { + "name": "mask", + "type": "MASK", + "links": null + }, + { + "name": "output_coordinates", + "type": "STRING", + "links": null + }, + { + "name": "preview", + "type": "IMAGE", + "links": [ + 511 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "7f2c53a50344a37df99e3bf83e254ce18a170c72", + "Node name for S&R": "DrawShapeOnPath", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + "circle", + 40, + 40, + "white", + "black", + 15.199951171875, + 1, + 0, + 0, + "black", + true + ] + }, + { + "id": 103, + "type": "WanVideoModelLoader", + "pos": [ + -702.2020263671875, + -1021.4868774414062 + ], + "size": [ + 672.8318481445312, + 338 ], "flags": {}, "order": 28, "mode": 0, "inputs": [ { - "name": "total_frames", - "type": "INT", - "widget": { - "name": "total_frames" - }, - "link": 367 + "name": "compile_args", + "shape": 7, + "type": "WANCOMPILEARGS", + "link": 161 + }, + { + "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": "path_frame_config", - "type": "PATH_FRAME_CONFIG", + "name": "model", + "type": "WANVIDEOMODEL", + "slot_index": 0, "links": [ - 291 + 154 ] } ], "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "PathFrameConfig", + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoModelLoader", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", "widget_ue_connectable": {}, @@ -2389,25 +2852,430 @@ } }, "widgets_values": [ - 61, - "ease_in_out", - "each", - 1 + "wan_2.2\\Wan2_2-I2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors", + "fp16_fast", + "fp8_e4m3fn_scaled", + "offload_device", + "sageattn", + "default" + ], + "color": "#223", + "bgcolor": "#335" + }, + { + "id": 275, + "type": "WanVideoPowerLoraLoader", + "pos": [ + 27.568278305438284, + -667.1918422136293 + ], + "size": [ + 480, + 185.326171875 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "prev_lora", + "shape": 7, + "type": "WANVIDLORA", + "link": null + }, + { + "name": "blocks", + "shape": 7, + "type": "SELECTEDBLOCKS", + "link": null + } + ], + "outputs": [ + { + "name": "selected_lora", + "type": "WANVIDLORA", + "links": [ + 512 + ] + }, + { + "name": "low_lora", + "type": "WANVIDLORA", + "links": [] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", + "Node name for S&R": "WanVideoPowerLoraLoader", + "Show Strengths": "Single Strength", + "low_mem_load": true, + "merge_loras": false, + "overwrite_duplicates": false, + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + {}, + {}, + { + "type": "PowerLoraLoaderHeaderWidget" + }, + { + "on": true, + "lora": "wan_22_lighting\\old\\Wan2.2-Lightning_I2V-A14B-4steps-lora_LOW_fp16.safetensors", + "strength": 1, + "strengthTwo": null, + "low_strength": 1, + "is_low": false, + "low_variant_name": null + }, + {}, + "" ] }, { - "id": 63, + "id": 156, + "type": "WanVideoPowerLoraLoader", + "pos": [ + 27.568278305438284, + -1056.4539200873703 + ], + "size": [ + 480, + 185.326171875 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "prev_lora", + "shape": 7, + "type": "WANVIDLORA", + "link": null + }, + { + "name": "blocks", + "shape": 7, + "type": "SELECTEDBLOCKS", + "link": null + } + ], + "outputs": [ + { + "name": "selected_lora", + "type": "WANVIDLORA", + "links": [ + 276 + ] + }, + { + "name": "low_lora", + "type": "WANVIDLORA", + "links": [] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", + "Node name for S&R": "WanVideoPowerLoraLoader", + "Show Strengths": "Single Strength", + "low_mem_load": true, + "merge_loras": false, + "overwrite_duplicates": false, + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + {}, + {}, + { + "type": "PowerLoraLoaderHeaderWidget" + }, + { + "on": true, + "lora": "wan_22_lighting\\Wan22_A14B_T2V_HIGH_Lightning_4steps_lora_250928_fp16.safetensors", + "strength": 1, + "strengthTwo": null, + "low_strength": 1, + "is_low": true, + "low_variant_name": "wan_22_lighting\\Wan22_A14B_T2V_LOW_Lightning_4steps_lora_250928_fp16.safetensors" + }, + {}, + "" + ] + }, + { + "id": 266, + "type": "Reroute", + "pos": [ + 2129.175442774385, + -785.4756154706 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 40, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 491 + } + ], + "outputs": [ + { + "name": "", + "type": "WANVIDEOMODEL", + "links": [ + 492 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.2.2", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 197, + "type": "WanVideoCacheSamples", + "pos": [ + 1670.058484860804, + -800.9086984500995 + ], + "size": [ + 305.3199157714844, + 82 + ], + "flags": {}, + "order": 47, + "mode": 0, + "inputs": [ + { + "name": "samples", + "shape": 7, + "type": "LATENT", + "link": 354 + } + ], + "outputs": [ + { + "name": "samples", + "type": "LATENT", + "links": [ + 355 + ] + } + ], + "properties": { + "aux_id": "ComfyUI-WanVideoWrapper_QQ", + "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", + "Node name for S&R": "WanVideoCacheSamples", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "widgets_values": [ + "cache_data", + "wanvideo_cached_samples.pt" + ] + }, + { + "id": 272, + "type": "Fast Groups Bypasser (rgthree)", + "pos": [ + 1245.8731691432868, + -800.9086984500995 + ], + "size": [ + 312.3485107421875, + 96.41674041748047 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "OPT_CONNECTION", + "type": "*", + "links": null + } + ], + "properties": { + "matchColors": "cyan", + "matchTitle": "", + "showNav": true, + "showAllGraphs": true, + "sort": "position", + "customSortAlphabet": "", + "toggleRestriction": "default", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.2.2" + } + }, + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 276, "type": "WanVideoImageToVideoEncode", "pos": [ - 753.6688842773438, - 524.0946655273438 + 755.5197996516134, + 955.3758345214882 ], "size": [ 293.7520751953125, 390 ], "flags": {}, - "order": 41, + "order": 43, + "mode": 0, + "inputs": [ + { + "name": "vae", + "shape": 7, + "type": "WANVAE", + "link": 513 + }, + { + "name": "clip_embeds", + "shape": 7, + "type": "WANVIDIMAGE_CLIPEMBEDS", + "link": null + }, + { + "name": "start_image", + "shape": 7, + "type": "IMAGE", + "link": 514 + }, + { + "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": 515 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 516 + }, + { + "name": "num_frames", + "type": "INT", + "widget": { + "name": "num_frames" + }, + "link": 517 + } + ], + "outputs": [ + { + "name": "image_embeds", + "type": "WANVIDIMAGE_EMBEDS", + "links": [ + 518 + ] + } + ], + "properties": { + "ue_properties": { + "version": "7.2.2", + "widget_ue_connectable": { + "width": true, + "height": true, + "num_frames": true + }, + "input_ue_unconnectable": {} + }, + "aux_id": "ComfyUI-WanVideoWrapper", + "Node name for S&R": "WanVideoImageToVideoEncode", + "ver": "d20baf00247fd06553fdc9253e18732244e54172", + "cnr_id": "ComfyUI-WanVideoWrapper" + }, + "widgets_values": [ + 832, + 480, + 81, + 0.02, + 1, + 1.0000000000000002, + true, + false, + false + ], + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 63, + "type": "WanVideoImageToVideoEncode", + "pos": [ + 755.5197996516134, + 521.6363868052545 + ], + "size": [ + 293.7520751953125, + 390 + ], + "flags": {}, + "order": 42, "mode": 0, "inputs": [ { @@ -2511,515 +3379,62 @@ 832, 480, 81, - 0.04, + 0.02, 1, 1.0000000000000002, true, - true, + false, false ], "color": "#2a363b", "bgcolor": "#3f5159" }, { - "id": 156, - "type": "WanVideoPowerLoraLoader", + "id": 145, + "type": "WanVideoAddControlEmbeds", "pos": [ - -410.83416748046875, - -1567.4847412109375 + 755.5197996516134, + 294.4811096191406 ], "size": [ - 480, - 185.326171875 + 296.7886657714844, + 172.00003051757812 ], "flags": {}, - "order": 14, + "order": 44, "mode": 0, "inputs": [ { - "name": "prev_lora", - "shape": 7, - "type": "WANVIDLORA", - "link": null + "name": "embeds", + "type": "WANVIDIMAGE_EMBEDS", + "link": 247 }, { - "name": "blocks", + "name": "latents", "shape": 7, - "type": "SELECTEDBLOCKS", + "type": "LATENT", + "link": 246 + }, + { + "name": "fun_ref_image", + "shape": 7, + "type": "LATENT", "link": null } ], "outputs": [ { - "name": "selected_lora", - "type": "WANVIDLORA", + "name": "image_embeds", + "type": "WANVIDIMAGE_EMBEDS", "links": [ - 276 - ] - }, - { - "name": "low_lora", - "type": "WANVIDLORA", - "links": [] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "WanVideoPowerLoraLoader", - "Show Strengths": "Single Strength", - "low_mem_load": true, - "merge_loras": false, - "overwrite_duplicates": false, - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - {}, - {}, - { - "type": "PowerLoraLoaderHeaderWidget" - }, - { - "on": true, - "lora": "wan_22_lighting\\Wan22_A14B_T2V_HIGH_Lightning_4steps_lora_250928_fp16.safetensors", - "strength": 1, - "strengthTwo": null, - "low_strength": 1, - "is_low": true, - "low_variant_name": "wan_22_lighting\\Wan22_A14B_T2V_LOW_Lightning_4steps_lora_250928_fp16.safetensors" - }, - {}, - "" - ] - }, - { - "id": 206, - "type": "Fast Groups Bypasser (rgthree)", - "pos": [ - 750.872314453125, - -344.28887939453125 - ], - "size": [ - 312.3485107421875, - 96.41674041748047 - ], - "flags": {}, - "order": 15, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "OPT_CONNECTION", - "type": "*", - "links": null - } - ], - "properties": { - "matchColors": "cyan", - "matchTitle": "", - "showNav": true, - "showAllGraphs": true, - "sort": "position", - "customSortAlphabet": "", - "toggleRestriction": "default", - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "color": "#233", - "bgcolor": "#355" - }, - { - "id": 76, - "type": "GetImageSizeAndCount", - "pos": [ - 289.97564697265625, - 454.52642822265625 - ], - "size": [ - 277.20001220703125, - 86 - ], - "flags": { - "collapsed": true - }, - "order": 39, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 454 - } - ], - "outputs": [ - { - "name": "image", - "type": "IMAGE", - "links": [ - 90 - ] - }, - { - "label": "848 width", - "name": "width", - "type": "INT", - "links": [ - 172, - 326 - ] - }, - { - "label": "464 height", - "name": "height", - "type": "INT", - "links": [ - 192, - 327 - ] - }, - { - "label": "53 count", - "name": "count", - "type": "INT", - "links": [ - 120, - 328 - ] - } - ], - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "52c2e31a903fec2dd654fb614ea82ba2757d5028", - "Node name for S&R": "GetImageSizeAndCount", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [] - }, - { - "id": 124, - "type": "Reroute", - "pos": [ - 289.97564697265625, - 562.3223876953125 - ], - "size": [ - 75, - 26 - ], - "flags": {}, - "order": 31, - "mode": 0, - "inputs": [ - { - "name": "", - "type": "*", - "link": 215 - } - ], - "outputs": [ - { - "name": "", - "type": "IMAGE", - "links": [ - 274, - 325 - ] - } - ], - "properties": { - "showOutputText": false, - "horizontal": false, - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - } - }, - { - "id": 85, - "type": "GetNode", - "pos": [ - 359.9054260253906, - 530.943359375 - ], - "size": [ - 210, - 58 - ], - "flags": { - "collapsed": true - }, - "order": 16, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVAE", - "type": "WANVAE", - "links": [ - 123, - 214, - 324 - ] - } - ], - "title": "Get_VAE", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "VAE" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 192, - "type": "WanVideoScheduler", - "pos": [ - 2097.3115234375, - 779.0062866210938 - ], - "size": [ - 266.5203857421875, - 433.6170654296875 - ], - "flags": {}, - "order": 22, - "mode": 0, - "inputs": [ - { - "name": "sigmas", - "shape": 7, - "type": "SIGMAS", - "link": null - }, - { - "name": "start_step", - "type": "INT", - "widget": { - "name": "start_step" - }, - "link": 344 - } - ], - "outputs": [ - { - "name": "sigmas", - "type": "SIGMAS", - "links": [ - 338 - ] - }, - { - "name": "steps", - "type": "INT", - "links": [ - 339 - ] - }, - { - "name": "shift", - "type": "FLOAT", - "links": [ - 340 - ] - }, - { - "name": "scheduler", - "type": "COMBO", - "links": [ - 341 - ] - }, - { - "name": "start_step", - "type": "INT", - "links": [ - 342 - ] - }, - { - "name": "end_step", - "type": "INT", - "links": [ - 343 + 248 ] } ], "properties": { "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoScheduler", - "ver": "3de291dbca23db4e108f30b7419996485b1c49d1", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "unipc", - 6, - 5, - 0, - -1, - "" - ] - }, - { - "id": 190, - "type": "WanVideoScheduler", - "pos": [ - 1245.93115234375, - 770.2638549804688 - ], - "size": [ - 266.5203857421875, - 433.6170654296875 - ], - "flags": {}, - "order": 21, - "mode": 0, - "inputs": [ - { - "name": "sigmas", - "shape": 7, - "type": "SIGMAS", - "link": null - }, - { - "name": "end_step", - "type": "INT", - "widget": { - "name": "end_step" - }, - "link": 337 - } - ], - "outputs": [ - { - "name": "sigmas", - "type": "SIGMAS", - "links": [ - 331 - ] - }, - { - "name": "steps", - "type": "INT", - "links": [ - 332 - ] - }, - { - "name": "shift", - "type": "FLOAT", - "links": [ - 333 - ] - }, - { - "name": "scheduler", - "type": "COMBO", - "links": [ - 334 - ] - }, - { - "name": "start_step", - "type": "INT", - "links": [ - 335 - ] - }, - { - "name": "end_step", - "type": "INT", - "links": [ - 336 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoScheduler", - "ver": "3de291dbca23db4e108f30b7419996485b1c49d1", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "unipc", - 8, - 5, - 0, - -1, - "Sigmas Plot" - ] - }, - { - "id": 126, - "type": "WanVideoTextEncodeCached", - "pos": [ - 592.6211547851562, - -193.55918884277344 - ], - "size": [ - 474.5360107421875, - 366.7752685546875 - ], - "flags": {}, - "order": 17, - "mode": 0, - "inputs": [ - { - "name": "extender_args", - "shape": 7, - "type": "WANVIDEOPROMPTEXTENDER_ARGS", - "link": null - } - ], - "outputs": [ - { - "name": "text_embeds", - "type": "WANVIDEOTEXTEMBEDS", - "links": [ - 235 - ] - }, - { - "name": "negative_text_embeds", - "type": "WANVIDEOTEXTEMBEDS", - "links": null - }, - { - "name": "positive_prompt", - "type": "STRING", - "links": null - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper", - "Node name for S&R": "WanVideoTextEncodeCached", - "ver": "bbf14ec9e9965c1a8582eea02b50913e79a036d0", + "Node name for S&R": "WanVideoAddControlEmbeds", + "ver": "64a0c036732ce2f85caf9ec933a51bf802f8b645", "cnr_id": "ComfyUI-WanVideoWrapper", "ue_properties": { "version": "7.2.2", @@ -3028,432 +3443,8 @@ } }, "widgets_values": [ - "umt5-xxl-enc-bf16.safetensors", - "bf16", - "multiple rabbits in snow , one starts jumping and another one follows as other looks around", - "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", - "disabled", - true, - "gpu" - ], - "color": "#432", - "bgcolor": "#653" - }, - { - "id": 205, - "type": "GetNode", - "pos": [ - 2106.88720703125, - -423.0129699707031 - ], - "size": [ - 210, - 50 - ], - "flags": { - "collapsed": true - }, - "order": 18, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "WANVIDEOMODEL", - "type": "WANVIDEOMODEL", - "links": [ - 361 - ] - } - ], - "title": "Get_LOW", - "properties": { - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "LOW" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 109, - "type": "ImageResizeKJv2", - "pos": [ - -305.1083068847656, - 377.48614501953125 - ], - "size": [ - 270, - 336.0000305175781 - ], - "flags": { - "collapsed": true - }, - "order": 27, - "mode": 0, - "inputs": [ - { - "name": "image", - "type": "IMAGE", - "link": 168 - }, - { - "name": "mask", - "shape": 7, - "type": "MASK", - "link": null - }, - { - "name": "width", - "type": "INT", - "widget": { - "name": "width" - }, - "link": 292 - }, - { - "name": "height", - "type": "INT", - "widget": { - "name": "height" - }, - "link": 293 - } - ], - "outputs": [ - { - "name": "IMAGE", - "type": "IMAGE", - "links": [ - 215, - 348 - ] - }, - { - "name": "width", - "type": "INT", - "links": [] - }, - { - "name": "height", - "type": "INT", - "links": [] - }, - { - "name": "mask", - "type": "MASK", - "links": null - } - ], - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", - "Node name for S&R": "ImageResizeKJv2", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": { - "width": true, - "height": true - }, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 480, - 832, - "lanczos", - "resize", - "0,0,0", - "center", - 16, - "cpu", - "Output: 1 x 848 x 464 | 4.50MB" - ] - }, - { - "id": 153, - "type": "INTConstant", - "pos": [ - -425.4430236816406, - 253.87045288085938 - ], - "size": [ - 235.78514099121094, - 76.51242065429688 - ], - "flags": {}, - "order": 19, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "value", - "type": "INT", - "links": [ - 292, - 293 - ] - } - ], - "title": "Width", - "properties": { - "cnr_id": "comfyui-kjnodes", - "ver": "87d0cf42db7d59992daba4d58a83655b5b359f44", - "Node name for S&R": "INTConstant", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - 854 - ], - "color": "#222", - "bgcolor": "#000", - "shape": 1 - }, - { - "id": 210, - "type": "WanFrames", - "pos": [ - -425.4430236816406, - 138.2628936767578 - ], - "size": [ - 236.44627380371094, - 86.4462890625 - ], - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [], - "outputs": [ - { - "name": "frame_count", - "type": "INT", - "links": [ - 367 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "0a2536acb32c76369fa019dfcadd77cb92650373", - "Node name for S&R": "WanFrames", - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - } - }, - "widgets_values": [ - 52 - ], - "color": "#222", - "bgcolor": "#000", - "shape": 1 - }, - { - "id": 159, - "type": "DrawShapeOnPath", - "pos": [ - -401.82037353515625, - 430.89276123046875 - ], - "size": [ - 273.4234313964844, - 314 - ], - "flags": {}, - "order": 35, - "mode": 0, - "inputs": [ - { - "name": "bg_image", - "type": "IMAGE", - "link": 347 - }, - { - "name": "coordinates", - "type": "STRING", - "link": 349 - }, - { - "name": "path_frame_config", - "type": "PATH_FRAME_CONFIG", - "link": 291 - } - ], - "outputs": [ - { - "name": "image", - "type": "IMAGE", - "links": [ - 453, - 454 - ] - }, - { - "name": "mask", - "type": "MASK", - "links": null - }, - { - "name": "output_coordinates", - "type": "STRING", - "links": null - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "DrawShapeOnPath", - "ue_properties": { - "version": "7.2.2", - "widget_ue_connectable": {}, - "input_ue_unconnectable": {} - } - }, - "widgets_values": [ - "circle", - 47, - 47, - "white", - "black", - 14.7999267578125, - 1, 0, - 0, - "black" - ] - }, - { - "id": 194, - "type": "PowerSplineEditor", - "pos": [ - -1671.7747802734375, - 412.9177551269531 - ], - "size": [ - 1245, - 724 - ], - "flags": {}, - "order": 32, - "mode": 0, - "inputs": [ - { - "name": "bg_image", - "shape": 7, - "type": "IMAGE", - "link": 348 - }, - { - "name": "coord_in", - "shape": 7, - "type": "STRING", - "link": null - } - ], - "outputs": [ - { - "name": "bg_image", - "type": "IMAGE", - "links": [ - 347 - ] - }, - { - "name": "coord_out", - "type": "STRING", - "links": [ - 349 - ] - } - ], - "properties": { - "aux_id": "ComfyUI-WanVideoWrapper_QQ", - "ver": "9d9c90632881180cb5eaf3ab380b174e057bb8b7", - "Node name for S&R": "PowerSplineEditor", - "userAdjustedSize": true, - "ue_properties": { - "widget_ue_connectable": {}, - "input_ue_unconnectable": {}, - "version": "7.2.2" - }, - "bgImageDims": { - "width": 1203.199951171875, - "height": 480 - }, - "userAdjustedDims": true - }, - "widgets_values": [ - "[{\"on\":true,\"name\":\"R1\",\"interpolation\":\"basis\",\"repeat\":1,\"offset\":7,\"a_pause\":0,\"z_pause\":0,\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"smooth\":0},\"points_store\":\"[{\\\"x\\\":0.18661568782148596,\\\"y\\\":0.8154314450701595,\\\"highlighted\\\":false},{\\\"x\\\":0.4125745865855726,\\\"y\\\":0.621655868864798,\\\"highlighted\\\":false},{\\\"x\\\":0.47710998291015577,\\\"y\\\":0.8866449999999994,\\\"highlighted\\\":true},{\\\"x\\\":0.7329039829101558,\\\"y\\\":0.5720449999999994,\\\"highlighted\\\":false},{\\\"x\\\":0.776947982910156,\\\"y\\\":0.8957199999999992,\\\"highlighted\\\":true},{\\\"x\\\":1.0330639999999993,\\\"y\\\":0.4964199999999996,\\\"highlighted\\\":false},{\\\"x\\\":1.1414799999999998,\\\"y\\\":0.9259699999999993,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"R1_1\",\"interpolation\":\"basis\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"smooth\":0},\"points_store\":\"[{\\\"x\\\":0.5099088236705426,\\\"y\\\":0.6585989450701595,\\\"highlighted\\\":false},{\\\"x\\\":0.685776223879497,\\\"y\\\":0.4600505733091496,\\\"highlighted\\\":false},{\\\"x\\\":0.737030807875518,\\\"y\\\":0.7053145329871388,\\\"highlighted\\\":true},{\\\"x\\\":0.9220980159600493,\\\"y\\\":0.5260439971697808,\\\"highlighted\\\":false},{\\\"x\\\":0.9564740796537244,\\\"y\\\":0.7029814715203317,\\\"highlighted\\\":true},{\\\"x\\\":1.1450908958875303,\\\"y\\\":0.4698611760598392,\\\"highlighted\\\":false},{\\\"x\\\":1.225634588230743,\\\"y\\\":0.7889795999643084,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"},{\"on\":true,\"name\":\"Spline 11\",\"interpolation\":\"points\",\"repeat\":1,\"offset\":0,\"a_pause\":0,\"z_pause\":0,\"driven\":false,\"_drivenConfig\":{\"driver\":\"\",\"rotate\":0,\"smooth\":0},\"points_store\":\"[{\\\"x\\\":0.3349824215909135,\\\"y\\\":0.5876327103082111,\\\"highlighted\\\":false},{\\\"x\\\":0.18069865988859352,\\\"y\\\":0.5122402116442416,\\\"highlighted\\\":false},{\\\"x\\\":0.31267956236699,\\\"y\\\":0.33575248169945343,\\\"highlighted\\\":false},{\\\"x\\\":0.753462735849056,\\\"y\\\":0.2871999999999998,\\\"highlighted\\\":false}]\",\"coordinates\":\"[]\"}]", - null, - "[{\"x\":200,\"y\":240},{\"x\":304,\"y\":240}]", - 1200, - 480, - {}, - "", - { - "type": "PowerSplineHeaderWidget" - }, - { - "on": true, - "name": "R1", - "interpolation": "basis", - "repeat": 1, - "offset": 7, - "a_pause": 0, - "z_pause": 0, - "driven": false, - "_drivenConfig": { - "driver": "", - "rotate": 0, - "smooth": 0 - }, - "points_store": "[{\"x\":0.18661568782148596,\"y\":0.8154314450701595,\"highlighted\":false},{\"x\":0.4125745865855726,\"y\":0.621655868864798,\"highlighted\":false},{\"x\":0.47710998291015577,\"y\":0.8866449999999994,\"highlighted\":true},{\"x\":0.7329039829101558,\"y\":0.5720449999999994,\"highlighted\":false},{\"x\":0.776947982910156,\"y\":0.8957199999999992,\"highlighted\":true},{\"x\":1.0330639999999993,\"y\":0.4964199999999996,\"highlighted\":false},{\"x\":1.1414799999999998,\"y\":0.9259699999999993,\"highlighted\":false}]", - "coordinates": "[]" - }, - { - "on": true, - "name": "R1_1", - "interpolation": "basis", - "repeat": 1, - "offset": 0, - "a_pause": 0, - "z_pause": 0, - "driven": false, - "_drivenConfig": { - "driver": "", - "rotate": 0, - "smooth": 0 - }, - "points_store": "[{\"x\":0.5099088236705426,\"y\":0.6585989450701595,\"highlighted\":false},{\"x\":0.685776223879497,\"y\":0.4600505733091496,\"highlighted\":false},{\"x\":0.737030807875518,\"y\":0.7053145329871388,\"highlighted\":true},{\"x\":0.9220980159600493,\"y\":0.5260439971697808,\"highlighted\":false},{\"x\":0.9564740796537244,\"y\":0.7029814715203317,\"highlighted\":true},{\"x\":1.1450908958875303,\"y\":0.4698611760598392,\"highlighted\":false},{\"x\":1.225634588230743,\"y\":0.7889795999643084,\"highlighted\":false}]", - "coordinates": "[]" - }, - { - "on": true, - "name": "Spline 11", - "interpolation": "points", - "repeat": 1, - "offset": 0, - "a_pause": 0, - "z_pause": 0, - "driven": false, - "_drivenConfig": { - "driver": "", - "rotate": 0, - "smooth": 0 - }, - "points_store": "[{\"x\":0.3349824215909135,\"y\":0.5876327103082111,\"highlighted\":false},{\"x\":0.18069865988859352,\"y\":0.5122402116442416,\"highlighted\":false},{\"x\":0.31267956236699,\"y\":0.33575248169945343,\"highlighted\":false},{\"x\":0.753462735849056,\"y\":0.2871999999999998,\"highlighted\":false}]", - "coordinates": "[]" - } + 1 ] } ], @@ -3682,14 +3673,6 @@ 0, "IMAGE" ], - [ - 291, - 161, - 0, - 159, - 2, - "PATH_FRAME_CONFIG" - ], [ 292, 153, @@ -3706,190 +3689,6 @@ 3, "INT" ], - [ - 324, - 85, - 0, - 189, - 0, - "WANVAE" - ], - [ - 325, - 124, - 0, - 189, - 2, - "IMAGE" - ], - [ - 326, - 76, - 1, - 189, - 8, - "INT" - ], - [ - 327, - 76, - 2, - 189, - 9, - "INT" - ], - [ - 328, - 76, - 3, - 189, - 10, - "INT" - ], - [ - 329, - 189, - 0, - 100, - 1, - "WANVIDIMAGE_EMBEDS" - ], - [ - 331, - 190, - 0, - 27, - 11, - "SIGMAS" - ], - [ - 332, - 190, - 1, - 27, - 17, - "INT" - ], - [ - 333, - 190, - 2, - 27, - 18, - "FLOAT" - ], - [ - 334, - 190, - 3, - 27, - 20, - "COMBO" - ], - [ - 335, - 190, - 4, - 27, - 21, - "INT" - ], - [ - 336, - 190, - 5, - 27, - 22, - "INT" - ], - [ - 337, - 191, - 0, - 190, - 1, - "INT" - ], - [ - 338, - 192, - 0, - 100, - 11, - "SIGMAS" - ], - [ - 339, - 192, - 1, - 100, - 17, - "INT" - ], - [ - 340, - 192, - 2, - 100, - 18, - "FLOAT" - ], - [ - 341, - 192, - 3, - 100, - 19, - "COMBO" - ], - [ - 342, - 192, - 4, - 100, - 20, - "INT" - ], - [ - 343, - 192, - 5, - 100, - 21, - "INT" - ], - [ - 344, - 193, - 0, - 192, - 1, - "INT" - ], - [ - 347, - 194, - 0, - 159, - 0, - "IMAGE" - ], - [ - 348, - 109, - 0, - 194, - 0, - "IMAGE" - ], - [ - 349, - 194, - 1, - 159, - 1, - "STRING" - ], [ 350, 86, @@ -3935,7 +3734,7 @@ 198, 0, 27, - 19, + 18, "INT" ], [ @@ -3947,68 +3746,212 @@ "WANVAE" ], [ - 358, + 466, + 204, + 0, + 100, + 18, + "INT" + ], + [ + 472, + 253, + 0, + 251, + 0, + "*" + ], + [ + 473, + 254, + 0, + 252, + 0, + "*" + ], + [ + 477, + 259, + 0, + 27, + 17, + "INT" + ], + [ + 478, + 259, + 0, + 100, + 17, + "INT" + ], + [ + 480, + 260, + 0, + 27, + 19, + "INT" + ], + [ + 481, + 260, + 0, + 100, + 19, + "INT" + ], + [ + 488, + 109, + 0, + 264, + 0, + "IMAGE" + ], + [ + 489, 97, 0, - 201, + 265, 0, "*" ], [ - 359, - 105, - 0, - 202, - 0, - "*" - ], - [ - 360, - 203, + 490, + 265, 0, 27, 0, "WANVIDEOMODEL" ], [ - 361, - 205, + 491, + 105, + 0, + 266, + 0, + "*" + ], + [ + 492, + 266, 0, 100, 0, "WANVIDEOMODEL" ], [ - 367, + 494, 210, 0, - 161, - 0, + 264, + 2, "INT" ], [ - 450, - 245, + 500, + 264, 0, - 105, - 1, - "WANVIDLORA" + 270, + 0, + "IMAGE" ], [ - 453, - 159, + 501, + 264, + 1, + 270, + 1, + "STRING" + ], + [ + 502, + 264, + 2, + 270, + 2, + "INT" + ], + [ + 504, + 270, + 0, + 76, + 0, + "IMAGE" + ], + [ + 510, + 270, 0, 82, 0, "IMAGE" ], [ - 454, - 159, - 0, - 76, + 511, + 270, + 3, + 274, 0, "IMAGE" + ], + [ + 512, + 275, + 0, + 105, + 1, + "WANVIDLORA" + ], + [ + 513, + 85, + 0, + 276, + 0, + "WANVAE" + ], + [ + 514, + 124, + 0, + 276, + 2, + "IMAGE" + ], + [ + 515, + 76, + 1, + 276, + 8, + "INT" + ], + [ + 516, + 76, + 2, + 276, + 9, + "INT" + ], + [ + 517, + 76, + 3, + 276, + 10, + "INT" + ], + [ + 518, + 276, + 0, + 100, + 1, + "WANVIDIMAGE_EMBEDS" ] ], "groups": [ @@ -4018,8 +3961,8 @@ "bounding": [ 247.32363891601562, 206.1204376220703, - 823.7431030273438, - 1044.326904296875 + 866.1505234242582, + 1172.4255256399767 ], "color": "#A88", "font_size": 24, @@ -4031,8 +3974,8 @@ "bounding": [ 1235.93115234375, -670.9139404296875, - 834.850341796875, - 1999.159423828125 + 842.37060546875, + 1324.3184814453125 ], "color": "#8AA", "font_size": 24, @@ -4044,8 +3987,8 @@ "bounding": [ 2087.3115234375, -672.6325073242188, - 1052.597900390625, - 2002.5804443359375 + 1037.7220458984375, + 1326.4908447265625 ], "color": "#8AA", "font_size": 24, @@ -4055,13 +3998,13 @@ "config": {}, "extra": { "ds": { - "scale": 0.350493899481393, + "scale": 0.37974983358325354, "offset": [ - 1738.4172089656654, - 968.0130940234552 + 1488.3143373330145, + 897.4481957879357 ] }, - "frontendVersion": "1.27.10", + "frontendVersion": "1.29.1", "node_versions": { "ComfyUI-WanVideoWrapper": "5a2383621a05825d0d0437781afcb8552d9590fd", "comfy-core": "0.3.26", diff --git a/nodes/draw_shapes.py b/nodes/draw_shapes.py index 93822ac..eb59611 100644 --- a/nodes/draw_shapes.py +++ b/nodes/draw_shapes.py @@ -48,9 +48,6 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in ), "bg_image": ("IMAGE",), "coordinates": ("STRING", {"forceInput": True}), - "easing_function": (["linear", "in", "out", "in_out", "out_in"], {"default": "in_out"}), - "easing_path": (["each", "full"], {"default": "full"}), - "easing_strength": ("FLOAT", {"default": 1.0, "min": 0.1, "max": 10.0, "step": 0.05}), "shape_width": ("INT", {"default": 40, "min": 2, "max": 1000, "step": 5}), "shape_height": ("INT", {"default": 40, "min": 2, "max": 1000, "step": 5}), "shape_color": ("STRING", {"default": 'white'}), @@ -82,7 +79,8 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in p_driver_path: Optional[Path] = None, p_coords_pause_frames: Tuple[int, int] = (0, 0), coords_driver_info_list: Optional[List[Optional[Dict[str, Any]]]] = None, - scales_list: Optional[List[float]] = None) -> Image.Image: + scales_list: Optional[List[float]] = None, + static_points_scale: float = 1.0) -> Image.Image: """ Draw one frame using PIL. This function is thread-safe and used by ThreadPoolExecutor in drawshapemask. @@ -121,6 +119,10 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in driver_offset_x = current_x - ref_x driver_offset_y = current_y - ref_y + # Apply scale to shape dimensions for static points using the dedicated parameter + static_width = float(shape_width) * static_points_scale + static_height = float(shape_height) * static_points_scale + # Draw each static point with driver offset applied for point in static_points: try: @@ -130,8 +132,8 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in continue if shape in ('circle', 'square'): - left_up_point = (location_x - current_width / 2.0, location_y - current_height / 2.0) - right_down_point = (location_x + current_width / 2.0, location_y + current_height / 2.0) + left_up_point = (location_x - static_width / 2.0, location_y - static_height / 2.0) + right_down_point = (location_x + static_width / 2.0, location_y + static_height / 2.0) two_points = [left_up_point, right_down_point] if shape == 'circle': @@ -146,9 +148,9 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in draw.rectangle(two_points, fill=shape_color) elif shape == 'triangle': - left = (location_x - current_width / 2.0, location_y + current_height / 2.0) - right = (location_x + current_width / 2.0, location_y + current_height / 2.0) - top = (location_x, location_y - current_height / 2.0) + left = (location_x - static_width / 2.0, location_y + static_height / 2.0) + right = (location_x + static_width / 2.0, location_y + static_height / 2.0) + top = (location_x, location_y - static_height / 2.0) poly_points = [top, left, right] if border_width > 0: try: @@ -871,7 +873,7 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in # ---------------------------- # Main Node Method # ---------------------------- - def drawshapemask(self, coordinates, bg_image, easing_function, easing_path, easing_strength, + def drawshapemask(self, coordinates, bg_image, shape_width, shape_height, shape_color, bg_color, blur_radius, shape, intensity, trailing=1.0, border_width=0, border_color='black', frames=None, preview_enabled=True): """ @@ -919,7 +921,10 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in static_points, p_driver_path_processed = self._scale_points_and_drivers(static_points, p_driver_path_raw, coord_width, coord_height, frame_width, frame_height) # Interpolate p_driver_path to total_frames and apply smoothing - # For p_coordinates, use the global parameters passed to the node + # For p_coordinates, use the easing parameters from metadata + easing_function = meta.get("easing_functions", "in_out") + easing_path = meta.get("easing_paths", "full") + easing_strength = meta.get("easing_strengths", 1.0) if p_coords_use_driver and p_driver_path_processed: p_driver_path_processed = self._process_p_driver_path(p_driver_path_processed, total_frames, p_driver_smooth, easing_function, easing_path, easing_strength) @@ -999,9 +1004,9 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in # ----- Build interpolated/resampled animated paths ----- # Handle different formats for easing parameters - could be single values, lists, or objects - easing_functions_meta = meta.get("easing_functions", easing_function) - easing_paths_meta = meta.get("easing_paths", easing_path) - easing_strengths_meta = meta.get("easing_strengths", easing_strength) + easing_functions_meta = meta.get("easing_functions", "in_out") + easing_paths_meta = meta.get("easing_paths", "full") + easing_strengths_meta = meta.get("easing_strengths", 1.0) processed_coords_list, path_pause_frames, coords_driver_info_list, scales_list = self._build_interpolated_paths( coords_list_raw, total_frames, @@ -1014,6 +1019,23 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in meta.get("scales", 1.0), coord_width, coord_height, frame_width, frame_height ) + + # Extract scale for static points (p_coordinates) from scales metadata + scales_meta = meta.get("scales", 1.0) + static_points_scale = 1.0 + if isinstance(scales_meta, dict): + # New format: {"p": [...], "c": [...]} where "p" is for static points + p_scales = scales_meta.get("p", [1.0]) + if isinstance(p_scales, list) and len(p_scales) > 0: + static_points_scale = float(p_scales[0]) + elif isinstance(p_scales, (int, float)): + static_points_scale = float(p_scales) + elif isinstance(scales_meta, (int, float)): + # Single value for both static and animated (fallback) + static_points_scale = float(scales_meta) + elif isinstance(scales_meta, list): + # List format: first value for static points + static_points_scale = float(scales_meta[0]) if scales_meta else 1.0 # Special cases: no animated coords but static points exist -> set batch size accordingly if not processed_coords_list: @@ -1072,6 +1094,15 @@ Locations are center locations. Allows coordinates outside the frame for 'fly-in )) try: + # Update args_list to include the static_points_scale parameter + updated_args_list = [] + for args in args_list: + # args is a tuple that includes all the parameters for _draw_single_frame_pil + # We need to add static_points_scale to the end + updated_args = args + (static_points_scale,) + updated_args_list.append(updated_args) + args_list = updated_args_list + with concurrent.futures.ThreadPoolExecutor() as executor: results = list(executor.map(lambda p: self._draw_single_frame_pil(*p), args_list)) pil_images = results diff --git a/web/power_spline_editor/graph_query.js b/web/power_spline_editor/graph_query.js index d8f28c2..6c946b1 100644 --- a/web/power_spline_editor/graph_query.js +++ b/web/power_spline_editor/graph_query.js @@ -190,6 +190,19 @@ function findConnectedSourceNode(currentNode, inputName) { target_slot: link.target_slot }); + // If the directly connected source node is not an image node, try the deep search approach + if (!isImageNode(sourceNode)) { + console.log('Direct source node is not an image node, trying deep search...'); + const deepResult = findDeepSourceNode(currentNode, inputName); + if (deepResult) { + console.log('Deep search found an image node:', { + sourceNodeId: deepResult.node.id, + sourceNodeType: deepResult.node.type + }); + return deepResult; + } + } + return { node: sourceNode, origin_slot: link.origin_slot, @@ -319,11 +332,40 @@ async function extractImageFromSourceNode(sourceNodeObj) { } break; + case 'ImageResizeKJv2': // Handle image processing nodes + case 'ImageScale': + case 'ImageScaleBy': + case 'ImageUpscale': + case 'ImageCrop': + // These nodes might pass through image data from their inputs + // Look for image widgets that might contain processed image data + if (sourceNode.widgets) { + for (const widget of sourceNode.widgets) { + if ((widget.type === 'image' || widget.name?.includes('image')) && widget.value) { + console.log(`Found image in ${sourceNode.type} widget:`, widget.value); + + if (typeof widget.value === 'string') { + if (widget.value.startsWith('data:') || widget.value.startsWith('http')) { + return widget.value; + } + return `/view?filename=${encodeURIComponent(widget.value)}&type=temp`; + } else if (typeof widget.value === 'object') { + if (widget.value.filename) { + return `/view?filename=${encodeURIComponent(widget.value.filename)}&type=temp`; + } + } + } + } + } + // Even if no direct image found in widgets, the node might still be connected + // to image data that can be accessed through other means + break; + default: // For other node types, try to find image-related widgets or properties if (sourceNode.widgets) { for (const widget of sourceNode.widgets) { - if ((widget.type === 'image' || widget.name.includes('image') || + if ((widget.type === 'image' || widget.name?.includes('image') || widget.type === 'img' || widget.type === 'file') && widget.value) { console.log(`Found potential image in ${sourceNode.type} widget:`, widget.value); @@ -428,16 +470,44 @@ async function getReferenceImageFromConnectedNode(currentNode) { console.log('Starting reference image query for node:', currentNode); // Step 1: Find the connected source node for ref_image input - const sourceNodeObj = findConnectedSourceNode(currentNode, 'ref_image'); + let sourceNodeObj = findConnectedSourceNode(currentNode, 'ref_image'); if (!sourceNodeObj) { - console.log('No source node found for ref_image input'); + console.log('No source node found for ref_image input, trying deep search...'); + // Try deep search as fallback + sourceNodeObj = findDeepSourceNode(currentNode, 'ref_image'); + if (sourceNodeObj) { + console.log('Deep search found a potential image source node:', { + sourceNodeId: sourceNodeObj.node.id, + sourceNodeType: sourceNodeObj.node.type + }); + } + } + + if (!sourceNodeObj) { + console.log('No source node found for ref_image input after deep search'); return null; } // Step 2: Extract image data from the source node - const imageDataUrl = await extractImageFromSourceNode(sourceNodeObj); + let imageDataUrl = await extractImageFromSourceNode(sourceNodeObj); if (!imageDataUrl) { - console.log('No image data found in source node'); + console.log('No image data found in source node, trying deep search for original image source...'); + // If we couldn't extract image from the found source node, try to find the original image source via deep search + const deepSourceNodeObj = findDeepSourceNode(currentNode, 'ref_image'); + if (deepSourceNodeObj && deepSourceNodeObj.node.id !== sourceNodeObj.node.id) { + console.log('Deep search found alternative source node:', { + sourceNodeId: deepSourceNodeObj.node.id, + sourceNodeType: deepSourceNodeObj.node.type + }); + imageDataUrl = await extractImageFromSourceNode(deepSourceNodeObj); + if (imageDataUrl) { + sourceNodeObj = deepSourceNodeObj; // Update the source node for potential logging + } + } + } + + if (!imageDataUrl) { + console.log('No image data found in source node after trying alternatives'); return null; } @@ -452,5 +522,125 @@ async function getReferenceImageFromConnectedNode(currentNode) { return base64Image; } +/** + * Recursively find the original source node connected to a specific input + * @param {Object} currentNode - The node to start from + * @param {string} inputName - Name of the input to trace (e.g., "ref_image") + * @param {Set} visited - Internal set to prevent infinite loops + * @returns {Object|null} The ultimate source node or null + */ +function findDeepSourceNode(currentNode, inputName, visited = new Set()) { + const graph = app.graph; + if (!graph || !graph.links) return null; + + if (visited.has(currentNode.id)) return null; + visited.add(currentNode.id); + + // Get the link object for the input + const inputIndex = currentNode.inputs?.findIndex(i => i.name === inputName) ?? -1; + if (inputIndex < 0) return null; + + let link = null; + // Find the link connected to this input (graph.links is a Map, not an array) + if (graph.links && graph.links instanceof Map) { + for (const [linkId, linkObj] of graph.links) { + if (!linkObj) continue; + if (linkObj.target_id === currentNode.id && linkObj.target_slot === inputIndex) { + link = linkObj; + break; + } + } + } else if (Array.isArray(graph.links)) { + // Fallback if links is an array (older format) + link = graph.links.find(linkObj => { + if (!linkObj) return false; + return linkObj.target_id === currentNode.id && linkObj.target_slot === inputIndex; + }); + } + + if (!link) return null; + + const sourceNode = graph._nodes?.find(node => node.id === link.origin_id); + if (!sourceNode) return null; + + // Check if the source node contains image data + if (isImageNode(sourceNode)) { + // Prioritize true image loaders over processors + const imageLoaderTypes = ['LoadImage', 'LoadImageUpload']; + if (imageLoaderTypes.some(type => sourceNode.type?.includes(type))) { + return { + node: sourceNode, + origin_slot: link.origin_slot, + target_slot: link.target_slot + }; + } + + // If this is an image processor, continue looking upstream for the original source + if (sourceNode.inputs) { + for (const input of sourceNode.inputs) { + const deeper = findDeepSourceNode(sourceNode, input.name, new Set(visited)); // Use a copy of visited set for each branch + if (deeper) { + return deeper; // Return the original source found upstream + } + } + } + + // If no original source found upstream, return this processor as fallback + return { + node: sourceNode, + origin_slot: link.origin_slot, + target_slot: link.target_slot + }; + } + + // If not an image node, recursively check each input of the source node for possible image connections + if (sourceNode.inputs) { + for (const input of sourceNode.inputs) { + const deeper = findDeepSourceNode(sourceNode, input.name, new Set(visited)); // Use a copy of visited set for each branch + if (deeper) return deeper; + } + } + + return null; +} + +/** + * Check if a node is likely to contain image data + * @param {Object} node - The node to check + * @returns {boolean} Whether the node is likely to contain image data + */ +function isImageNode(node) { + // Check node type for common image-related nodes + const imageNodeTypes = [ + 'LoadImage', 'LoadImageUpload', 'VAEDecode', 'PreviewImage', 'SaveImage', + 'ImageScale', 'ImageScaleBy', 'ImageResizeKJv2', 'ImageUpscale', 'ImageCrop', + 'ImagePadForOutpaint', 'ImageBatch', 'ImageBlend', 'ImageBlur', 'ImageColorToBW', + 'ImageFlip', 'ImageOnlyCheckpointLoader', 'ImageApplyProcessing' + ]; + if (imageNodeTypes.some(type => node.type && node.type.includes(type))) { + return true; + } + + // Check if node has IMAGE type outputs + if (node.outputs) { + for (const output of node.outputs) { + if (output.type === 'IMAGE' || (output.name && (output.name.includes('IMAGE') || output.name.toLowerCase().includes('image')))) { + return true; + } + } + } + + // Check if node has image-related widgets + if (node.widgets) { + for (const widget of node.widgets) { + if (widget.type === 'image' || (widget.name && widget.name.toLowerCase().includes('image'))) { + return true; + } + } + } + + return false; +} + // Export functions for use in other modules -export { findConnectedSourceNode, extractImageFromSourceNode, loadImageAsBase64, getReferenceImageFromConnectedNode }; \ No newline at end of file +export { findConnectedSourceNode, findDeepSourceNode, extractImageFromSourceNode, loadImageAsBase64, getReferenceImageFromConnectedNode }; \ No newline at end of file