ComfyUI-FeiHou-Toolbox
A ComfyUI extension with 9 custom nodes.
Nodes (9)
SAM3 builds the collage
A switch that only needs the branch you picked
Flip between two workflow groups like an A/B test
Stack image batches without the black-frame tax
The tiniest node that saves a real headache
Drag your reference cutouts where you want them
A seed controller that actually feeds SamplerCustomAdvanced
SCAIL-2's support masks, rendered for you (plus a prefix bonus)
VideoHelperSuite's save node, with your prompt baked into one file
ComfyUI-FeiHou-Toolbox
A ComfyUI custom node toolbox focused on multi-image references, SAM3/SAM3.1 person cutouts, SCAIL-2 mask workflows, image batch utilities, boolean routing, and group-based workflow switching.
Current version: v2.9.0. The latest version of ManualRefCollage is v2.2.2.
<p align="right"> <a href="README_CN.md">中文说明</a> </p>Installation
ComfyUI Manager
Search for ComfyUI-FeiHou-Toolbox in ComfyUI Manager, install it, then restart ComfyUI.
Manual Install
Open your ComfyUI custom_nodes directory and run:
git clone https://github.com/FX-FeiHou/ComfyUI-FeiHou-Toolbox.git
After installing or updating, restart ComfyUI and hard-refresh the browser page.
Nodes Overview
Node display titles follow the current ComfyUI language setting. This English README shows the English titles.
| Display Title | Node ID | Version |
| --- | --- | --- |
| Create SCAIL-2 Colored Mask V2 | SCAIL2ColoredMaskV2 | v2.6 |
| Auto Ref Collage | AutoRefCollage | v1.0 |
| Manual Ref Collage | ManualRefCollage | v2.2.2 |
| Switch V2 | ComfySwitchNodeV2 | v2.0 |
| Invert Boolean | InvertBoolean | v2.3 |
| Image Batch Multi V2 | ImageBatchMultiV2 | v2.4 |
| Fast Groups Bypass Switch | FastGroupsBypassSwitch | v2.0 |
| Random Seed Noise | RandomSeedNoise | v2.8 |
| Video Combine 🎥🅥🅗🅢 V2 | VideoCombineV2 | v2.9 |
Create SCAIL-2 Colored Mask V2
An enhanced version of ComfyUI's original SCAIL-2 colored mask node, built for mask routing, separation, and batch handling in multi-reference workflows.
prefix_mask_mode supports:
Multi Image Single Color: each output batch image is single-color, matching the currentreference_image_maskforeground color.Multi Image Multi Color: each output batch image uses the node's object color palette rule.Single Image Multi Color: output batch images use batch-order colors: blue, red, green, magenta, cyan, then loop after 5 images.
render_device supports:
gpu: renders masks on the graphics card for speed, using VRAM.cpu: offloads mask rendering to system memory to reduce VRAM use, at a slower speed.
Auto Ref Collage
Automatically uses SAM3/SAM3.1 to cut people out from multiple reference images and compose them into a single multi-person reference collage.
Manual Ref Collage (v2.2.2)
A manual collage node that loads SAM3/SAM3.1 cutouts onto an editable canvas, allowing users to adjust position and scale before outputting the final composed image.
Switch V2
A revised switch node for toggling between two workflow paths while reducing issues caused by inactive branches.
Invert Boolean
An input-only boolean node that inverts true to false and false to true. It is compatible with PrimitiveBoolean output chains.
Image Batch Multi V2
A copy-style variant of KJNodes ImageBatchMulti for creating a batch from multiple image inputs. It keeps the dynamic input-count workflow, but skips missing or bypassed image inputs instead of adding black placeholder frames. If no image input is available, it returns no image output.
Fast Groups Bypass Switch (v2.0)
A group bypass and switch node that binds two ComfyUI Groups, switches which group is active, bypasses the inactive group, and outputs the corresponding input.
Changelog
v2.9.0
- Added
Video Combine 🎥🅥🅗🅢 V2, based on VideoHelperSuite's Video Combine interface, format presets, VAE/LATENT handling, date-prefix handling, and preview behavior. - When audio is connected, Video Combine V2 writes one final video file containing the video stream, audio stream, and ComfyUI prompt/workflow metadata.
- Restored the complete VideoHelperSuite format list and per-format dynamic widgets. The preview auto-plays muted and enables audio while hovered.
v2.8
- Added
RandomSeedNoise, a rgthree-style random seed controller that outputs standardNOISEforSamplerCustomAdvanced.
v2.6
- Changed the render device to
gpuandcpuoptions.gpuis the default; if a long video runs out of VRAM, manually switch tocpu.
v2.5
- Optimized SAM3/SAM3.1 cutout memory usage in
AutoRefCollageandManualRefCollage. - Wrapped CLIP prompt encoding and SAM3 inference in
torch.no_grad()to avoid retaining inference graphs during preview loading and workflow execution. - Reduced the matched-object refinement peak by keeping only the best mask/box before refinement and avoiding a full original-image GPU copy before cropping.
v2.4
- Added
ImageBatchMultiV2(Image Batch Multi V2/图像组合批次(多重)V2), based on KJNodesImageBatchMulti. - Kept the original dynamic
inputcountandUpdate inputsworkflow. - Changed missing-input handling: unconnected or bypassed image inputs are skipped instead of being replaced by black frames.
- If no image inputs are available, the node returns no image output.
v2.3
- Added
InvertBoolean(Invert Boolean/反转布尔值), a single-input single-output boolean inverter. - The node is compatible with
PrimitiveBooleanoutput chains and flipstruetofalse,falsetotrue.
v2.2.2
- Changed
ManualRefCollagesize handling so the manual canvas reads and applies currentwidth/heightinputs only when应用尺寸is clicked. ManualRefCollageno longer auto-applies linked width/height during node creation, connection changes, or载入图片, avoiding early reads before KJNodesSet/Getvariable chains are ready.- Added compatibility for KJNodes-style
Set_variable/Get_variablewidth and height routing; clicking应用尺寸now attempts to resolve the matchingSetnode and read the value from its input chain.
v2.2.1
- Fixed
ManualRefCollagenot correctly reading externally connectedwidth/heightinputs in both the frontend manual canvas and backend execution. - Manual collage now prioritizes linked width/height inputs and falls back to the node's own width/height widgets only when linked values cannot be resolved.
v2.2
- Updated
Create SCAIL-2 Colored Mask V2prefix_mask_modebehavior. Multi Image Single Colorrenders every output batch image as a single color matching the currentreference_image_maskforeground color.- Added
Multi Image Multi Colorfor rendering every output batch image with the node's object color palette rule. Single Image Multi Colorrenders output batch images with batch-order colors: blue, red, green, magenta, cyan, then loops after 5 images.
v2.1
- Fixed
ManualRefCollagepreview loading images from ignored/bypassed inputs. - Fixed ignored/bypassed image inputs still being included during manual collage execution.
- Fixed externally connected
width/heightbeing overridden by stalelayout_jsondimensions.
v2.0
- Added
FastGroupsBypassSwitch(多框忽略并切换). - Supports enabling, bypassing, and output switching between two ComfyUI Groups.
- UI follows the rgthree Fast Groups Bypasser style for large grouped workflows.
v1.5
- Finalized
ManualRefCollage(多参图像手动拼接). - Supports SAM3/SAM3.1 cutouts and manual layout for up to 5 reference images.
- Supports using the first video frame as a composition reference while keeping the final output on a black or white background.
v1.0
- Initial release.
- Added
Create SCAIL-2 Colored Mask V2. - Added
AutoRefCollage.