{
  "config": {},
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        1338.38804264791,
        285.10038390605666
      ],
      "scale": 0.2819643576011779
    },
    "frontendVersion": "1.40.10",
    "node_versions": {
      "comfy-core": "0.3.34"
    },
    "ue_links": [],
    "workflowRendererVersion": "LG"
  },
  "groups": [
    {
      "bounding": [
        3750,
        990,
        480.86250520075646,
        1145.8642414215897
      ],
      "color": "#b58b2a",
      "flags": {},
      "font_size": 24,
      "id": 4,
      "title": "SAVE VIDEO"
    },
    {
      "bounding": [
        320.3333434509948,
        991.3333294080941,
        960,
        590
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 15,
      "title": "SAM3 LOADERS + SAMPLERS"
    },
    {
      "bounding": [
        2250.333343450995,
        121.33332940809403,
        1130,
        840
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 17,
      "title": "WAN VACE MODEL LOADERS"
    },
    {
      "bounding": [
        1310.3333434509948,
        991.3333294080941,
        910,
        450
      ],
      "color": "#8A8",
      "flags": {},
      "font_size": 24,
      "id": 18,
      "title": "PROMPT + IMAGE REFERENCE"
    },
    {
      "bounding": [
        2250.333343450995,
        991.3333294080941,
        1127.791963218066,
        1131.2105153781163
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 19,
      "title": "WAN SAMPLERS"
    },
    {
      "bounding": [
        -309.6666565490052,
        991.3333294080941,
        600,
        920
      ],
      "color": "#8A8",
      "flags": {},
      "font_size": 24,
      "id": 20,
      "title": "INPUT VIDEOS AND SETTINGS"
    },
    {
      "bounding": [
        1310.3333434509948,
        1471.3333294080942,
        358.7540473446884,
        520.5891376097254
      ],
      "color": "#8A8",
      "flags": {},
      "font_size": 24,
      "id": 21,
      "title": "MASK SETTINGS"
    },
    {
      "bounding": [
        1700.3333434509948,
        1471.3333294080942,
        520.5088006629451,
        526.7512234504206
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 22,
      "title": "MASK PREVIEWS"
    },
    {
      "bounding": [
        3410,
        990,
        309.33004479597,
        510.32748226344296
      ],
      "color": "#8A8",
      "flags": {},
      "font_size": 24,
      "id": 23,
      "title": "MASK COMPOSITE"
    }
  ],
  "id": "96995b8f-85c5-47af-b3cf-7b6a24675694",
  "last_link_id": 335,
  "last_node_id": 205,
  "links": [
    [
      252,
      171,
      0,
      166,
      0,
      "WANVAE"
    ],
    [
      253,
      173,
      0,
      166,
      1,
      "LATENT"
    ],
    [
      254,
      172,
      0,
      167,
      0,
      "WANTEXTENCODER"
    ],
    [
      255,
      169,
      0,
      167,
      1,
      "WANVIDEOMODEL"
    ],
    [
      256,
      168,
      0,
      169,
      0,
      "WANCOMPILEARGS"
    ],
    [
      257,
      181,
      0,
      169,
      2,
      "WANVIDLORA"
    ],
    [
      259,
      169,
      0,
      173,
      0,
      "WANVIDEOMODEL"
    ],
    [
      260,
      176,
      0,
      173,
      1,
      "WANVIDIMAGE_EMBEDS"
    ],
    [
      261,
      167,
      0,
      173,
      2,
      "WANVIDEOTEXTEMBEDS"
    ],
    [
      263,
      175,
      0,
      173,
      8,
      "SLGARGS"
    ],
    [
      264,
      174,
      0,
      173,
      10,
      "EXPERIMENTALARGS"
    ],
    [
      265,
      171,
      0,
      176,
      0,
      "WANVAE"
    ],
    [
      277,
      162,
      0,
      176,
      5,
      "INT"
    ],
    [
      278,
      163,
      0,
      176,
      6,
      "INT"
    ],
    [
      279,
      165,
      0,
      176,
      7,
      "INT"
    ],
    [
      282,
      192,
      0,
      183,
      0,
      "SAM3_MODEL"
    ],
    [
      283,
      191,
      0,
      183,
      1,
      "SAM3_VIDEO_STATE"
    ],
    [
      284,
      183,
      0,
      184,
      0,
      "SAM3_VIDEO_MASKS"
    ],
    [
      285,
      183,
      2,
      184,
      1,
      "SAM3_VIDEO_STATE"
    ],
    [
      286,
      183,
      1,
      184,
      2,
      "SAM3_VIDEO_SCORES"
    ],
    [
      288,
      187,
      0,
      186,
      0,
      "IMAGE"
    ],
    [
      292,
      186,
      0,
      191,
      0,
      "IMAGE"
    ],
    [
      293,
      194,
      0,
      191,
      1,
      "STRING"
    ],
    [
      297,
      186,
      0,
      196,
      0,
      "IMAGE"
    ],
    [
      298,
      195,
      0,
      196,
      1,
      "IMAGE"
    ],
    [
      300,
      162,
      0,
      195,
      0,
      "INT"
    ],
    [
      301,
      163,
      0,
      195,
      1,
      "INT"
    ],
    [
      302,
      165,
      0,
      195,
      2,
      "INT"
    ],
    [
      305,
      162,
      0,
      186,
      1,
      "INT"
    ],
    [
      306,
      163,
      0,
      186,
      2,
      "INT"
    ],
    [
      307,
      165,
      0,
      187,
      2,
      "INT"
    ],
    [
      309,
      186,
      0,
      197,
      0,
      "IMAGE"
    ],
    [
      311,
      166,
      0,
      197,
      1,
      "IMAGE"
    ],
    [
      312,
      197,
      0,
      164,
      0,
      "IMAGE"
    ],
    [
      314,
      198,
      0,
      197,
      2,
      "MASK"
    ],
    [
      317,
      199,
      0,
      196,
      2,
      "MASK"
    ],
    [
      318,
      199,
      0,
      176,
      3,
      "MASK"
    ],
    [
      322,
      196,
      0,
      201,
      0,
      "IMAGE"
    ],
    [
      327,
      184,
      0,
      203,
      0,
      "MASK"
    ],
    [
      329,
      203,
      0,
      198,
      0,
      "MASK"
    ],
    [
      330,
      203,
      0,
      199,
      0,
      "MASK"
    ],
    [
      334,
      196,
      0,
      176,
      1,
      "IMAGE"
    ],
    [
      335,
      204,
      0,
      176,
      2,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 163,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            278,
            301,
            306
          ],
          "name": "value",
          "type": "INT"
        }
      ],
      "pos": [
        -259.6666023249989,
        1211.33326472137
      ],
      "properties": {
        "Node name for S&R": "INTConstant",
        "cnr_id": "comfyui-kjnodes",
        "ver": "a5e66ce5510c9b3bf984c43a22014cefae4bd044",
        "widget_ue_connectable": {}
      },
      "size": [
        210,
        86.66666666666667
      ],
      "title": "Height",
      "type": "INTConstant",
      "widgets_values": [
        1280
      ]
    },
    {
      "flags": {},
      "id": 191,
      "inputs": [
        {
          "link": 292,
          "name": "video_frames",
          "type": "IMAGE"
        },
        {
          "link": 293,
          "name": "text_prompt",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "text_prompt"
          }
        }
      ],
      "mode": 0,
      "order": 17,
      "outputs": [
        {
          "links": [
            283
          ],
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        }
      ],
      "pos": [
        650.3333439302666,
        1221.3332683570688
      ],
      "properties": {
        "Node name for S&R": "SAM3VideoSegmentation",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        277.4609375,
        172.21354166666669
      ],
      "type": "SAM3VideoSegmentation",
      "widgets_values": [
        "text",
        "",
        0,
        0.3
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 165,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            279,
            302,
            307
          ],
          "name": "value",
          "type": "INT"
        }
      ],
      "pos": [
        -269.66660596069795,
        1341.3333119854558
      ],
      "properties": {
        "Node name for S&R": "INTConstant",
        "cnr_id": "comfyui-kjnodes",
        "ver": "a5e66ce5510c9b3bf984c43a22014cefae4bd044",
        "widget_ue_connectable": {}
      },
      "size": [
        210,
        86.66666666666667
      ],
      "title": "Length",
      "type": "INTConstant",
      "widgets_values": [
        89
      ]
    },
    {
      "flags": {},
      "id": 183,
      "inputs": [
        {
          "link": 282,
          "name": "sam3_model",
          "type": "SAM3_MODEL"
        },
        {
          "link": 283,
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        }
      ],
      "mode": 0,
      "order": 18,
      "outputs": [
        {
          "links": [
            284
          ],
          "name": "masks",
          "type": "SAM3_VIDEO_MASKS"
        },
        {
          "links": [
            286
          ],
          "name": "scores",
          "type": "SAM3_VIDEO_SCORES"
        },
        {
          "links": [
            285
          ],
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        }
      ],
      "pos": [
        950.3333568529001,
        1081.333313605618
      ],
      "properties": {
        "Node name for S&R": "SAM3Propagate",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        205.546875
      ],
      "type": "SAM3Propagate",
      "widgets_values": [
        0,
        -1,
        "both",
        false
      ]
    },
    {
      "flags": {},
      "id": 175,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            263
          ],
          "name": "slg_args",
          "type": "SLGARGS"
        }
      ],
      "pos": [
        2320.333374201982,
        1481.3332667369068
      ],
      "properties": {
        "Node name for S&R": "WanVideoSLG",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "ver": "2d2a184723dae88388e130659f51c36fcadeaba8",
        "widget_ue_connectable": {}
      },
      "size": [
        315,
        143.33333333333334
      ],
      "type": "WanVideoSLG",
      "widgets_values": [
        "8",
        0.30000000000000004,
        0.7000000000000002
      ]
    },
    {
      "flags": {},
      "id": 197,
      "inputs": [
        {
          "link": 309,
          "name": "destination",
          "type": "IMAGE"
        },
        {
          "link": 311,
          "name": "source",
          "type": "IMAGE"
        },
        {
          "link": 314,
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 28,
      "outputs": [
        {
          "links": [
            312
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        3430,
        1120
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        176.66666666666669
      ],
      "type": "ImageCompositeMasked",
      "widgets_values": [
        0,
        0,
        false
      ]
    },
    {
      "flags": {},
      "id": 164,
      "inputs": [
        {
          "link": 312,
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 29,
      "outputs": [
        {
          "links": null,
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        3790,
        1080
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine",
        "cnr_id": "comfyui-videohelpersuite",
        "ver": "a7ce59e381934733bfae03b1be029756d6ce936d",
        "widget_ue_connectable": {}
      },
      "size": [
        400.0651041666667,
        377.7734375
      ],
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 19,
        "filename_prefix": "VaceControl",
        "format": "video/h264-mp4",
        "frame_rate": 30,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": true,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "woman_holding_the_pipeapple.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 30,
            "fullpath": "",
            "subfolder": "",
            "type": "output",
            "workflow": "VaceControl_00005.png"
          },
          "paused": false
        }
      }
    },
    {
      "flags": {},
      "id": 174,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            264
          ],
          "name": "exp_args",
          "type": "EXPERIMENTALARGS"
        }
      ],
      "pos": [
        2320.333374201982,
        1661.333236031153
      ],
      "properties": {
        "Node name for S&R": "WanVideoExperimentalArgs",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "ver": "2d2a184723dae88388e130659f51c36fcadeaba8",
        "widget_ue_connectable": {}
      },
      "size": [
        327.59114583333337,
        416.6666666666667
      ],
      "type": "WanVideoExperimentalArgs",
      "widgets_values": [
        "",
        true,
        false,
        0,
        false,
        1,
        1.25,
        20,
        false,
        0,
        false,
        false,
        0.95,
        1
      ]
    },
    {
      "flags": {},
      "id": 166,
      "inputs": [
        {
          "link": 252,
          "name": "vae",
          "type": "WANVAE"
        },
        {
          "link": 253,
          "name": "samples",
          "type": "LATENT"
        }
      ],
      "mode": 0,
      "order": 27,
      "outputs": [
        {
          "links": [
            311
          ],
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "pos": [
        3020.3332441075704,
        1091.333317241317
      ],
      "properties": {
        "Node name for S&R": "WanVideoDecode",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "ver": "d9b1f4d1a5aea91d101ae97a54714a5861af3f50",
        "widget_ue_connectable": {}
      },
      "size": [
        315,
        238.88020833333334
      ],
      "type": "WanVideoDecode",
      "widgets_values": [
        false,
        272,
        272,
        144,
        128,
        "default"
      ]
    },
    {
      "bgcolor": "#533",
      "color": "#322",
      "flags": {},
      "id": 176,
      "inputs": [
        {
          "link": 265,
          "name": "vae",
          "type": "WANVAE"
        },
        {
          "link": 334,
          "name": "input_frames",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": 335,
          "name": "ref_images",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": 318,
          "name": "input_masks",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": null,
          "name": "prev_vace_embeds",
          "shape": 7,
          "type": "WANVIDIMAGE_EMBEDS"
        },
        {
          "link": 277,
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 278,
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": 279,
          "name": "num_frames",
          "type": "INT",
          "widget": {
            "name": "num_frames"
          }
        }
      ],
      "mode": 0,
      "order": 25,
      "outputs": [
        {
          "links": [
            260
          ],
          "name": "vace_embeds",
          "type": "WANVIDIMAGE_EMBEDS"
        }
      ],
      "pos": [
        2310.333370566283,
        1091.333317241317
      ],
      "properties": {
        "Node name for S&R": "WanVideoVACEEncode",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "ver": "3869b0482b615b6a8fd6f346467c5ef6627eed72",
        "widget_ue_connectable": {
          "height": true,
          "num_frames": true,
          "width": true
        }
      },
      "size": [
        343.5807291666667,
        341.9921875
      ],
      "type": "WanVideoVACEEncode",
      "widgets_values": [
        480,
        832,
        29,
        1,
        0,
        1,
        false
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 194,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": [
            293
          ],
          "name": "text1",
          "type": "STRING"
        }
      ],
      "pos": [
        -269.66660596069795,
        1491.3332703726055
      ],
      "properties": {
        "Node name for S&R": "TextBox1",
        "cnr_id": "RES4LYF",
        "ver": "0dc91c00c4c3fb38e7874fcd7a2a327765e8882c",
        "widget_ue_connectable": {}
      },
      "size": [
        223.85416666666669,
        152.5390625
      ],
      "title": "Object Prompt",
      "type": "TextBox1",
      "widgets_values": [
        "pineapple"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 167,
      "inputs": [
        {
          "link": 254,
          "name": "t5",
          "shape": 7,
          "type": "WANTEXTENCODER"
        },
        {
          "link": 255,
          "name": "model_to_offload",
          "shape": 7,
          "type": "WANVIDEOMODEL"
        }
      ],
      "mode": 0,
      "order": 16,
      "outputs": [
        {
          "links": [
            261
          ],
          "name": "text_embeds",
          "slot_index": 0,
          "type": "WANVIDEOTEXTEMBEDS"
        }
      ],
      "pos": [
        1330.333302712791,
        1071.3333099699191
      ],
      "properties": {
        "Node name for S&R": "WanVideoTextEncode",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "ver": "3869b0482b615b6a8fd6f346467c5ef6627eed72",
        "widget_ue_connectable": {}
      },
      "size": [
        425.390625,
        325.8854166666667
      ],
      "type": "WanVideoTextEncode",
      "widgets_values": [
        "a woman holding up a dragon fruit",
        "bad quality, blurry, messy, chaotic",
        true,
        [
          false,
          true
        ],
        "gpu"
      ]
    },
    {
      "flags": {},
      "id": 192,
      "inputs": [],
      "mode": 0,
      "order": 5,
      "outputs": [
        {
          "links": [
            282
          ],
          "name": "sam3_model",
          "type": "SAM3_MODEL"
        }
      ],
      "pos": [
        660.3333956401325,
        1081.333313605618
      ],
      "properties": {
        "Node name for S&R": "LoadSAM3Model",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        90
      ],
      "type": "LoadSAM3Model",
      "widgets_values": [
        "models/sam3/sam3.pt"
      ]
    },
    {
      "flags": {},
      "id": 184,
      "inputs": [
        {
          "link": 284,
          "name": "masks",
          "type": "SAM3_VIDEO_MASKS"
        },
        {
          "link": 285,
          "name": "video_state",
          "type": "SAM3_VIDEO_STATE"
        },
        {
          "link": 286,
          "name": "scores",
          "shape": 7,
          "type": "SAM3_VIDEO_SCORES"
        }
      ],
      "mode": 0,
      "order": 19,
      "outputs": [
        {
          "links": [
            327
          ],
          "name": "masks",
          "type": "MASK"
        },
        {
          "links": null,
          "name": "frames",
          "type": "IMAGE"
        },
        {
          "links": [],
          "name": "visualization",
          "type": "IMAGE"
        }
      ],
      "pos": [
        960.333360488599,
        1331.333308349757
      ],
      "properties": {
        "Node name for S&R": "SAM3VideoOutput",
        "cnr_id": "comfyui-sam3",
        "ver": "978bb763cfadcad41363eba016e57686b414c27b",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        150
      ],
      "type": "SAM3VideoOutput",
      "widgets_values": [
        -1,
        true
      ]
    },
    {
      "flags": {},
      "id": 186,
      "inputs": [
        {
          "link": 288,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 305,
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 306,
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        }
      ],
      "mode": 0,
      "order": 15,
      "outputs": [
        {
          "links": [
            292,
            297,
            309
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "width",
          "type": "INT"
        },
        {
          "links": null,
          "name": "height",
          "type": "INT"
        }
      ],
      "pos": [
        350.333427155967,
        1081.333313605618
      ],
      "properties": {
        "Node name for S&R": "ImageResize+",
        "cnr_id": "comfyui_essentials",
        "ver": "9d9f4bedfc9f0321c19faf71855e228c93bd0dc9",
        "widget_ue_connectable": {}
      },
      "size": [
        270,
        266.65364583333337
      ],
      "type": "ImageResize+",
      "widgets_values": [
        0,
        720,
        "nearest",
        "stretch",
        "always",
        0
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 162,
      "inputs": [],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            277,
            300,
            305
          ],
          "name": "value",
          "type": "INT"
        }
      ],
      "pos": [
        -269.66660596069795,
        1091.333317241317
      ],
      "properties": {
        "Node name for S&R": "INTConstant",
        "cnr_id": "comfyui-kjnodes",
        "ver": "a5e66ce5510c9b3bf984c43a22014cefae4bd044",
        "widget_ue_connectable": {}
      },
      "size": [
        210,
        86.66666666666667
      ],
      "title": "Width",
      "type": "INTConstant",
      "widgets_values": [
        720
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 203,
      "inputs": [
        {
          "link": 327,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 20,
      "outputs": [
        {
          "links": [
            329,
            330
          ],
          "name": "mask",
          "type": "MASK"
        },
        {
          "links": null,
          "name": "mask_inverted",
          "type": "MASK"
        }
      ],
      "pos": [
        1340.33330634849,
        1571.3332994581972
      ],
      "properties": {
        "Node name for S&R": "GrowMaskWithBlur"
      },
      "size": [
        299.84375,
        283.33333333333337
      ],
      "type": "GrowMaskWithBlur",
      "widgets_values": [
        10,
        0,
        true,
        false,
        0,
        1,
        1,
        false
      ]
    },
    {
      "flags": {},
      "id": 195,
      "inputs": [
        {
          "link": 300,
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 301,
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": 302,
          "name": "batch_size",
          "type": "INT",
          "widget": {
            "name": "batch_size"
          }
        }
      ],
      "mode": 0,
      "order": 13,
      "outputs": [
        {
          "links": [
            298
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1730.333351992414,
        1551.3332921867993
      ],
      "properties": {
        "Node name for S&R": "ImageConstant"
      },
      "size": [
        238.73697916666669,
        220
      ],
      "type": "ImageConstant",
      "widgets_values": [
        512,
        512,
        1,
        1,
        1,
        1
      ]
    },
    {
      "flags": {},
      "id": 196,
      "inputs": [
        {
          "link": 297,
          "name": "destination",
          "type": "IMAGE"
        },
        {
          "link": 298,
          "name": "source",
          "type": "IMAGE"
        },
        {
          "link": 317,
          "name": "mask",
          "shape": 7,
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 23,
      "outputs": [
        {
          "links": [
            322,
            334
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        1730.333351992414,
        1821.3332942023364
      ],
      "properties": {
        "Node name for S&R": "ImageCompositeMasked",
        "widget_ue_connectable": {}
      },
      "size": [
        237.64322916666669,
        176.66666666666669
      ],
      "type": "ImageCompositeMasked",
      "widgets_values": [
        0,
        0,
        false
      ]
    },
    {
      "flags": {},
      "id": 173,
      "inputs": [
        {
          "link": 259,
          "name": "model",
          "type": "WANVIDEOMODEL"
        },
        {
          "link": 260,
          "name": "image_embeds",
          "type": "WANVIDIMAGE_EMBEDS"
        },
        {
          "link": 261,
          "name": "text_embeds",
          "shape": 7,
          "type": "WANVIDEOTEXTEMBEDS"
        },
        {
          "link": null,
          "name": "samples",
          "shape": 7,
          "type": "LATENT"
        },
        {
          "link": null,
          "name": "feta_args",
          "shape": 7,
          "type": "FETAARGS"
        },
        {
          "link": null,
          "name": "context_options",
          "shape": 7,
          "type": "WANVIDCONTEXT"
        },
        {
          "link": null,
          "name": "cache_args",
          "shape": 7,
          "type": "CACHEARGS"
        },
        {
          "link": null,
          "name": "flowedit_args",
          "shape": 7,
          "type": "FLOWEDITARGS"
        },
        {
          "link": 263,
          "name": "slg_args",
          "shape": 7,
          "type": "SLGARGS"
        },
        {
          "link": null,
          "name": "loop_args",
          "shape": 7,
          "type": "LOOPARGS"
        },
        {
          "link": 264,
          "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": "teacache_args",
          "shape": 7,
          "type": "TEACACHEARGS"
        }
      ],
      "mode": 0,
      "order": 26,
      "outputs": [
        {
          "links": [
            253
          ],
          "name": "samples",
          "type": "LATENT"
        },
        {
          "links": null,
          "name": "denoised_samples",
          "type": "LATENT"
        }
      ],
      "pos": [
        2680.333312790475,
        1101.333320877016
      ],
      "properties": {
        "Node name for S&R": "WanVideoSampler",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "ver": "2d2a184723dae88388e130659f51c36fcadeaba8",
        "widget_ue_connectable": {}
      },
      "size": [
        312.890625,
        947.7604166666667
      ],
      "type": "WanVideoSampler",
      "widgets_values": [
        8,
        1.0000000000000002,
        3.0000000000000004,
        18,
        "fixed",
        true,
        "unipc",
        0,
        1,
        false,
        "comfy",
        0,
        -1,
        false
      ]
    },
    {
      "flags": {},
      "id": 201,
      "inputs": [
        {
          "link": 322,
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 24,
      "outputs": [
        {
          "links": null,
          "name": "Filenames",
          "type": "VHS_FILENAMES"
        }
      ],
      "pos": [
        1990.3332542239173,
        1551.3332921867993
      ],
      "properties": {
        "Node name for S&R": "VHS_VideoCombine",
        "cnr_id": "comfyui-videohelpersuite",
        "ver": "a7ce59e381934733bfae03b1be029756d6ce936d",
        "widget_ue_connectable": {}
      },
      "size": [
        210,
        377.7734375
      ],
      "title": "Output Visualization2",
      "type": "VHS_VideoCombine",
      "widgets_values": {
        "crf": 19,
        "filename_prefix": "RotoPreview",
        "format": "video/h264-mp4",
        "frame_rate": 30,
        "loop_count": 0,
        "pingpong": false,
        "pix_fmt": "yuv420p",
        "save_metadata": true,
        "save_output": false,
        "trim_to_audio": false,
        "videopreview": {
          "hidden": false,
          "params": {
            "filename": "5b3f063697dbeca199d41f70e6f4c19f0c2f2a7494f57aefa7b231446a77cd5f.mp4",
            "format": "video/h264-mp4",
            "frame_rate": 30,
            "fullpath": "",
            "subfolder": "",
            "type": "temp",
            "workflow": "RotoPreview_00005.png"
          },
          "paused": false
        }
      }
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 172,
      "inputs": [],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "links": [
            254
          ],
          "name": "wan_t5_model",
          "slot_index": 0,
          "type": "WANTEXTENCODER"
        }
      ],
      "pos": [
        2290.333363294885,
        761.3332934115866
      ],
      "properties": {
        "Node name for S&R": "LoadWanVideoT5TextEncoder",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "models": [
          {
            "directory": "text_encoders",
            "name": "umt5-xxl-enc-bf16.safetensors",
            "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/umt5-xxl-enc-bf16.safetensors?download=true"
          }
        ],
        "ver": "3869b0482b615b6a8fd6f346467c5ef6627eed72",
        "widget_ue_connectable": {}
      },
      "size": [
        377.16145833333337,
        175.546875
      ],
      "type": "LoadWanVideoT5TextEncoder",
      "widgets_values": [
        "umt5-xxl-enc-bf16.safetensors",
        "bf16",
        "offload_device",
        "disabled"
      ]
    },
    {
      "bgcolor": "#533",
      "color": "#322",
      "flags": {},
      "id": 171,
      "inputs": [
        {
          "link": null,
          "name": "compile_args",
          "shape": 7,
          "type": "WANCOMPILEARGS"
        }
      ],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            252,
            265
          ],
          "name": "vae",
          "slot_index": 0,
          "type": "WANVAE"
        }
      ],
      "pos": [
        2280.3333596591865,
        561.3332687717751
      ],
      "properties": {
        "Node name for S&R": "WanVideoVAELoader",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "models": [
          {
            "directory": "vae",
            "name": "Wan2_1_VAE_bf16.safetensors",
            "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan2_1_VAE_bf16.safetensors?download=true"
          }
        ],
        "ver": "3869b0482b615b6a8fd6f346467c5ef6627eed72",
        "widget_ue_connectable": {}
      },
      "size": [
        368.02083333333337,
        164.44010416666669
      ],
      "type": "WanVideoVAELoader",
      "widgets_values": [
        "Wan2_1_VAE_bf16.safetensors",
        "bf16",
        false,
        false
      ]
    },
    {
      "flags": {},
      "id": 168,
      "inputs": [],
      "mode": 0,
      "order": 9,
      "outputs": [
        {
          "links": [
            256
          ],
          "name": "torch_compile_args",
          "slot_index": 0,
          "type": "WANCOMPILEARGS"
        }
      ],
      "pos": [
        2710.333323697572,
        211.33330978189755
      ],
      "properties": {
        "Node name for S&R": "WanVideoTorchCompileSettings",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "ver": "3869b0482b615b6a8fd6f346467c5ef6627eed72",
        "widget_ue_connectable": {}
      },
      "size": [
        463.1640625,
        287.7734375
      ],
      "type": "WanVideoTorchCompileSettings",
      "widgets_values": [
        "inductor",
        false,
        "default",
        false,
        64,
        true,
        128,
        false,
        false
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 187,
      "inputs": [
        {
          "link": null,
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager"
        },
        {
          "link": null,
          "name": "vae",
          "shape": 7,
          "type": "VAE"
        },
        {
          "link": 307,
          "name": "frame_load_cap",
          "type": "INT",
          "widget": {
            "name": "frame_load_cap"
          }
        }
      ],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": [
            288
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "frame_count",
          "type": "INT"
        },
        {
          "links": null,
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "links": null,
          "name": "video_info",
          "type": "VHS_VIDEOINFO"
        }
      ],
      "pos": [
        0.3333960548387722,
        1101.333320877016
      ],
      "properties": {
        "Node name for S&R": "VHS_LoadVideo",
        "cnr_id": "comfyui-videohelpersuite",
        "ver": "a7ce59e381934733bfae03b1be029756d6ce936d",
        "widget_ue_connectable": {}
      },
      "size": [
        255.8203125,
        792.6302083333334
      ],
      "title": "Input Video",
      "type": "VHS_LoadVideo",
      "widgets_values": {
        "custom_height": 0,
        "custom_width": 0,
        "force_rate": 0,
        "format": "AnimateDiff",
        "frame_load_cap": 200,
        "select_every_nth": 1,
        "skip_first_frames": 0,
        "video": "woman_holding_the_pipeapple.mp4",
        "videopreview": {
          "hidden": false,
          "params": {
            "custom_height": 0,
            "custom_width": 0,
            "filename": "woman_holding_the_pipeapple.mp4",
            "force_rate": 0,
            "format": "video/mp4",
            "frame_load_cap": 200,
            "select_every_nth": 1,
            "skip_first_frames": 0,
            "type": "input"
          },
          "paused": false
        }
      }
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 198,
      "inputs": [
        {
          "link": 329,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 21,
      "outputs": [
        {
          "links": [
            314
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        3460,
        1340
      ],
      "properties": {
        "Node name for S&R": "MaskBlur+"
      },
      "size": [
        225,
        115.546875
      ],
      "type": "MaskBlur+",
      "widgets_values": [
        3,
        "auto"
      ]
    },
    {
      "bgcolor": "#335",
      "color": "#223",
      "flags": {},
      "id": 181,
      "inputs": [
        {
          "link": null,
          "name": "prev_lora",
          "shape": 7,
          "type": "WANVIDLORA"
        },
        {
          "link": null,
          "name": "blocks",
          "shape": 7,
          "type": "SELECTEDBLOCKS"
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [
        {
          "links": [
            257
          ],
          "name": "lora",
          "type": "WANVIDLORA"
        }
      ],
      "pos": [
        2330.333377837681,
        311.3333221018032
      ],
      "properties": {
        "Node name for S&R": "WanVideoLoraSelect",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "models": [
          {
            "directory": "loras",
            "name": "Wan21_CausVid_14B_T2V_lora_rank32_v2.safetensors",
            "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan21_CausVid_14B_T2V_lora_rank32_v2.safetensors?download=true"
          }
        ],
        "ver": "a4b1a4be7ac69ba705cd9cc43450751cd2e6f25c",
        "widget_ue_connectable": {
          "lora": true,
          "low_mem_load": true,
          "strength": true
        }
      },
      "size": [
        315,
        182.21354166666669
      ],
      "type": "WanVideoLoraSelect",
      "widgets_values": [
        "Wan21_CausVid_14B_T2V_lora_rank32_v2.safetensors",
        0.7,
        false,
        true
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 199,
      "inputs": [
        {
          "link": 330,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 22,
      "outputs": [
        {
          "links": [
            317,
            318
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        1340.33330634849,
        1871.3333123808306
      ],
      "properties": {
        "Node name for S&R": "MaskBlur+"
      },
      "size": [
        300.48177083333337,
        115.546875
      ],
      "type": "MaskBlur+",
      "widgets_values": [
        3,
        "auto"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 204,
      "inputs": [],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [
            335
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        1880.3334065278978,
        1071.3333099699191
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.3.34",
        "widget_ue_connectable": {}
      },
      "size": [
        262.35677083333337,
        325.98958333333337
      ],
      "type": "LoadImage",
      "widgets_values": [
        "dragon_fruit.png",
        "image"
      ]
    },
    {
      "bgcolor": "#335",
      "color": "#223",
      "flags": {},
      "id": 169,
      "inputs": [
        {
          "link": 256,
          "name": "compile_args",
          "shape": 7,
          "type": "WANCOMPILEARGS"
        },
        {
          "link": null,
          "name": "block_swap_args",
          "shape": 7,
          "type": "BLOCKSWAPARGS"
        },
        {
          "link": 257,
          "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"
        }
      ],
      "mode": 0,
      "order": 14,
      "outputs": [
        {
          "links": [
            255,
            259
          ],
          "name": "model",
          "slot_index": 0,
          "type": "WANVIDEOMODEL"
        }
      ],
      "pos": [
        2700.3333200618727,
        541.3332615003774
      ],
      "properties": {
        "Node name for S&R": "WanVideoModelLoader",
        "cnr_id": "ComfyUI-WanVideoWrapper",
        "models": [
          {
            "directory": "diffusion_models",
            "name": "wan2.1_vace_14B_fp16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors"
          }
        ],
        "ver": "3869b0482b615b6a8fd6f346467c5ef6627eed72",
        "widget_ue_connectable": {}
      },
      "size": [
        477.43489583333337,
        393.3203125
      ],
      "type": "WanVideoModelLoader",
      "widgets_values": [
        "wan2.1_vace_14B_fp16.safetensors",
        "bf16",
        "disabled",
        "offload_device",
        "sdpa",
        "default"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}