ComfyUI Node

Vae Switch

A/B test VAEs without re-plugging

By r-vage·Created about a year ago·Updated 5 months ago· 23
Vae Switch
  • input1
  • input2
  • vae
Input1

A two-way switch for VAE objects. Wire one VAE into input1 and another into input2, set the Input widget to 1 or 2, and the chosen VAE comes out the vae socket. Nothing else happens - no decoding, no switching logic beyond the pick. If you've ever swapped which VAE feeds your VAEDecode to fix weird colors, this is that swap made clickable instead of a cable drag.

Why would you bother? VAEs are the part of a checkpoint people actually swap at decode time. Common cases: comparing a stock SDXL VAE against a fine-tuned one, or routing a single VAE to several decode spots without copying the loader. It's a convenience node, not a power node - the VAE itself is small and loading it is cheap, so the win here is workflow ergonomics, not speed.

The mechanism is the same as every switch in this pack: the README's bypass trick applies. Leave the node enabled with the widget at 2, and bypassing the node (or a group that contains it) makes ComfyUI's core pass-through forward input1. So input2 is your default VAE and input1 is the alternate you flip to by bypassing. Set the widget to 1 if you want enabled = input1 instead.

What you touch:

  • Input - widget, 1 or 2.
  • input1 / input2 - VAE sockets, forced input. Wire a VAE loader or another switch's output into each.

Output is a single vae socket, straight into a VAEDecode (or another switch). Note this node has no Purge_VRAM toggle - the model and WAN switches in this pack have it, the plain VAE switch doesn't. If switching VAEs leaves a stale model in VRAM, you're better off with the multi-slot version, which is where the pack's VRAM handling actually lives.

Installing it

Part of the ComfyUI-RvTools_v2 pack. Install once, get every RvTools node: ComfyUI Manager → search ComfyUI-RvTools_v2, or clone it into custom_nodes:

cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI-RvTools_v2

Restart after. No model downloads, no keys. The dependency list (torch, numpy, Pillow, opencv-python, pilgram) is already satisfied by a stock ComfyUI install.

Heads-up: the pack is unmaintained and the README points to ComfyUI_Eclipse as its successor. The [RvTools] suffix on the name is from v2's big rename (v1's repo disappeared at one point, breaking workflows and confusing Manager's node display), so it's there on purpose.

Common issues

  • Blank output when an input is unconnected. Both VAE sockets are optional in the schema, but if you select a slot with nothing wired in, you get None and the decode downstream fails. Keep both wired.
  • Bypass vs. mute. Bypass forwards input1; mute kills the output. The bypass trick is the feature, so use it deliberately.
Category🫦 RvTools II/ Switches

Inputs (3)

NameTypeDefaultDescription
InputINT11–2
input1optVAE
input2optVAE

Outputs (1)

NameTypeDescription
vaeVAE