Skip to content
FramesField
WORKFLOW 05 Advanced Local GPU (ComfyUI)
VERIFIED 2026-11-26
Raw .md

Local Zero-API-Cost Image-to-Video Pipeline with Wan 2.2 MoE & ComfyUI

What You’ll Make & How It Works

Private, $0-per-clip 720p AI video clips rendered completely on your own desktop graphics card inside ComfyUI.

Run Apache 2.0 Alibaba Wan 2.2-A14B locally inside ComfyUI on a single 24GB GPU using FP8 quantization and dual-expert sampling (high-noise layout + low-noise refinement), then interpolate 16 fps output to 32/24 fps with RIFE and FFmpeg. API spend is $0.00 per clip with full studio privacy.

Before You Start Glossary
  • A desktop NVIDIA GPU with 24GB VRAM (e.g., RTX 4090/5090) or a rented cloud GPU pod.
  • ComfyUI installed locally plus ~40GB of free disk space for model weights.
  • Comfort running basic terminal downloads (skip this if you prefer browser-based tools).
Estimated Cost
$0.00 API (24GB local GPU)
Time Needed
40 min (first setup)
Setup Level
Local GPU (ComfyUI)
Big-Picture Flow (Step-by-Step Overview) 4 STEPS
  1. 01 · INPUT ↓ NEXT
    Start Keyframe
    FLUX.1 Kontext / Local Still

    Prepare 1280×720 PNG multiple-of-16 input

  2. 02 · MODEL ↓ NEXT
    High-Noise Expert
    Wan 2.2 High FP8

    Steps 0–10 establish motion & camera path

  3. 03 · MODEL ↓ NEXT
    Low-Noise Expert
    Wan 2.2 Low FP8

    Steps 10–20 sharpen fine texture & edges

  4. 04 · OUTPUT
    VAE + Frame Interp
    ComfyUI + FFmpeg

    Tiled VAE decode & 16→24fps delivery

Wan 2.2-A14B Two-Stage MoE Denoising Split (Steps 0–10 -> Steps 10–20 -> RIFE) CONTACT SHEET · GITHUB
FRAME 01 PASS 01 · SIGMA 1.0→0.875
REC ● 14B Active · CFG 3.5
High-Noise MoE Expert

Resolves camera trajectory, subject blocking, and overall shot composition over early denoising steps.

FRAME 02 PASS 02 · SIGMA 0.875→0.0
REC ● 14B Active · CFG 3.5
Low-Noise MoE Expert

Refines skin texture, cloth micro-folds, foliage edges, and lighting roll-off without changing blocking.

FRAME 03 PASS 03 · POST 2X
REC ● 16fps → 32/24fps · H.264
RIFE Interpolation + Encode

Doubles native 81-frame 16 fps render cleanly to smooth broadcast frame cadence.

Dual-expert inference workflow structured from official Wan-Video/Wan2.2 and ComfyUI native WanVideo template parameters.

[SOURCE: Wan-Video / ComfyUI Docs] [MODEL: WAN 2.2 A14B MOE · FP8] [VERIFIED: 2026-11-26]
Original Source ↗

Why run Wan 2.2 locally instead of paying hosted video APIs?

Hosted APIs like Veo 3.1 and Kling 2.6 Pro excel when you need native dialogue or zero hardware maintenance. However, when a client project forbids uploading NDA footage to third-party servers—or when look-dev requires 80 exploratory takes—Alibaba Wan 2.2 (A14B MoE) under Apache 2.0 removes per-second API friction entirely while giving full node-level access to LoRAs, ControlNets, and deterministic seeds.

Step 1: Verify local hardware and memory profile

GPU TierRecommended CheckpointTarget ResolutionVAE Mode
12GB–16GB VRAMWan2.2-TI2V-5B (BF16/FP8)1280×704 @ 24 fpsTiled (256)
24GB VRAM (RTX 4090)Wan2.2-I2V-A14B (FP8_scaled)832×480 or 1280×720 @ 16 fpsTiled (256)
48GB–80GB VRAM (A6000/H100)Wan2.2-I2V-A14B (BF16)1280×720 @ 16 fpsStandard

Step 2: Configure the dual-expert sampling boundary

Wan 2.2 splits denoising around noise level t = 0.875 (in flow-matching schedule with ModelSamplingSD3 shift = 5.0 to 8.0):

  1. Sampler 1 (High-Noise Expert): steps = 20, start_at_step = 0, end_at_step = 10, add_noise = enable, return_with_leftover_noise = enable, sampler = euler, scheduler = simple, cfg = 3.5.
  2. Sampler 2 (Low-Noise Expert): steps = 20, start_at_step = 10, end_at_step = 20, add_noise = disable, return_with_leftover_noise = disable, sampler = euler, scheduler = simple, cfg = 3.5.

For the ready-to-import ComfyUI API JSON template, see our companion skill ComfyUI Wan 2.2 Dual-Expert I2V Graph.

Step 3: Post-process 16 fps output cleanly to 24 fps

Wan 2.2 A14B generates 81 frames (5.06s at 16 fps). Never drop it directly into a 24 fps timeline without optical-flow or neural frame interpolation, or pans will visibly stutter. Either add a RIFE VFI node (multiplier: 2 -> 32 fps, then conform to 24 fps) inside ComfyUI or run FFmpeg’s minterpolate filter for batch CLI automation:

ffmpeg -i wan22_raw_16fps.mp4 \
  -vf "minterpolate=fps=24:mi_mode=mci:mc_mode=aobmc:me_mode=bidir:vsbmc=1" \
  -c:v libx264 -crf 16 -pix_fmt yuv420p wan22_24fps_master.mp4

Copy-Paste Template / Asset

ONE-CLICK COPY OR DOWNLOAD
Wan 2.2 ComfyUI Weight Fetch & Directory Bootstrap setup-wan22-weights.sh
Places official FP8 dual-expert checkpoints, UMT5-XXL text encoder, and Wan 2.1/2.2 VAE into standard ComfyUI model directories.
#!/usr/bin/env bash
set -euo pipefail

COMFY_DIR="${1:-$HOME/ComfyUI}"
mkdir -p "$COMFY_DIR/models/diffusion_models" \
         "$COMFY_DIR/models/text_encoders" \
         "$COMFY_DIR/models/vae"

# Requires: pip install -U "huggingface_hub[cli]"
hf download Comfy-Org/Wan_2.2_ComfyUI_Repackaged \
  split_files/diffusion_models/wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors \
  split_files/diffusion_models/wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors \
  --local-dir "$COMFY_DIR/models"

hf download Comfy-Org/Wan_2.1_ComfyUI_repackaged \
  split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors \
  split_files/vae/wan_2.1_vae.safetensors \
  --local-dir "$COMFY_DIR/models"

echo "Weights verified under $COMFY_DIR/models"

Helpful Prompts & Skills for This Workflow

Frequently Asked Questions

03 Q&A
Q01 What happens if I run all 20 steps on only one Wan 2.2 expert checkpoint?
Running only the high-noise expert yields muddy surface textures; running only the low-noise expert freezes camera motion and produces stiff flickering frames. Both checkpoints must hand off at the mid-point boundary.
Q02 Can I attach a custom character or camera LoRA to Wan 2.2 MoE?
Yes. Load camera-motion LoRAs primarily on the High-Noise expert (where trajectory forms) and identity/texture LoRAs on the Low-Noise expert (or both at 0.7/1.0 strength split).
Q03 How fast does an 81-frame 720p clip render on a single RTX 4090?
With FP8 scaled weights, PyTorch 2.6+ SDPA/SageAttention, and 20 total steps (or 4–8 steps using LightX2V distillation LoRAs), expect roughly 90–180 seconds for 20 full steps or under 45 seconds with a step-distilled LoRA.