Extensions/comfyui-job-iterator
ComfyUI Extension Runs on cloud

comfyui-job-iterator

Implements iteration over sequences within a single workflow run. [w/NOTE: This node replaces the execution of ComfyUI for iterative processing functionality.]

By ali1234·Created 3 years ago·Updated 3 months ago· 130
ali1234/comfyui-job-iterator
Nodes26
On cloudRunnable
Categoryali1234/sequence, ali1234/job
Stars130
Updated3 months ago

Nodes (26)

Combinations

Every n-way grouping of a sequence, without writing them out by hand

ali1234/sequence
CombineJobs

Zip or cross-product multiple sweeps into one job

ali1234/job
EnumerateJob

Stamp a running index onto every step of a job

ali1234/job
FormatAttributes

Turn a job step into one readable string with Python format syntax

ali1234/job
GetAttribute

Pull a named value back out of a job step

ali1234/job
GetAttributeFloat

GetAttribute with a FLOAT-typed socket — not a cast

ali1234/job
GetAttributeInt

GetAttribute with an INT-typed socket — not a cast

ali1234/job
GetAttributeString

GetAttribute with a STRING-typed socket — not a cast

ali1234/job
GetJobStep

Grab one specific step out of a job by index

ali1234/job
Interact

A live Python REPL wired into your workflow

ali1234/debug
JobToList

The node that actually turns your job into a loop

ali1234/job
Join

Flatten each item of a sequence-of-tuples into a string

ali1234/sequence
JoinImageBatch

Turn a batch of images into one contact-sheet image

ali1234/image
JoinImages

Glue two images side-by-side or stacked

ali1234/image
Literal

Hand-type a sequence — but it has to be real Python, not free text

ali1234/sequence
MakeJob

Turn a list of values into a parameter sweep ComfyUI will actually run

ali1234/job
ModelFinder

Resolve a list of filenames to real model paths

ali1234/sequence
Permutations

Test every ordering of a list, not just every value

ali1234/sequence
ProgressBar

A tiny status image you render inside your own loop

ali1234/image
Range

The numeric sweep primitive, straight from Python's range()

ali1234/sequence
Reorder

Sort or reverse a sequence — and skip the one option that's currently broken

ali1234/sequence
SelectImageBatch

Pull one image out of a batch by index

ali1234/image
SelectImageList

Pick one image out of a list, not a batch

ali1234/image
Slice

Trim a sequence down to dry-run part of a big sweep

ali1234/sequence
Stringify

See what's actually flowing through a wire

ali1234/debug
StringToImage

Render a caption you can burn into your output grid

ali1234/image
Readme

ComfyUI Job Iterator

Implements iteration over sequences within a single workflow run.

Fixing Old Workflows

Replace the old JobIterator node with the new JobToList node.

Installation

Just clone into custom_nodes. There are no dependencies.

Usage

  1. Make a SEQUENCE containing the values to use at each step.
  2. Turn it into a JOB using a MakeJob node, and enter a name for the attribute.
  3. If you need to modify more than one parameter, make more SEQUENCES and turn them into JOBs.
  4. Connect to a JobToList.
  5. Connect the attributes output to GetAttribute nodes to pull out the value of a name at the current step.
  6. Connect those values into a normal workflow.
  7. Click "queue prompt".

Example

workflow embedded

Misc Nodes

Also includes some miscellaneous nodes:

  • Stringify - returns str() and repr() of the input.
  • Interact - opens a debug REPL on the terminal where you ran ComfyUI whenever it is evaluated.
  • Join image batch - turns a batch of images into one tiled image.
  • Select from image batch - outputs a single image from a batch.