Wan 2.2 5B Video Studio (Auto-Ratio TI2V, FunControl & 3-Stage Polish)
All-in-one ComfyUI custom nodes and unified workflow for Wan 2.2 5B: aspect-ratio auto-sizing (4n+1 frames), lazy Standard TI2V / FunControl mode router, temporal MKL color matching, 3-stage preview-to-2x-48fps polish pipeline, and SageAttention safe fallback.
ComfyUI-Wan22-5B-Video-Studio

An integrated, model-agnostic ComfyUI studio rig and custom node pack for Wan 2.2 5B in a single unified workflow (workflows/Wan22_5B_Video_Studio.json) — combining Auto-Ratio TI2V (Photo/Text-to-Video), Lazy FunControl Motion & Dance Transfer (with audio sync), Temporal MKL Color Matching, and a 3-Stage Preview-to-2x-48fps Master Pipeline, with beginner-friendly sticky-note guides on every Zone.
Hardware Compatibility: Runs on any Wan 2.2 5B-capable GPU (8GB–12GB+ VRAM; FP16, FP8, and GGUF Q4–Q8 supported). Stage 2 (RIFE 48fps), Stage 3 (RealESRGAN 2x), and SageAttention ship bypassed by default so first-time runs start cleanly with zero missing-file errors.
Verification Environment: Tested and verified on NVIDIA RTX 3080 Ti (12GB VRAM).
Visual Quick-Start (Zero-Error Setup in 3 Clicks)

Key Features
-
Single Unified Workflow + Built-In Sticky-Note Manual (
Wan22_5B_Video_Studio.json)- One clean workflow covers both Mode 1 (Standard TI2V) and Mode 2 (FunControl Motion Transfer) — no separate workflow files needed.
- Ships with no bundled or promoted diffusion models or LoRAs (
Power Lora Loaderis 100% empty). - Pick any
.safetensorsWan 2.2 5B model out-of-the-box, or follow the Zone 1 Sticky Note to swapUNETLoaderforUnetLoaderGGUF(ComfyUI-GGUF) to run Q4–Q8 quantized models anytime.
-
Zero-Crop Auto-Ratio &
4n+1Frame Calculator (Wan22StudioAutoSize)- Automatically detects your input photo's aspect ratio (portrait, square, or widescreen) and scales to 16px-aligned dimensions up to
max_size(720for speed or1024for sharp detail) — eliminating forced 16:9 center-crop distortion. - Converts
duration_sec×fpsinto strict Wan 2.24n + 1frame counts (1s=25f,3s=73f,5s=121f). - Disconnect
start_imageonWan22ImageToVideoLatentanytime to run pure Text-to-Video usingfallback_width/fallback_height.
- Automatically detects your input photo's aspect ratio (portrait, square, or widescreen) and scales to 16px-aligned dimensions up to
-
Lazy Mode Router (
Wan22StudioModeSwitch)- Switches cleanly between
1: [Standard TI2V]and2: [FunControl]with zero wasted VRAM or load time — the inactive mode's model loader and reference video are completely skipped by ComfyUI's lazy evaluation. - Routes Mode 2's reference video audio cleanly into Stage 1–3 outputs when FunControl is active.
- Switches cleanly between
-
3-Stage Preview-to-Master Pipeline & Temporal MKL Color Lock
- Stage 1 (
24fpsNative Preview — Active by default): Uses ComfyUI's built-inVAEDecodeTiled(zero extra decoder weights) so you can roll seeds fast and preview motion cleanly. - Stage 2 (
48fps+ MKL Color Match — Bypassed by default):Wan22StudioColorMatch(pure PyTorch MKL / Mean-Std) locks skin tones and contrast across all frames back to your original input photo, followed byRIFE VFI(2x,24fps → 48fps). - Stage 3 (
2xRealESRGAN +48fpsMaster — Bypassed by default): Upscales frames2xwithRealESRGAN_x2.pthat true48fps(fixing the common double-RIFE96fps-at-60fpsslow-motion bug). Always enable Stage 2 + Stage 3 together for true 1.0x speed audio/video sync.
- Stage 1 (


1. Installation
Step 1 — Install This Pack
- Option A (1-Click via ComfyUI-Manager / Comfy Registry — Recommended):
Search forWan 2.2 5B Video Studioin ComfyUI-Manager (or clickInstall Missing Custom Nodesafter droppingworkflows/Wan22_5B_Video_Studio.jsononto ComfyUI), or install via Comfy CLI:comfy node install wan22-5b-video-studio - Option B (Inside ComfyUI Manager →
Install via Git URL):
Paste the URL below and restart ComfyUI:https://github.com/kama0630-cmyk/ComfyUI-Wan22-5B-Video-Studio - Option C (Terminal
git clone):cd ComfyUI/custom_nodes git clone https://github.com/kama0630-cmyk/ComfyUI-Wan22-5B-Video-Studio.git cd ComfyUI-Wan22-5B-Video-Studio pip install -r requirements.txt
Step 2 — Install Required & Optional Community Node Packs
Install via ComfyUI Manager or git clone inside ComfyUI/custom_nodes/:
| Custom Node Pack | Repository | Required? | Purpose in Workflow |
| :--- | :--- | :---: | :--- |
| rgthree-comfy | https://github.com/rgthree/rgthree-comfy | Yes | Power Lora Loader, Fast Groups Bypasser |
| ComfyUI-VideoHelperSuite | https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite | Yes | VHS_VideoCombine, VHS_LoadVideo |
| ComfyUI-Frame-Interpolation | https://github.com/Fannovel16/ComfyUI-Frame-Interpolation | Optional (Stage 2) | RIFE VFI (24fps → 48fps, bypassed by default) |
| ComfyUI-KJNodes | https://github.com/kijai/ComfyUI-KJNodes | Optional | PathchSageAttentionKJ (bypassed by default; safe fallback included) |
| ComfyUI-GGUF | https://github.com/city96/ComfyUI-GGUF | Optional (GGUF users) | UnetLoaderGGUF if you prefer .gguf Q4–Q8 checkpoints |
Restart ComfyUI completely after installing custom nodes, then drag and drop workflows/Wan22_5B_Video_Studio.json onto the ComfyUI canvas.
2. Models & 1-Command Downloader
Required Base Models
- Shared Text Encoder & Wan 2.2 VAE:
umt5_xxl_fp8_e4m3fn_scaled.safetensors(models/text_encoders/) andwan2.2_vae.safetensors(models/vae/) — download both in one command using--group encodersbelow. - Any Wan 2.2 5B TI2V Diffusion Model (
.safetensorsinmodels/diffusion_models/orunet/, or.ggufinmodels/unet/if swapping toUnetLoaderGGUF) selected in Zone 1. - (Optional for Mode 2) Any Wan 2.2 Fun-Control 5B Model (
.safetensorsor.gguf) selected in Zone 1 →[Mode 2]. Power Lora Loaderships 100% empty — add your own Wan 2.2 LoRAs if desired.
1-Command Helper Script (Shared Encoders + Optional 2x Upscaler)
# Interactive menu
python download_optional_models.py
# Or download by group
python download_optional_models.py --list
python download_optional_models.py --group encoders
python download_optional_models.py --group upscaler
python download_optional_models.py --group all
(Pass --models-dir /path/to/ComfyUI/models if your models folder is in a non-standard location. rife47.pth auto-downloads automatically on first Stage 2 run via ComfyUI-Frame-Interpolation.)
(Note: If installed via Comfy Registry, download download_optional_models.py directly from this GitHub repository — excluded from the Registry archive for strict offline security compliance.)
| Group / Zone | Model | Target Folder (ComfyUI/models/...) | Official Source |
| :---: | :--- | :--- | :--- |
| encoders (Zone 1) | umt5_xxl_fp8_e4m3fn_scaled.safetensors | text_encoders/ | Comfy-Org / Wan 2.1 Text Encoder |
| encoders (Zone 1) | wan2.2_vae.safetensors | vae/ | Comfy-Org / Wan 2.2 VAE |
| upscaler (Stage 3) | RealESRGAN_x2.pth | upscale_models/ | ai-forever / Real-ESRGAN |
3. Beginner Step-by-Step Guide
A. Mode 1 — Standard TI2V (Photo-to-Video or Text-to-Video)
- Pick Your Model (Zone 1): Select your Wan 2.2 5B TI2V
.safetensorsin[Mode 1] UNETLoader(or replace it withUnetLoaderGGUFif using.gguf). Leave[Mode 2]untouched — lazy evaluation skips it completely. - Load a Photo & Set Length (Zone 3A): Load any photo in
[Mode 1] LoadImage. Setmax_size(720for faster drafts,1024for sharp portrait/widescreen) andduration_sec(1–10s).- Pure Text-to-Video? Simply unlink
start_imageonWan22ImageToVideoLatentand setfallback_width/fallback_heightinWan22StudioAutoSize.
- Pure Text-to-Video? Simply unlink
- Write Motion Prompt (Zone 2): Describe subject motion, camera motion, fabric/hair movement, and lighting.
- Stage 1 Draft (
24fps): Leave Stage 1 ON and Stage 2 / Stage 3 OFF in Stage Render Switch, then click Queue Prompt. - Polish Winner (
48fps+2xUpscale): When you find great motion, setKSamplercontrol_after_generatetofixed, turn Stage 2 + Stage 3 ON together in Stage Render Switch, and click Queue Prompt again.
B. Base Model vs. Fast / Speed LoRA Sampler Presets (Zone 4 KSampler)
| Setup | Steps | CFG | Sampler | Scheduler | Notes |
| :--- | :---: | :---: | :--- | :--- | :--- |
| Base Wan 2.2 5B (No LoRA, Default) | 20 | 5.0 | uni_pc | simple | Negative prompt active; clean physics & stability |
| With Fast / Acceleration LoRA | 6–8 | 1.0 | euler | beta | Add your LoRA in Power Lora Loader; CFG 1.0 skips negative |
C. Mode 2 — FunControl Motion & Dance Transfer
(Ships Muted (mode=2) by default in Zone 3B so Mode 1 runs with zero missing-file errors even if you don't own a Fun-Control model yet.)
- Toggle
Zone 3BON inside Zone 4 →Mode 2 Muter Switch. - Select your Wan 2.2 Fun-Control 5B model in Zone 3B →
[Mode 2] Fun-Control 5B Model(.safetensorsor swap toUnetLoaderGGUF). - Load your driving motion video in Zone 3B →
VHS_LoadVideoand target character image in[Mode 2] Target Character Image. - Switch Unified Mode Switch (
Zone 4) to2: [FunControl] Motion & Dance Transferand click Queue Prompt. Reference audio is routed automatically to the output MP4.
FunControl Quality Tip (
Cannyvs.DWPose): The built-inCannynode also extracts background lines, which can clash with your target character's background if the driving clip has a busy scene. For noticeably cleaner motion transfer, use a clean/simple-background driving video, or swapCannyfor a human-skeleton preprocessor (DWPose/OpenPosefromcomfyui_controlnet_aux).
D. Verified Timings on Reference Hardware (RTX 3080 Ti 12GB VRAM)
- Mode 1 Stage 1 (
784×1024portrait,73 frames/ 3s @ 24fps, Base 20 steps):179.0s - Mode 1 Stage 2+3 (
RIFE 48fps+RealESRGAN 2x→1568×2048,145 frames):+129.1s - Mode 2 FunControl GGUF Q8_0 (
576×768,49 frames/ 2s @ 24fps, 20 steps):68.4s
Credits & Attribution
Integrated workflow rig and controller nodes built upon open-source work by Alibaba Wan Team (Wan 2.2 5B & Fun-Control), comfyanonymous (ComfyUI & split text encoders/VAE), city96 (ComfyUI-GGUF), rgthree (rgthree-comfy), Kosinkadink (ComfyUI-VideoHelperSuite), Fannovel16 (ComfyUI-Frame-Interpolation), kijai (ComfyUI-KJNodes), and xinntao / ai-forever (RealESRGAN).
MIT License — see LICENSE.