Extensions/Akatz-Loop-Nodes
ComfyUI Extension

Akatz-Loop-Nodes

ComfyUI nodes related to execution inversion: For Loops, While Loops, Lazy Switches, Utility nodes. (Originally from https://github.com/BadCafeCode/execution-inversion-demo-comfyui)

By akatz-ai·Created about a year ago·Updated 8 months ago· 23
akatz-ai/ComfyUI-Execution-Inversion
Nodes32
On cloudLocal install
CategoryAkatz Loop Nodes/Lists, Akatz Loop Nodes/Image
Stars23
Updated8 months ago

Nodes (32)

Accumulate | akatz-loops

The tiny node that turns a loop into a list

Akatz Loop Nodes/Lists
Accumulation Get Item | akatz-loops

Grab Any Single Value Out of a Loop's Accumulation

Akatz Loop Nodes/Lists
Accumulation Get Length | akatz-loops

How Many Iterations Did Your Loop Actually Run?

Akatz Loop Nodes/Lists
Accumulation Head | akatz-loops

Pop the First Value Off a Loop's Accumulation

Akatz Loop Nodes/Lists
Accumulation Set Item | akatz-loops

Edit one element of an accumulation without touching the rest

Akatz Loop Nodes/Lists
Accumulation Tail | akatz-loops

Pop the last value off an accumulation

Akatz Loop Nodes/Lists
Accumulation to List | akatz-loops

The Bridge From Loop Internals to Normal ComfyUI Lists

Akatz Loop Nodes/Lists
Adaptive Sharpening | akatz-loops

Unsharp Mask, the Honest Way

Akatz Loop Nodes/Image
Color Correction | akatz-loops

Adaptive color correction that won't nuke already-vivid images

Akatz Loop Nodes/Image
Color Correction + Sharpening | akatz-loops

One Stop for the Two Post-Process Passes You Keep Re-Adding

Akatz Loop Nodes/Image
Debug Print | akatz-loops

See what's actually flowing through a wire

Akatz Loop Nodes/Debug
Execution Blocker | akatz-loops

Stop a Branch Without Deleting It

Akatz Loop Nodes/Flow
For Loop Close | akatz-loops

The other half of ComfyUI's for loop — where the magic happens

Akatz Loop Nodes/Flow
_ForLoopCounter | akatz-loops

The Invisible Counter That Runs Every For Loop in This Pack

For Loop Open | akatz-loops

ComfyUI for loops are real now — here's the open half

Akatz Loop Nodes/Flow
Get Float From List | akatz-loops

Grab one float from a list by index

Akatz Loop Nodes/Lists
Get Int From List | akatz-loops

Pull One Integer Out of an Int List by Index

Akatz Loop Nodes/Lists
Integer List Generator | akatz-loops

Generate a Batch of Seeds (or Any Integer Sequence) in One Node

Akatz Loop Nodes/Lists
Lazy Conditional | akatz-loops

A ten-way if/else that only runs the branch you pick

Akatz Loop Nodes/Logic
Lazy Index Switch | akatz-loops

Ten Inputs, One Output, Chosen by an Index — Without Computing the Losers

Akatz Loop Nodes/Logic
Lazy Mix Images | akatz-loops

Mask-based image blending that skips the work it doesn't need

Akatz Loop Nodes/Logic
Lazy Switch | akatz-loops

A boolean switch that doesn't execute the losing branch

Akatz Loop Nodes/Logic
List to Accumulation | akatz-loops

Dump a regular list into the accumulation machinery

Akatz Loop Nodes/Lists
Make List | akatz-loops

Turn Ten Loose Values Into One List

Akatz Loop Nodes/Lists
Prepare Latent Denoise | akatz-loops

Exact sigma ladders and one-shot noise injection for custom sampling

Akatz Loop Nodes/Latent
Sampler Selector | akatz-loops

A sampler as a wire, with a text-override escape hatch

Akatz Loop Nodes/Utility
Scheduler Selector | akatz-loops

Pick a scheduler on a wire — or type one that isn't in the list

Akatz Loop Nodes/Utility
Seed Interp Noise | akatz-loops

Noise that morphs between seeds instead of snapping

Akatz Loop Nodes/Latent
Smart Loop Preview Image | akatz-loops

Preview Every Loop Iteration Without the Node Explosion

Akatz Loop Nodes/Image
String to Combo | akatz-loops

Feed a String Into a Dropdown That Refuses Strings

Akatz Loop Nodes/Utility
While Loop Close | akatz-loops

The Loop Bottom That Re-Runs Your Graph Until You Say Stop

Akatz Loop Nodes/Flow
While Loop Open | akatz-loops

The Top of the Loop That ComfyUI Says You Can't Have

Akatz Loop Nodes/Flow
Readme

Akatz Loop Nodes for ComfyUI

https://github.com/user-attachments/assets/fde8c0d5-180c-47fe-ba4a-5b1aeb29be66

Custom nodes for loops, flow control, lazy switches, image processing, and latent manipulation.

Node Categories

Flow Control

  • WhileLoopOpen/Close - While loop with condition checking
  • ForLoopOpen/Close - For loop with iteration counter
  • ExecutionBlocker - Conditionally block execution

Logic (Lazy Nodes)

  • LazySwitch - Switch between inputs based on condition
  • LazyIndexSwitch - Switch between multiple inputs by index
  • LazyMixImages - Blend images based on condition
  • LazyConditional - Conditional value selection

Accumulation & Lists

  • AccumulateNode - Accumulate values across iterations
  • AccumulationHead/Tail - Get first/last from accumulation
  • AccumulationToList/ListToAccumulation - Convert between types
  • AccumulationGetLength/GetItem/SetItem - Manipulation utilities
  • MakeListNode - Create lists from values
  • GetFloatFromList/GetIntFromList - Extract values
  • IntegerListGeneratorNode - Generate integer sequences

Utility

  • SamplerSelector - Select samplers with override
  • SchedulerSelector - Select schedulers with override
  • StringToCombo - Convert strings to combo type
  • DebugPrint - Debug output

Image

  • ColorCorrection - Adaptive saturation and white balance
  • AdaptiveSharpening - Edge-aware sharpening
  • ColorCorrectionAndSharpening - Combined processor
  • SmartLoopPreviewImage - Preview with loop iteration accumulation

Latent

  • SeedInterpNoise - Interpolated noise with SLERP/LERP
  • PrepareLatentDenoise - Prepare latents for denoising

Credits

Based on execution inversion concepts from https://github.com/BadCafeCode/execution-inversion-demo-comfyui