{
  "id": "09b9db03-282d-4d26-aea8-68ddb7022b67",
  "revision": 0,
  "last_node_id": 60,
  "last_link_id": 175,
  "nodes": [
    {
      "id": 10,
      "type": "CLIPTextEncode",
      "pos": [
        215.54222509765606,
        1124.7715654296887
      ],
      "size": [
        396.2566833496094,
        88
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 171
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            137
          ]
        }
      ],
      "title": "Negative Prompt (leave blank cuz 1 CFG)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        ""
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 48,
      "type": "PrimitiveInt",
      "pos": [
        224.86663183593626,
        1277.2361801757852
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            162,
            163
          ]
        }
      ],
      "title": "Number of Frames",
      "properties": {
        "Node name for S&R": "PrimitiveInt"
      },
      "widgets_values": [
        81,
        "fixed"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 8,
      "type": "KSampler",
      "pos": [
        1228.8297880859395,
        856.5475639648441
      ],
      "size": [
        270,
        262
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 123
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 144
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 145
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 143
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            149
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        1025741038287135,
        "randomize",
        4,
        1,
        "euler",
        "simple",
        1
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 28,
      "type": "WanVaceToVideo",
      "pos": [
        707.4252624218756,
        938.6828316601539
      ],
      "size": [
        270,
        254
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 136
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 137
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 173
        },
        {
          "name": "control_video",
          "shape": 7,
          "type": "IMAGE",
          "link": 141
        },
        {
          "name": "control_masks",
          "shape": 7,
          "type": "MASK",
          "link": 148
        },
        {
          "name": "reference_image",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          },
          "link": 162
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            144
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            145
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            143
          ]
        },
        {
          "name": "trim_latent",
          "type": "INT",
          "links": []
        }
      ],
      "title": "T2V=Strength 0, I2V=Strength 1",
      "properties": {
        "Node name for S&R": "WanVaceToVideo"
      },
      "widgets_values": [
        1280,
        720,
        65,
        1,
        1
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 32,
      "type": "ModelSamplingSD3",
      "pos": [
        706.4911964062494,
        823.945757226561
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 169
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            123
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingSD3"
      },
      "widgets_values": [
        8
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 37,
      "type": "LoadImage",
      "pos": [
        203.55288668945346,
        2036.0816287109344
      ],
      "size": [
        375.5744934082031,
        326
      ],
      "flags": {},
      "order": 1,
      "mode": 4,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            156
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "title": "End Frame (Optional)",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ComfyUI_temp_zmuag_00002_.png",
        "image"
      ]
    },
    {
      "id": 16,
      "type": "LoadImage",
      "pos": [
        211.97460221679714,
        1626.1234195703087
      ],
      "size": [
        375.5744934082031,
        326
      ],
      "flags": {},
      "order": 2,
      "mode": 4,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            161
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "title": "Start Frame (Optional)",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "Untitled.png",
        "image"
      ]
    },
    {
      "id": 9,
      "type": "CLIPTextEncode",
      "pos": [
        208.12962744140611,
        876.4104521484375
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 170
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            136
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "A modern city skyline at sunset, tall skyscrapers, camera slowly dolly-in between buildings, warm golden light reflecting on glass, cinematic lighting, soft shadows, atmospheric haze, realistic, smooth motion, shallow depth of field, film still, 4k"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 52,
      "type": "CLIPLoader",
      "pos": [
        -280.6015364220948,
        1127.531452071805
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            170,
            171
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader"
      },
      "widgets_values": [
        "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
        "wan",
        "default"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 34,
      "type": "WanVideoVACEStartToEndFrame",
      "pos": [
        793.8087904343689,
        1648.4439712270782
      ],
      "size": [
        329.9634704589844,
        238
      ],
      "flags": {},
      "order": 9,
      "mode": 4,
      "inputs": [
        {
          "name": "start_image",
          "shape": 7,
          "type": "IMAGE",
          "link": 161
        },
        {
          "name": "end_image",
          "shape": 7,
          "type": "IMAGE",
          "link": 156
        },
        {
          "name": "control_images",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "inpaint_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "num_frames",
          "type": "INT",
          "widget": {
            "name": "num_frames"
          },
          "link": 163
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            141
          ]
        },
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            148
          ]
        }
      ],
      "title": "Bypass for T2V, use for I2V",
      "properties": {
        "Node name for S&R": "WanVideoVACEStartToEndFrame"
      },
      "widgets_values": [
        65,
        0.5,
        0,
        -1,
        1,
        0
      ]
    },
    {
      "id": 53,
      "type": "VAELoader",
      "pos": [
        -275.7615364220951,
        1323.5514520718052
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            172,
            173
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader"
      },
      "widgets_values": [
        "wan_2.1_vae.safetensors"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 58,
      "type": "SaveVideo",
      "pos": [
        2082.582255562292,
        890.7102475061758
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "video",
          "type": "VIDEO",
          "link": 174
        }
      ],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "video/ComfyUI",
        "auto",
        "auto"
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 54,
      "type": "Tiled KSampler",
      "pos": [
        1228.4489755622915,
        1179.689597506176
      ],
      "size": [
        270,
        286
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": null
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": null
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": null
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "Tiled KSampler"
      },
      "widgets_values": [
        0,
        "randomize",
        1,
        20,
        8,
        "euler",
        "simple",
        1
      ]
    },
    {
      "id": 55,
      "type": "Note",
      "pos": [
        1565.538035562291,
        1314.1871475061764
      ],
      "size": [
        306.375,
        123.88800000000015
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "Use the tiled ksampler if youre running out of vram"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 11,
      "type": "VAEDecode",
      "pos": [
        1546.4254384765654,
        863.4219726562495
      ],
      "size": [
        140,
        46
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 149
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 172
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            175
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": [],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 57,
      "type": "CreateVideo",
      "pos": [
        1732.9825655622913,
        874.5261675061754
      ],
      "size": [
        270,
        78
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 175
        },
        {
          "name": "audio",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "VIDEO",
          "type": "VIDEO",
          "links": [
            174
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CreateVideo"
      },
      "widgets_values": [
        16
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 56,
      "type": "Note",
      "pos": [
        211.79025556229047,
        1405.2242475061769
      ],
      "size": [
        314.3609999999999,
        88
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "Minimum of 81frames for first frame last frame"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 51,
      "type": "GGUFLoaderKJ",
      "pos": [
        -327.87079142209456,
        840.6242380718052
      ],
      "size": [
        312.095703125,
        202
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            169
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "GGUFLoaderKJ"
      },
      "widgets_values": [
        "wan2.2-rapid-mega-aio-v12-Q4_K.gguf",
        "none",
        "default",
        "default",
        false,
        false,
        "none"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 59,
      "type": "MarkdownNote",
      "pos": [
        -1040,
        750
      ],
      "size": [
        620,
        1020
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "How to use",
      "properties": {},
      "widgets_values": [
        "## How to use\n\n**What it does:** Wan 2.2 text-to-video and image-to-video from one \"rapid mega AIO\" GGUF file (experts and speed LoRA baked in). 4 steps, CFG 1.\n\n**Inputs**\n1. **Prompt** (top text box): describe the shot and the camera move. Positive wording only.\n2. **Negative Prompt**: leave it empty. At CFG 1 it has no effect.\n3. **Number of Frames**: 81 by default (about 5 s at 16 fps). Use 4n+1 values (49, 65, 81, 97 ...).\n4. **Start Frame / End Frame** (blue group, optional): images for I2V or first-frame-last-frame.\n\n**T2V or I2V**\n- **T2V (default):** keep the blue group and the *WanVideoVACEStartToEndFrame* node bypassed. The WanVaceToVideo node title says strength 0 for T2V (saved value is 1).\n- **I2V / FFLF:** un-bypass the two Load Image nodes and the StartToEndFrame node, load your images, set *strength* to 1. For first-frame-last-frame use 81 frames or more.\n- Only a start image: bypass the End Frame node.\n\n**Important settings**\n- **WanVaceToVideo**: width 1280, height 720 (multiples of 16).\n- **ModelSamplingSD3** shift 8.\n- **KSampler**: 4 steps, CFG 1, euler / simple, seed randomize.\n- **Create Video** 16 fps. Output lands in `ComfyUI/output/video/`.\n- **GGUF loader**: pick a smaller quant of the same mega AIO if you are short on VRAM.\n\n**Tips**\n- Out of VRAM: lower the size (e.g. 832x480) or the frame count first. The Tiled KSampler node (not wired, needs the tiled_ksampler pack) can stand in for the KSampler: connect the same model, positive, negative and latent.\n- Change the seed for a new take; keep it fixed while you tune the prompt.\n\n**Attention:** --use-sage-attention ran at the same speed as the default on the 24 GB bench and used less VRAM on Z-Image (not measured on Wan). --use-ck-attention changes the image for the same seed.\n\n**Tested on:** no recorded test run yet. Not run on ComfyUI 0.45.3 (the AIO GGUF is not on the bench server)."
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 60,
      "type": "MarkdownNote",
      "pos": [
        -1040,
        1810
      ],
      "size": [
        620,
        520
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Downloads",
      "properties": {},
      "widgets_values": [
        "## Downloads - put each file in the ComfyUI folder shown\n\nClick a file name to download it. Put it in the folder shown (inside `ComfyUI/models/`).\n\n| Folder | File (click = download) | Note |\n|---|---|---|\n| `diffusion_models/` | [wan2.2-rapid-mega-aio-v12-Q4_K.gguf](https://huggingface.co/befox/WAN2.2-14B-Rapid-AllInOne-GGUF/resolve/main/Mega-v12/wan2.2-rapid-mega-aio-v12-Q4_K.gguf) | single all-in-one file, 11.6 GB |\n| `text_encoders/` | [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) | |\n| `vae/` | [wan_2.1_vae.safetensors](https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors) | |\n\nNo separate high/low-noise or lightx2v files needed.\n\n**Custom node packs:** ComfyUI-KJNodes (GGUF loader), ComfyUI-WanVideoWrapper (StartToEndFrame, I2V only), tiled_ksampler (optional Tiled KSampler), ComfyUI-VideoHelperSuite.\n\nOne command from the repo root: `python scripts/frizzy.py doctor wan2.2/aio-rapid`"
      ],
      "color": "#432",
      "bgcolor": "#653"
    }
  ],
  "links": [
    [
      123,
      32,
      0,
      8,
      0,
      "MODEL"
    ],
    [
      136,
      9,
      0,
      28,
      0,
      "CONDITIONING"
    ],
    [
      137,
      10,
      0,
      28,
      1,
      "CONDITIONING"
    ],
    [
      141,
      34,
      0,
      28,
      3,
      "IMAGE"
    ],
    [
      143,
      28,
      2,
      8,
      3,
      "LATENT"
    ],
    [
      144,
      28,
      0,
      8,
      1,
      "CONDITIONING"
    ],
    [
      145,
      28,
      1,
      8,
      2,
      "CONDITIONING"
    ],
    [
      148,
      34,
      1,
      28,
      4,
      "MASK"
    ],
    [
      149,
      8,
      0,
      11,
      0,
      "LATENT"
    ],
    [
      156,
      37,
      0,
      34,
      1,
      "IMAGE"
    ],
    [
      161,
      16,
      0,
      34,
      0,
      "IMAGE"
    ],
    [
      162,
      48,
      0,
      28,
      6,
      "INT"
    ],
    [
      163,
      48,
      0,
      34,
      4,
      "INT"
    ],
    [
      169,
      51,
      0,
      32,
      0,
      "MODEL"
    ],
    [
      170,
      52,
      0,
      9,
      0,
      "CLIP"
    ],
    [
      171,
      52,
      0,
      10,
      0,
      "CLIP"
    ],
    [
      172,
      53,
      0,
      11,
      1,
      "VAE"
    ],
    [
      173,
      53,
      0,
      28,
      2,
      "VAE"
    ],
    [
      174,
      57,
      0,
      58,
      0,
      "VIDEO"
    ],
    [
      175,
      11,
      0,
      57,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Model",
      "bounding": [
        -376.66518507106673,
        750.5337119339983,
        508.0607496382586,
        743.4922830570299
      ],
      "color": "#88A",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 2,
      "title": "Prompt + Settings",
      "bounding": [
        155.7348149289333,
        751.8647119339979,
        1026.221915244996,
        736.5783722270535
      ],
      "color": "#8A8",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 3,
      "title": "Sampler Stage",
      "bounding": [
        1196.576814928934,
        758.519711933998,
        1123.213511903636,
        732.1816881905215
      ],
      "color": "#a1309b",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 4,
      "title": "Optional - I2V FFLF",
      "bounding": [
        158.45807832893408,
        1501.7755296339978,
        1012.8964199999998,
        922.2967299999996
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6209213230591556,
      "offset": [
        768.850064437709,
        -587.641327506176
      ]
    },
    "frontendVersion": "1.41.21",
    "ue_links": [],
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}