Extensions/InitialB Util
ComfyUI Extension

InitialB Util

ComfyUI Custom Node Package with Logic Nodes, Sigma Utilities, Text Tools, and Image Collage

By benjiyaya·Created 6 months ago·Updated 6 months ago· 1
benjiyaya/Comfyui_InitialB_Util
Nodes23
On cloudLocal install
CategoryInitialB/logic, InitialB/sigma/custom
Stars1
Updated6 months ago

Nodes (23)

Bool

A plain on/off switch that speaks BOOLEAN

InitialB/logic
Compare-🔬

How your ComfyUI workflow learns to make decisions

InitialB/logic
📈 Custom Graph Sigma

Draw your noise schedule instead of picking one from a dropdown

InitialB/sigma/custom
DebugPrint

Reading what a workflow actually produced

InitialB/logic
🎚️ Denoising Strength

The img2img denoise knob, for people driving samplers from raw sigmas

InitialB/sigma/custom
Float-🔬

A reusable decimal-number source for your workflow

InitialB/logic
If ANY return A else B

The ComfyUI switch that actually works

InitialB/logic
🖼️ Image Batch to Grid

Turn a batch of images into one grid

InitialB/image/collage
🔄 For Loop End

Why the For Loop isn't finished until you close it

InitialB/flow/loop
🔄 For Loop Start

ComfyUI's for loop is finally usable — here's the Start half

InitialB/flow/loop
🔢 Math Int

Integer math for people who are tired of hand-counting

InitialB/utility
📊 Range Int

Python's range(), finally, as a ComfyUI node

InitialB/utility
🔁 While Loop End

The node that actually makes the loop loop

InitialB/flow/loop
🔁 While Loop Start

Run work until it's done, not until a number says so

InitialB/flow/loop
Int-🔬

The boring node your seed wiring quietly wants

InitialB/logic
🖼️ Multi-Image Collage

Stitch up to five images into a collage, direction per image

InitialB/image/collage
📝 Multi-Line String

A text box that doesn't make you fight single-line hell

InitialB/text
📋 Preset Sigma Generator

Ten known noise schedules on demand, without touching the KSampler

InitialB/sigma/custom
🔍 Analyze Sigma

Know what your sigma schedule is actually doing

InitialB/sigma/custom
🔗 Join Sigma Values

Join Sigma Values — the glue for mixing two noise schedules

InitialB/sigma/custom
📏 Scale Sigma

Turn a noise schedule up, down, or sideways

InitialB/sigma/custom
String

The text node at the root of every prompt branch

InitialB/logic
🔗 String Joiner

Collapse a multiline list back into one string with a delimiter

InitialB/text
Readme

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

2026-03-02 042235

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

2026-03-02 042135

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

2026-03-02 042217

Text Tools

  • 📝 Multi-Line String: Input multiline text and output as single string
  • 🔗 String Joiner: Join multiple strings with configurable separator

2026-03-02 042252

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)

  1. Open ComfyUI Manager
  2. Search for "InitialB Util"
  3. 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

  1. Download the ZIP file from releases
  2. Extract to ComfyUI/custom_nodes/comfyui_InitialB_Util/
  3. 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 connection
    • index: Current iteration number (0-based)
    • value1-5: Passed-through values

For Loop End:

  • Inputs:
    • flow: Connection from For Loop Start
    • value1-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 loop
    • value0-4: Values to pass through (5 carriers)
  • Outputs:
    • flow: Flow control connection
    • value0-4: Passed-through values

While Loop End:

  • Inputs:
    • flow: Connection from While Loop Start
    • condition: Boolean to continue or exit
    • value0-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 integer
  • b: Second integer
  • operation: Math operation (add, subtract, multiply, divide, modulo, power)

Outputs:

  • result: Result of the operation

Operations:

  • add: a + b
  • subtract: a - b
  • multiply: a * b
  • divide: a // b (integer division)
  • modulo: a % b
  • power: 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.