Nodes/ComfyUI_AC_FUN-V1.0/Pciture_选择模式
ComfyUI Node

Pciture_选择模式

An A/B switch for images — flip a dropdown, pick which one flows through

By A719689614·Created 3 years ago·Updated 8 days ago· 3
Pciture_选择模式
  • image_1
  • image_2
  • IMAGE
mode
tips判定布尔值

Pciture_选择模式 ("select mode") is the classic A/B switch, but for images. You feed it two images, pick one in a dropdown, and it passes that one through. The code is four lines - if mode == "image_1": return image_1 - which is the whole point: it's plumbing, not magic, and it's the kind of node you reach for when you're tired of rewiring the canvas by hand.

Where it earns its keep: A/B testing. Generate two variants, two upscaled versions, or two ControlNet hint images, wire them both in, and flip between them from one dropdown to compare downstream - or to run the same branch twice for a side-by-side. It's also handy in a shared workflow where you want a "choose your image here" control instead of forcing people to rewire sockets. Since it's a manual selector, it's not doing anything clever - there's no conditional logic, no fallback. If you want a node that picks the first non-empty input automatically, that's a different animal (the rgthree "Any Switch" style); this one just obeys the dropdown.

The inputs

  • mode - the dropdown with two choices: image_1 and image_2. That's your switch.
  • image_1 / image_2 - the two IMAGE inputs. Both are required, so wire both or the node errors out. If you only have one image, wire the same image into both - it's a selection node, it doesn't care.
  • tips - the author's label ("判定布尔值", roughly "boolean decision"), decorative. Ignore it.

Output is a single IMAGE socket, which drops into anything that takes an image: a sampler's latent encode, a preview, an upscaler, another select node if you want to build a bigger chain.

Installing the pack

  • ComfyUI Manager: search "ComfyUI_AC_FUN" and install.
  • Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/A719689614/ComfyUI_AC_FUN-V1.0

Restart ComfyUI. The pack is Cc啊程's (a Bilibili creator and architect by trade) Chinese-labeled suite; no model downloads, no heavy dependencies. Everything lives under 🌌AC_FUNV1.0 with Chinese names - this one's in the 🅿PictureTools submenu.

Bottom line

A perfectly decent image A/B switch, and honestly the closest thing this pack has to an original utility. Core doesn't ship an image selector quite this bare, so if you do a lot of compare-and-swap work, it's worth keeping. Just remember both inputs are required - the error message "you forgot to plug in image_2" is a feature, not a bug.

Category🌌AC_FUNV1.0/🅿PictureTools

Inputs (4)

NameTypeDefaultDescription
modeCOMBO2 options: image_1, image_2
image_1IMAGE
image_2IMAGE
tipsSTRING判定布尔值

Outputs (1)

NameTypeDescription
IMAGEIMAGE