InitialB Util
ComfyUI Custom Node Package with Logic Nodes, Sigma Utilities, Text Tools, and Image Collage
Nodes (23)
A plain on/off switch that speaks BOOLEAN
How your ComfyUI workflow learns to make decisions
Draw your noise schedule instead of picking one from a dropdown
Reading what a workflow actually produced
The img2img denoise knob, for people driving samplers from raw sigmas
A reusable decimal-number source for your workflow
The ComfyUI switch that actually works
Turn a batch of images into one grid
Why the For Loop isn't finished until you close it
ComfyUI's for loop is finally usable — here's the Start half
Integer math for people who are tired of hand-counting
Python's range(), finally, as a ComfyUI node
The node that actually makes the loop loop
Run work until it's done, not until a number says so
The boring node your seed wiring quietly wants
Stitch up to five images into a collage, direction per image
A text box that doesn't make you fight single-line hell
Ten known noise schedules on demand, without touching the KSampler
Know what your sigma schedule is actually doing
Join Sigma Values — the glue for mixing two noise schedules
Turn a noise schedule up, down, or sideways
The text node at the root of every prompt branch
Collapse a multiline list back into one string with a delimiter
InitialB Util for ComfyUI
InitialB Util is a ComfyUI custom node package that provides various utility nodes for workflow automation, logic operations, sigma manipulation, text processing, image collage creation, and flow control.
✨ Features
Core Features
- 🖱️ Interactive Graph Editor: Add, move, or delete control points directly on the node's graph
- 🟦 Smooth Catmull-Rom Spline: Uses centripetal Catmull-Rom spline for smooth interpolation
- 📤 Export Schedules as Tensors: Outputs sigma value tensors for use in sampling pipelines
- 👀 Visual Feedback: Live preview of curves and control points
- 🎲 Seed Support: Reproducible results with seed input/output
- 🖼️ Collage Creation: Combine multiple images with directional control
- 🔄 Flow Control: For loops and while loops for iterative workflows
Node Collection
Sigma Utilities
- 📈 Custom Graph Sigma: Main interactive curve editor with 12+ presets
- 🔗 Sigma Joiner: Combine multiple sigma schedules with blend modes
- 📏 Sigma Scaler: Scale and transform sigma values
- 🔍 Sigma Analyzer: Get detailed statistics about sigma schedules
- 🎚️ Denoising Strength Modifier: Control denoising for img2img workflows
- 📋 Preset Sigma Generator: Quick access to common schedules
Logic Nodes
- 🔬 Compare: Compare two values with various operators (==, !=, <, >, <=, >=)
- 🔬 Int/Float/String/Bool: Data type nodes for handling different value types
- 🔬 If ANY return A else B: Conditional execution based on boolean
- 🔬 DebugPrint: Print any input to console for debugging
Text Tools
- 📝 Multi-Line String: Input multiline text and output as single string
- 🔗 String Joiner: Join multiple strings with configurable separator
Flow Control
- 🔄 For Loop Start/End: Execute nodes in a loop with iteration counting
- 🔁 While Loop Start/End: Execute nodes while condition is true
- 📊 Range Int: Generate integer sequences (start, stop, step)
- 🔢 Math Int: Integer math operations (add, subtract, multiply, divide, modulo, power)
📦 Installation
Method 1: ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Search for "InitialB Util"
- Click Install
Method 2: Manual Installation
cd ComfyUI/custom_nodes/
git clone https://github.com/yourusername/comfyui_InitialB_Util.git
cd comfyui_InitialB_Util
pip install -r requirements.txt
Method 3: Download ZIP
- Download the ZIP file from releases
- Extract to
ComfyUI/custom_nodes/comfyui_InitialB_Util/ - Restart ComfyUI
🎯 Node Reference
Sigma Utility Nodes
See earlier sections for sigma utility documentation.
Logic Nodes
See earlier sections for logic nodes documentation.
Text Tool Nodes
See earlier sections for text tools documentation.
Image Collage Nodes
See earlier sections for image collage documentation.
Flow Control Nodes
🔄 For Loop
Execute a set of nodes multiple times with incrementing index.
For Loop Start:
- Inputs:
total: Number of iterations (1-10000)value1-5: Optional values to pass through loop
- Outputs:
flow: Flow control connectionindex: Current iteration number (0-based)value1-5: Passed-through values
For Loop End:
- Inputs:
flow: Connection from For Loop Startvalue1-5: Values from loop body
- Outputs:
value1-5: Final values after loop completion
Usage:
[For Loop Start: total=5] → [Your Nodes] → [For Loop End]
↓ ↑
index=0,1,2,3,4 ↓
(auto-increments)
🔁 While Loop
Execute nodes while a condition is true.
While Loop Start:
- Inputs:
condition: Boolean to continue loopvalue0-4: Values to pass through (5 carriers)
- Outputs:
flow: Flow control connectionvalue0-4: Passed-through values
While Loop End:
- Inputs:
flow: Connection from While Loop Startcondition: Boolean to continue or exitvalue0-4: Values from loop body
- Outputs:
value0-4: Final values after loop exits
Usage:
[While Loop Start] → [Your Nodes] → [Compare/Condition] → [While Loop End]
↓ ↑
(pass values) (check condition)
📊 Range Int
Generate a sequence of integers.
Inputs:
start: Starting value (default: 0)stop: Ending value (exclusive, default: 10)step: Step size (default: 1)
Outputs:
values: List of integers from start to stop with step
Example:
- start=0, stop=10, step=2 → [0, 2, 4, 6, 8]
🔢 Math Int
Perform integer mathematical operations.
Inputs:
a: First integerb: Second integeroperation: Math operation (add, subtract, multiply, divide, modulo, power)
Outputs:
result: Result of the operation
Operations:
add: a + bsubtract: a - bmultiply: a * bdivide: a // b (integer division)modulo: a % bpower: a ** b
🎨 Usage Guide
For Loop Example
[For Loop Start: total=10]
↓
[index: 0-9]
↓
[Generate Image per iteration]
↓
[For Loop End] → [Final Output]
While Loop Example
[While Loop Start: condition=True]
↓
[Process Data]
↓
[Compare: check if done] → [While Loop End]
↓
(exit when condition=False)
Combining Flow Control
[Range Int: 0-100, step=10] → [For Loop Start]
↓
[Process Each]
↓
[For Loop End]
📝 Requirements
- Python 3.9+
- PyTorch
- NumPy
- SciPy
- Pillow
- ComfyUI (with dynamic execution graph support for loops)
📄 License
MIT License
🤝 Credits
- InitialB Util package structure and architecture
- Logic nodes based on ComfyUI-Logic by theUpsider
- Flow control patterns inspired by ComfyUI-Easy-Use yolain
- Sigma functionality from original work by JoeNavark
📮 Support
For issues and feature requests, please open an issue on GitHub.