Skip to main content

wan_2.2_vae.safetensors

πŸ”§ File Format​

  • File Name: wan_2.2_vae.safetensors
  • Format: safetensors β€” a secure and fast binary format designed to replace .pt and .ckpt.
  • Model Type: VAE (Variational Autoencoder)
  • Location (ComfyUI):
    Should be placed in your ComfyUI/models/vae/ directory.

Why safetensors matters: It's faster, avoids torchscript pitfalls, and won't let you accidentally run arbitrary Python code just by loading a model. Basically, it won’t torch your GPU or your dignity.

πŸ“ Function in ComfyUI Workflows​

In ComfyUI, the VAE is used to decode latent space data into the RGB images you actually see. Think of it as the translator between the language of AI neurons and human eyeballs.

When a checkpoint (like wan_v2.2.ckpt) generates a latent image, this VAE decodes it into pixel data. Without a matching VAE, you're likely to get:

  • Desaturated colors
  • Crushed shadows
  • Blown highlights
  • A general β€œwhat is this soggy potato?” vibe.

So yes, a good VAE = happy visuals.

🧠 Technical Details​

  • Trained for: Compatibility with wan_v2.2 SD1.5 checkpoint
  • Architecture: Follows Stable Diffusion-style VAE layout, tuned with a custom loss function that better preserves color contrast and structural details.
  • Dynamic Range Handling: Excellent β€” unlike older VAEs, this one doesn’t nuke your highlights or mudify shadows.
  • Color Space Calibration: Carefully finetuned to reflect true prompt-driven saturation and tone shifts.

TL;DR: This VAE actually cares about your colors.

βœ… Benefits​

  • πŸ–Ό Improved visual fidelity: Richer tones, deeper contrast, cleaner lines.
  • 🌈 Better color reconstruction: Great for colorful and high-dynamic-range outputs.
  • πŸ§ͺ Built to match the wan_v2.2 SD1.5 model β€” using any other VAE is just asking for weirdness.
  • 🧡 No more stitching artifacts or blobby textures β€” goodbye AI meltdowns.

βš™οΈ Usage Tips​

  • Always pair it with the wan_v2.2 checkpoint. It’s not just a suggestion. It’s the VAE’s soulmate.
  • Use higher-resolution outputs (768x768 or above) to fully appreciate the detail retention.
  • If you're using it with Ultimate SD Upscale or Inpainting workflows, expect excellent results in both base and enhanced passes.
  • If you get slightly dull color output, try raising CFG slightly or increasing denoise β€” not the VAE's fault, it's being polite.

🎯 Best Fit Model Types​

This VAE was trained for, tested on, and basically obsessed with:

Checkpoint NameSD VersionMatch QualityNotes
wan_v2.2.safetensorsSD 1.5β˜…β˜…β˜…β˜…β˜…Perfect fit
Any SD1.5 realisticSD 1.5β˜…β˜…β˜…β˜…β˜†Works fine, just mind the colors
SDXL or SD2.x modelsSDXL/2.1β˜…β˜†β˜†β˜†β˜†DO NOT use. You’ve been warned.
Anime models (e.g. AOM)SD 1.5β˜…β˜…β˜†β˜†β˜†Technically works, but there are better anime VAEs

πŸ› οΈ Setup Instructions​

  1. Download the VAE
    wan_2.2_vae.safetensors

  2. Place the file here:
    ComfyUI/models/vae/wan_2.2_vae.safetensors

  3. Load the VAE in ComfyUI:

    • Add a VAELoader node
    • Set vae_name to "wan_2.2_vae.safetensors"
  4. Connect it to your CheckpointLoader or VAE Decode node.
    Bonus points if you use the wan_v2.2.ckpt checkpoint. They were literally made for each other.

πŸ”₯ What-Not-To-Do-Unless-You-Want-a-Fire​

  • ❌ Don't use it with SDXL models. You’ll get garbage, and it will be colorless garbage.
  • ❌ Don’t assume β€œany VAE works with any checkpoint.” No. VAE β‰  universal decoder.
  • ❌ Don’t forget to load it. Some checkpoints disable baked VAEs. No VAE = ugly outputs.
  • ❌ Don’t rename the file and forget what it was. You’ll end up trying 8 VAEs at once and blame your workflow instead.
  • ❌ Don’t stack it with baked-in VAEs. Pick one β€” not both. This isn’t a VAE sandwich.

πŸ“š Additional Resources​

πŸ“Ž Example Node Configuration​

{
"id": 5,
"type": "VAELoader",
"pos": [100, 200],
"size": [300, 60],
"inputs": [],
"outputs": [{ "name": "VAE", "type": "VAE" }],
"properties": { "vae_name": "wan_2.2_vae.safetensors" }
}

Node Chain Example (simple):


CheckpointLoader β†’ VAELoader β†’ KSampler β†’ VAEDecode β†’ SaveImage

Node Chain Example (advanced upscale):


CheckpointLoader β†’ VAELoader β†’ UltimateSDUpscale β†’ VAEDecode β†’ ImageSharpen β†’ SaveImage

πŸ“ Notes​

  • This VAE was part of the broader wan2.2 workflow release, which included color-sane generation, control module compatibility, and cleaner transitions between tiles.
  • While you can experiment with other VAE files, if you're using wan_v2.2, this is the only VAE that will show you its full potential.
  • The color science behind this VAE is genuinely impressive. It doesn't just decode β€” it interprets.