{
  "config": {},
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        1338.7934840651517,
        354.7511023649753
      ],
      "scale": 0.4462002493494437
    },
    "frontendVersion": "1.29.2",
    "node_versions": {
      "comfy-core": "0.3.34"
    }
  },
  "groups": [
    {
      "bounding": [
        140,
        -30,
        450,
        620
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 2,
      "title": "Prompt"
    },
    {
      "bounding": [
        610,
        -30,
        720,
        620
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 3,
      "title": "Sampling & Decoding"
    },
    {
      "bounding": [
        1350,
        -30,
        720,
        1010
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 4,
      "title": "Save Video(Mp4)"
    },
    {
      "bounding": [
        -290,
        610,
        580,
        410
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 6,
      "title": "Load Video for Outpainting"
    },
    {
      "bounding": [
        -290,
        1040,
        370,
        330
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 9,
      "title": "Length - 1 should be divisible by 4"
    },
    {
      "bounding": [
        310,
        610,
        280,
        410
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 10,
      "title": "Repeat Mask Batch"
    },
    {
      "bounding": [
        610,
        610,
        720,
        760
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 12,
      "title": "Get video size & frame counts"
    },
    {
      "bounding": [
        90,
        1040,
        500,
        330
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 14,
      "title": "Video size - Must be divisble by 16"
    },
    {
      "bounding": [
        -290,
        -30,
        410,
        620
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 21,
      "title": "Load models here"
    },
    {
      "bounding": [
        -270,
        10,
        370,
        330
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 22,
      "title": "14B"
    },
    {
      "bounding": [
        -680,
        -30,
        370,
        330
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 23,
      "title": "1.3B"
    }
  ],
  "id": "96995b8f-85c5-47af-b3cf-7b6a24675694",
  "last_link_id": 264,
  "last_node_id": 184,
  "links": [
    [
      95,
      48,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      96,
      6,
      0,
      49,
      0,
      "CONDITIONING"
    ],
    [
      97,
      7,
      0,
      49,
      1,
      "CONDITIONING"
    ],
    [
      98,
      49,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      99,
      49,
      1,
      3,
      2,
      "CONDITIONING"
    ],
    [
      115,
      49,
      3,
      58,
      1,
      "INT"
    ],
    [
      116,
      3,
      0,
      58,
      0,
      "LATENT"
    ],
    [
      117,
      58,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      129,
      68,
      0,
      69,
      0,
      "VIDEO"
    ],
    [
      131,
      71,
      0,
      72,
      0,
      "VIDEO"
    ],
    [
      139,
      8,
      0,
      68,
      0,
      "IMAGE"
    ],
    [
      160,
      49,
      2,
      3,
      3,
      "LATENT"
    ],
    [
      180,
      110,
      1,
      111,
      0,
      "MASK"
    ],
    [
      201,
      111,
      0,
      129,
      0,
      "IMAGE"
    ],
    [
      202,
      129,
      0,
      130,
      0,
      "IMAGE"
    ],
    [
      204,
      130,
      0,
      49,
      4,
      "MASK"
    ],
    [
      205,
      72,
      0,
      110,
      0,
      "IMAGE"
    ],
    [
      207,
      110,
      0,
      49,
      3,
      "IMAGE"
    ],
    [
      209,
      131,
      0,
      49,
      8,
      "INT"
    ],
    [
      212,
      131,
      0,
      129,
      1,
      "INT"
    ],
    [
      214,
      110,
      0,
      135,
      0,
      "IMAGE"
    ],
    [
      215,
      137,
      0,
      49,
      6,
      "INT"
    ],
    [
      217,
      139,
      0,
      49,
      7,
      "INT"
    ],
    [
      218,
      72,
      0,
      143,
      0,
      "IMAGE"
    ],
    [
      235,
      158,
      0,
      159,
      0,
      "MODEL"
    ],
    [
      236,
      161,
      0,
      159,
      1,
      "CLIP"
    ],
    [
      241,
      151,
      0,
      165,
      0,
      "MODEL"
    ],
    [
      242,
      161,
      0,
      165,
      1,
      "CLIP"
    ],
    [
      257,
      165,
      0,
      48,
      0,
      "MODEL"
    ],
    [
      258,
      165,
      1,
      6,
      0,
      "CLIP"
    ],
    [
      259,
      165,
      1,
      7,
      0,
      "CLIP"
    ],
    [
      260,
      152,
      0,
      49,
      2,
      "VAE"
    ],
    [
      261,
      152,
      0,
      8,
      1,
      "VAE"
    ]
  ],
  "nodes": [
    {
      "flags": {
        "collapsed": false
      },
      "id": 68,
      "inputs": [
        {
          "link": 139,
          "name": "images",
          "type": "IMAGE"
        },
        {
          "link": null,
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        }
      ],
      "mode": 0,
      "order": 32,
      "outputs": [
        {
          "links": [
            129
          ],
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        1370,
        50
      ],
      "properties": {
        "Node name for S&R": "CreateVideo",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        270,
        78
      ],
      "type": "CreateVideo",
      "widgets_values": [
        16
      ]
    },
    {
      "flags": {},
      "id": 48,
      "inputs": [
        {
          "link": 257,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 0,
      "order": 21,
      "outputs": [
        {
          "links": [
            95
          ],
          "name": "MODEL",
          "slot_index": 0,
          "type": "MODEL"
        }
      ],
      "pos": [
        630,
        50
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingSD3",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        315,
        58
      ],
      "type": "ModelSamplingSD3",
      "widgets_values": [
        8.000000000000002
      ]
    },
    {
      "flags": {},
      "id": 158,
      "inputs": [],
      "mode": 4,
      "order": 0,
      "outputs": [
        {
          "links": [
            235
          ],
          "name": "MODEL",
          "slot_index": 0,
          "type": "MODEL"
        }
      ],
      "pos": [
        -670,
        50
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "diffusion_models",
            "name": "wan2.1_vace_1.3B_fp16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors"
          }
        ],
        "ver": "0.3.34"
      },
      "size": [
        350,
        82
      ],
      "type": "UNETLoader",
      "widgets_values": [
        "wan2.1_vace_1.3B_fp16.safetensors",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 159,
      "inputs": [
        {
          "link": 235,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 236,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 4,
      "order": 17,
      "outputs": [
        {
          "links": [],
          "name": "MODEL",
          "type": "MODEL"
        },
        {
          "links": [],
          "name": "CLIP",
          "type": "CLIP"
        }
      ],
      "pos": [
        -670,
        170
      ],
      "properties": {
        "Node name for S&R": "LoraLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "loras",
            "name": "Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors",
            "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors"
          }
        ],
        "ver": "0.3.38"
      },
      "size": [
        350,
        126
      ],
      "type": "LoraLoader",
      "widgets_values": [
        "Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors",
        0.7000000000000002,
        1
      ]
    },
    {
      "flags": {},
      "id": 49,
      "inputs": [
        {
          "link": 96,
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "link": 97,
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "link": 260,
          "name": "vae",
          "type": "VAE"
        },
        {
          "link": 207,
          "name": "control_video",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": 204,
          "name": "control_masks",
          "shape": 7,
          "type": "MASK"
        },
        {
          "link": null,
          "name": "reference_image",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": 215,
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          }
        },
        {
          "link": 217,
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          }
        },
        {
          "link": 209,
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          }
        }
      ],
      "mode": 0,
      "order": 28,
      "outputs": [
        {
          "links": [
            98
          ],
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "links": [
            99
          ],
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "links": [
            160
          ],
          "name": "latent",
          "type": "LATENT"
        },
        {
          "links": [
            115
          ],
          "name": "trim_latent",
          "type": "INT"
        }
      ],
      "pos": [
        634.6180419921875,
        153.07472229003906
      ],
      "properties": {
        "Node name for S&R": "WanVaceToVideo",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        315,
        254
      ],
      "type": "WanVaceToVideo",
      "widgets_values": [
        720,
        720,
        45,
        1,
        1
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 153,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [],
      "pos": [
        646.3126220703125,
        455.0546569824219
      ],
      "properties": {},
      "size": [
        310,
        110
      ],
      "title": "About Video Size",
      "type": "MarkdownNote",
      "widgets_values": [
        "| Model                                                         | 480P | 720P |\n| ------------------------------------------------------------ | ---- | ---- |\n| [VACE-1.3B](https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B) | ✅   | ❌   |\n| [VACE-14B](https://huggingface.co/Wan-AI/Wan2.1-VACE-14B)   | ✅   | ✅   |"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 58,
      "inputs": [
        {
          "link": 116,
          "name": "samples",
          "type": "LATENT"
        },
        {
          "link": 115,
          "name": "trim_amount",
          "type": "INT",
          "widget": {
            "name": "trim_amount"
          }
        }
      ],
      "mode": 0,
      "order": 30,
      "outputs": [
        {
          "links": [
            117
          ],
          "name": "LATENT",
          "type": "LATENT"
        }
      ],
      "pos": [
        1000.3111572265625,
        359.673095703125
      ],
      "properties": {
        "Node name for S&R": "TrimVideoLatent",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        315,
        60
      ],
      "type": "TrimVideoLatent",
      "widgets_values": [
        0
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 8,
      "inputs": [
        {
          "link": 117,
          "name": "samples",
          "type": "LATENT"
        },
        {
          "link": 261,
          "name": "vae",
          "type": "VAE"
        }
      ],
      "mode": 0,
      "order": 31,
      "outputs": [
        {
          "links": [
            139
          ],
          "name": "IMAGE",
          "slot_index": 0,
          "type": "IMAGE"
        }
      ],
      "pos": [
        1172.2872314453125,
        361.1716003417969
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        315,
        46
      ],
      "type": "VAEDecode",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 111,
      "inputs": [
        {
          "link": 180,
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 25,
      "outputs": [
        {
          "links": [
            201
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        330,
        914
      ],
      "properties": {
        "Node name for S&R": "MaskToImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        240,
        26
      ],
      "type": "MaskToImage",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 129,
      "inputs": [
        {
          "link": 201,
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 212,
          "name": "amount",
          "type": "INT",
          "widget": {
            "name": "amount"
          }
        }
      ],
      "mode": 0,
      "order": 26,
      "outputs": [
        {
          "links": [
            202
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        330,
        802
      ],
      "properties": {
        "Node name for S&R": "RepeatImageBatch",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        240,
        60
      ],
      "type": "RepeatImageBatch",
      "widgets_values": [
        17
      ]
    },
    {
      "flags": {},
      "id": 130,
      "inputs": [
        {
          "link": 202,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 27,
      "outputs": [
        {
          "links": [
            204
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        330,
        690
      ],
      "properties": {
        "Node name for S&R": "ImageToMask",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        240,
        60
      ],
      "type": "ImageToMask",
      "widgets_values": [
        "red"
      ]
    },
    {
      "flags": {},
      "id": 71,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            131
          ],
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        -280,
        690
      ],
      "properties": {
        "Node name for S&R": "LoadVideo",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        274.080078125,
        317.6267395019531
      ],
      "type": "LoadVideo",
      "widgets_values": [
        "video_wan_vace_outpainting_input_video.mp4",
        "image"
      ]
    },
    {
      "flags": {},
      "id": 139,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            217
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        100,
        1260
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        210,
        82
      ],
      "title": "Height",
      "type": "PrimitiveInt",
      "widgets_values": [
        960,
        "fixed"
      ]
    },
    {
      "flags": {},
      "id": 161,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [
        {
          "links": [
            236,
            242
          ],
          "name": "CLIP",
          "slot_index": 0,
          "type": "CLIP"
        }
      ],
      "pos": [
        -260,
        380
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "text_encoders",
            "name": "umt5_xxl_fp16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp16.safetensors"
          }
        ],
        "ver": "0.3.34"
      },
      "size": [
        350,
        106
      ],
      "type": "CLIPLoader",
      "widgets_values": [
        "umt5_xxl_fp16.safetensors",
        "wan",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 152,
      "inputs": [],
      "mode": 0,
      "order": 5,
      "outputs": [
        {
          "links": [
            260,
            261
          ],
          "name": "VAE",
          "slot_index": 0,
          "type": "VAE"
        }
      ],
      "pos": [
        -260,
        520
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "vae",
            "name": "wan_2.1_vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors"
          }
        ],
        "ver": "0.3.34"
      },
      "size": [
        350,
        58
      ],
      "type": "VAELoader",
      "widgets_values": [
        "wan_2.1_vae.safetensors"
      ]
    },
    {
      "flags": {},
      "id": 110,
      "inputs": [
        {
          "link": 205,
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 19,
      "outputs": [
        {
          "links": [
            207,
            214
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": [
            180
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        20,
        830
      ],
      "properties": {
        "Node name for S&R": "ImagePadForOutpaint",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        250,
        174
      ],
      "type": "ImagePadForOutpaint",
      "widgets_values": [
        120,
        120,
        120,
        200,
        0
      ]
    },
    {
      "flags": {},
      "id": 72,
      "inputs": [
        {
          "link": 131,
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 16,
      "outputs": [
        {
          "links": [
            205,
            218
          ],
          "name": "images",
          "type": "IMAGE"
        },
        {
          "links": null,
          "name": "audio",
          "type": "AUDIO"
        },
        {
          "links": [],
          "name": "fps",
          "type": "FLOAT"
        }
      ],
      "pos": [
        20,
        690
      ],
      "properties": {
        "Node name for S&R": "GetVideoComponents",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        250,
        66
      ],
      "type": "GetVideoComponents",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 151,
      "inputs": [],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            241
          ],
          "name": "MODEL",
          "slot_index": 0,
          "type": "MODEL"
        }
      ],
      "pos": [
        -260,
        80
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "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": "0.3.34"
      },
      "size": [
        350,
        82
      ],
      "type": "UNETLoader",
      "widgets_values": [
        "wan2.1_vace_14B_fp16.safetensors",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 160,
      "inputs": [],
      "mode": 4,
      "order": 7,
      "outputs": [
        {
          "links": [],
          "name": "CLIP",
          "slot_index": 0,
          "type": "CLIP"
        }
      ],
      "pos": [
        -680,
        380
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "text_encoders",
            "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors?download=true"
          }
        ],
        "ver": "0.3.34"
      },
      "size": [
        370,
        106
      ],
      "type": "CLIPLoader",
      "widgets_values": [
        "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
        "wan",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 137,
      "inputs": [],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            215
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        100,
        1120
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        210,
        82
      ],
      "title": "Width",
      "type": "PrimitiveInt",
      "widgets_values": [
        960,
        "fixed"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 154,
      "inputs": [],
      "mode": 0,
      "order": 9,
      "outputs": [],
      "pos": [
        997.2053833007812,
        402.0997619628906
      ],
      "properties": {},
      "size": [
        303.90106201171875,
        158.5415802001953
      ],
      "title": "KSampler Setting",
      "type": "MarkdownNote",
      "widgets_values": [
        "## Default\n\n- steps:20\n- cfg:6.0\n\n## For CausVid LoRA\n\n- steps: 2-4\n- cfg: 1.0\n\n"
      ]
    },
    {
      "flags": {},
      "id": 131,
      "inputs": [],
      "mode": 0,
      "order": 10,
      "outputs": [
        {
          "links": [
            209,
            212
          ],
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        -260,
        1180
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        310,
        90
      ],
      "title": "Length",
      "type": "PrimitiveInt",
      "widgets_values": [
        81,
        "fixed"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 6,
      "inputs": [
        {
          "link": 258,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 0,
      "order": 22,
      "outputs": [
        {
          "links": [
            96
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        160,
        50
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        420,
        280
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        "A portrait of a woman with her eyes closed, her head surrounded by white transparent glass flowers, with only her face exposed. The camera slowly moves in, and the girl smiles. There are other transparent glass flowers in the style of Nicoletta Ceccoli around her. The detailed painting features natural light and soft lighting, creating a beautiful, surreal, and emotionally expressive movie scene.\n"
      ]
    },
    {
      "bgcolor": "#335",
      "color": "#223",
      "flags": {},
      "id": 7,
      "inputs": [
        {
          "link": 259,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 0,
      "order": 23,
      "outputs": [
        {
          "links": [
            97
          ],
          "name": "CONDITIONING",
          "slot_index": 0,
          "type": "CONDITIONING"
        }
      ],
      "pos": [
        160,
        380
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        420,
        190
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "type": "CLIPTextEncode",
      "widgets_values": [
        "bad quality, blurry, messy, chaotic"
      ]
    },
    {
      "flags": {},
      "id": 143,
      "inputs": [
        {
          "link": 218,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 20,
      "outputs": [],
      "pos": [
        630,
        1070
      ],
      "properties": {
        "Node name for S&R": "PreviewImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        390,
        270
      ],
      "title": "Preview Image - original",
      "type": "PreviewImage",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 69,
      "inputs": [
        {
          "link": 129,
          "name": "video",
          "type": "VIDEO"
        }
      ],
      "mode": 0,
      "order": 33,
      "outputs": [],
      "pos": [
        1370,
        180
      ],
      "properties": {
        "Node name for S&R": "SaveVideo",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        676.23095703125,
        774.23095703125
      ],
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI",
        "auto",
        "auto"
      ]
    },
    {
      "flags": {},
      "id": 165,
      "inputs": [
        {
          "link": 241,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 242,
          "name": "clip",
          "type": "CLIP"
        }
      ],
      "mode": 0,
      "order": 18,
      "outputs": [
        {
          "links": [
            257
          ],
          "name": "MODEL",
          "type": "MODEL"
        },
        {
          "links": [
            258,
            259
          ],
          "name": "CLIP",
          "type": "CLIP"
        }
      ],
      "pos": [
        -260,
        200
      ],
      "properties": {
        "Node name for S&R": "LoraLoader",
        "cnr_id": "comfy-core",
        "models": [
          {
            "directory": "loras",
            "name": "Wan21_CausVid_14B_T2V_lora_rank32.safetensors",
            "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan21_CausVid_14B_T2V_lora_rank32.safetensors"
          }
        ],
        "ver": "0.3.38"
      },
      "size": [
        350,
        126
      ],
      "type": "LoraLoader",
      "widgets_values": [
        "Wan21_CausVid_14B_T2V_lora_rank32.safetensors",
        0.4000000000000001,
        1
      ]
    },
    {
      "flags": {},
      "id": 3,
      "inputs": [
        {
          "link": 95,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 98,
          "name": "positive",
          "type": "CONDITIONING"
        },
        {
          "link": 99,
          "name": "negative",
          "type": "CONDITIONING"
        },
        {
          "link": 160,
          "name": "latent_image",
          "type": "LATENT"
        }
      ],
      "mode": 0,
      "order": 29,
      "outputs": [
        {
          "links": [
            116
          ],
          "name": "LATENT",
          "slot_index": 0,
          "type": "LATENT"
        }
      ],
      "pos": [
        992.5,
        50
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.3.34"
      },
      "size": [
        315,
        262
      ],
      "type": "KSampler",
      "widgets_values": [
        776767434080331,
        "randomize",
        3,
        1,
        "uni_pc",
        "simple",
        1
      ]
    },
    {
      "flags": {},
      "id": 135,
      "inputs": [
        {
          "link": 214,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 24,
      "outputs": [],
      "pos": [
        630,
        690
      ],
      "properties": {
        "Node name for S&R": "PreviewImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.38"
      },
      "size": [
        390,
        310
      ],
      "title": "Preview Image - Outpaint",
      "type": "PreviewImage",
      "widgets_values": []
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 136,
      "inputs": [],
      "mode": 0,
      "order": 11,
      "outputs": [],
      "pos": [
        1060,
        690
      ],
      "properties": {},
      "size": [
        240,
        180
      ],
      "type": "Note",
      "widgets_values": [
        "Currently (May 18, 2025), the Comfy Core nodes lack relevant nodes for obtaining image size or video frames. Here, we can use the Preview image to indirectly obtain the image size and the total number of video frames.\n\nYou can use custom nodes such as image size acquisition to optimize the step of size modification.\n"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 142,
      "inputs": [],
      "mode": 0,
      "order": 12,
      "outputs": [],
      "pos": [
        330,
        1120
      ],
      "properties": {},
      "size": [
        250,
        210
      ],
      "type": "Note",
      "widgets_values": [
        "Here, you need to manually set the size of the video after outpainting. Since the native nodes currently do not support the relevant functions, you can use some custom nodes to improve this step. Additionally, because the step size of the size setting for the WanVaceToVideo node is 16, the number you enter must be divisible by 16.    "
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 156,
      "inputs": [],
      "mode": 0,
      "order": 13,
      "outputs": [],
      "pos": [
        -680,
        560
      ],
      "properties": {},
      "size": [
        370,
        220
      ],
      "title": "Note",
      "type": "MarkdownNote",
      "widgets_values": [
        "The generation quality of the 14B model is better, but it takes longer to generate. If you have already downloaded the model, you can choose to directly use the nodes above, or just modify the model loaded by the loader node.\n\nThe corresponding LoRA should match the Diffusion Model. For example, the LoRA corresponding to the 14B diffusion model is the 14B LoRA. "
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 184,
      "inputs": [],
      "mode": 0,
      "order": 14,
      "outputs": [],
      "pos": [
        -290,
        -190
      ],
      "properties": {},
      "size": [
        410,
        140
      ],
      "title": "About CausVid LoRA",
      "type": "MarkdownNote",
      "widgets_values": [
        "We have added CausVid LoRA by default to achieve acceleration. However, in some cases, the video may shake and become blurry. You might need to test different LoRA intensities to get the best results, which should be between 0.3 and 0.7. If you don't need it, you can use the bypass mode to disable it, and then restore the settings of `KSampler` to the default ones.\n"
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 183,
      "inputs": [],
      "mode": 0,
      "order": 15,
      "outputs": [],
      "pos": [
        -1170,
        0
      ],
      "properties": {},
      "size": [
        470,
        780
      ],
      "type": "MarkdownNote",
      "widgets_values": [
        "[Tutorial](https://docs.comfy.org/tutorials/video/wan/vace)\n\n##  14B Support 480P 720P\n\n**Diffusion Model**\n- [wan2.1_vace_14B_fp16.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors)\n\n**LoRA**\n- [Wan21_CausVid_14B_T2V_lora_rank32.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan21_CausVid_14B_T2V_lora_rank32.safetensors)\n\nFYI: It takes about 40 minutes to run to completion at 81 frames per second in 720P resolution with the RTX 4090 when testing the workflow.  \nAfter using Wan21_CausVid_14B_T2V_lora_rank32.safetensors, it probably only takes about 4 minutes. \n\n## 1.3B Support 480P only\n\n**Diffusion Model**\n- [wan2.1_vace_1.3B_fp16.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors)\n\n**LoRA**\n- [Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors](https://huggingface.co/Kijai/WanVideo_comfy/blob/main/Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors)\n\nFYI: After using Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors, it probably only takes about 2 minutes. \n## Other Models\n\n* You may already have these models if you use Wan workflow before.\n\n**VAE**\n- [wan_2.1_vae.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors?download=true)\n\n**Text encoders**   Chose one of following model\n- [umt5_xxl_fp16.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp16.safetensors?download=true)\n- [umt5_xxl_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors?download=true)\n\n> You can choose between fp16 of fp8; I used fp16 to match what kijai's wrapper is compatible with.\n\nFile save location\n\n```\nComfyUI/\n├── models/\n│   ├── diffusion_models/\n│   │   ├-── wan2.1_vace_14B_fp16.safetensors\n│   │   └─── wan2.1_vace_1.3B_fp16.safetensors \n│   ├── text_encoders/\n│   │   └─── umt5_xxl_fp8_e4m3fn_scaled.safetensors # or fp16\n│   ├── loras/\n│   │   ├── Wan21_CausVid_14B_T2V_lora_rank32.safetensors\n│   │   └── Wan21_CausVid_bidirect2_T2V_1_3B_lora_rank32.safetensors\n│   └── vae/\n│       └──  wan_2.1_vae.safetensors\n```\n"
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}