ComfyUI Node

SEGS Switch

A/B two detection outputs in Impact Pack detailer workflows

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

If you've used Impact Pack's FaceDetailer, you've met SEGS - the data structure that carries detected segments (bounding boxes, masks, per-segment metadata) from a detector into the detailer. SEGS Switch is the two-way switch for that type: input1 and input2 are SEGS sockets, the Input integer picks which one flows to the SEGS output. It's the active (non-deprecated) part of the RvTools switch family, and it exists because in detailer-heavy workflows you often want to swap detection sources without rewiring.

How it works

The mechanism is the pack standard: if Input == 1: return input1 else: return input2, with the bypass behavior from the README - when the node is bypassed, whatever's on input1 goes to the target. Unlike the scheduler switches, the inputs here are typed SEGS, not *, so ComfyUI validates the connection: a SEGS output from Impact's detector nodes drops straight in. The output is a SEGS socket too, so it feeds FaceDetailer, SEGS to anything, or whatever's next in the detailer chain.

The inputs that matter

  • Input (INT, 1 or 2) - slot selector, default 1.
  • input1 / input2 (SEGS) - the two segment streams to choose between.

Why you'd bother

Detailer workflows accumulate alternative detection paths fast - a YOLO detector for faces, a SAM-based detector for hands, a different detection size for close-ups. Instead of rerouting cables every time you want to compare two detector settings, park both outputs on this switch and flip Input. You can even drive Input from a slider to cycle detection sources between runs and see which detector the model actually prefers.

Installing it

ComfyUI Manager → search ComfyUI-RvTools_v2, install, restart; or:

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

No model downloads. Note this does not install Impact Pack for you - SEGS is Impact's data type, so you need ComfyUI-Impact-Pack (via Manager) installed too, or this node's sockets have nothing to plug into.

Gotchas

The usual pack caveats: unmaintained (superseded by ComfyUI_Eclipse) and the v2 rename means legacy ComfyUI-RvTools v1 workflows report missing nodes. Node-specific: if the SEGS output type doesn't accept your connection, double-check both sides are actually SEGS - some packs expose "SEGS" under slightly different type names, and Impact's is the canonical one. Also remember bypassed means input1 wins, so if you mute the switch expecting it to go silent, you'll still get a stream on the output.

Category🫦 RvTools II/ Switches

Inputs (3)

NameTypeDefaultDescription
InputINT11–2
input1optSEGS
input2optSEGS

Outputs (1)

NameTypeDescription
SEGSSEGS