Nodes/ComfyUI-RvTools_v2/WAN_VAE Multi-Switch
ComfyUI Node

WAN_VAE Multi-Switch

Route the right Wan VAE without rewiring

By r-vage·Created about a year ago·Updated 5 months ago· 23
WAN_VAE Multi-Switch
  • input1
  • input2
  • input3
  • input4
  • input5
  • vae
Purge_VRAMfalse

Wan models don't ship with a normal VAE. They use Wan's own latent VAE - the WANVAE object that WanVideoWrapper loads alongside the model - and it's a distinct thing you can swap, which is exactly what this switch is for. The WAN_VAE Multi-Switch takes up to five WANVAE inputs and returns the first one that isn't None. First-non-None, no widget, choose by bypassing. If you've read any of the other multi-switches in this pack, you already know the mechanics; the only new thing here is the type on the sockets.

When does switching a Wan VAE actually matter? Two honest cases. First, Wan 2.1 vs. Wan 2.2 use different VAE weights, so if you keep both model families around - the 14B 2.1 for one workflow, 2.2 for another - you want the matching VAE to follow whichever model branch is active. That's the clean use for this node: one VAE per slot, bypass the branch you're not running, the right VAE flows out. Second, fine-tuned Wan VAEs exist; some users prefer them for color or detail on decode. If you've got a stock VAE and a tuned one, this is your picker.

The README's placement rule applies as always: bypassable VAE loaders in the early slots, the always-on default in the last slot. The search runs input1 → input5, so an always-enabled loader in slot 1 is never None and would win every time, silently ignoring everything after it. And keep at least one slot permanently wired, because if every input is None the node raises Missing Input: Multi Switch WAN_VAE has no active Input and stops the queue.

Output is a single vae, which feeds WanVideoWrapper's VAE decode or the sampler's VAE input. It also carries the Purge_VRAM toggle (required, default off) - unloads all models from VRAM before the switch runs. For a VAE switch it's mostly unnecessary (VAEs are small), but it's there for symmetry with the model switches, and it's harmless to leave off.

Installing it

Ships in ComfyUI-RvTools_v2 - Manager → search ComfyUI-RvTools_v2, or clone https://github.com/r-vage/ComfyUI-RvTools_v2 into custom_nodes and restart. The WANVAE type comes from ComfyUI-WanVideoWrapper, the implicit dependency for every WAN node in this pack - it's not listed in RvTools' own requirements, but without it there are no sockets. No model downloads for the switch itself; the VAE weights come from your Wan model downloads.

The pack is unmaintained; the README points at ComfyUI_Eclipse. The [RvTools] suffix is from v2's rename after v1's repo vanished.

Common issues

  • No WANVAE sockets - WanVideoWrapper isn't installed. Fix that first.
  • "Missing Input" error - all five slots bypassed or empty. Keep the default VAE wired into the last slot.
  • Wrong VAE for your model - if the 2.1 VAE keeps winning over 2.2 because it's in an earlier slot and always on, that's first-non-None. Reorder: options early, default last.
Category🫦 RvTools II/ Multi-Switches (WVW)

Inputs (6)

NameTypeDefaultDescription
Purge_VRAMBOOLEANfalse
input1optWANVAE
input2optWANVAE
input3optWANVAE
input4optWANVAE
input5optWANVAE

Outputs (1)

NameTypeDescription
vaeWANVAE