LiLo node

Image LiLo and Video LiLo (Lots In, Lots Out) repeat the nodes that feed them, once for each result. Use one when you want several results from a whole branch of your graph, not just one node.

  1. Add an Image LiLo or Video LiLo node.

  2. Connect the image or video you want to its Image to Save or Video to Save input.

  3. Set Output Count to the number of results you want, from 1 to 16.

  4. Run the graph. Each result appears on its own output: Image 1, Image 2, and so on.

docs_batching-node_04.png

An Image LiLo with Output Count set to 4

  • Every node that feeds the LiLo runs once for each result, including text and prompt nodes. Each result is a full run of those nodes, so each result is billed.

  • Each result is its own run. If one fails, the others still finish.

  • Each result gets its own seed. The first uses the seed shown on the node, the second uses the next seed, and so on. So results can differ even with the same inputs.

  • To get the same result again, set the seed yourself. A seed that comes in on a connection is the same for every result.

  • A GenAI node that feeds a LiLo must have Number of results set to 1. If it's higher, the graph doesn't run: nothing runs, and the node shows a Too Many Results error. Set Number of results to 1 and set Output Count on the LiLo instead.

docs_batching-node_05_too-many-results.png

A GenAI node with Number of results on 2, feeding a LiLo: nothing runs, and the node shows the Too Many Results error

A LiLo has a run behavior, like a GenAI node. To keep its results, set it to Hold. A held LiLo passes its results on, and the nodes that only feed it don't run. See the Run Behavior page.

Note: A LiLo can't run inside a For Each container. Move it outside the container, or set it to Hold.

Two LiLos fed by the same nodes share one set of runs. The number of runs follows the higher Output Count of the two.

Number of results and Output Count

GenAI nodes have Number of results built in, so one node can make several results without a LiLo. Both give you several results. Use one or the other, not both.

 

Number of results (on a GenAI node)

Output Count (on a LiLo)

What runs

That one node

Every node that feeds the LiLo

How

One run that makes the results in parallel

One full run for each result

Seed

A fixed Seed is the same for every result

Each result gets its own seed

If one result fails

–

The others still finish

Results appear on

The node's outputs: Generated Image 1, Generated Image 2, and so on

The LiLo's outputs: Image 1, Image 2, and so on

Running nodes on every frame with For Each

The For Each container runs the nodes inside it once for every frame of an image sequence. It collects the results into a new sequence, in frame order.

  1. Select the nodes to repeat, right-click, and choose For Each. Or add For Each from the node menu and drag the nodes inside it.

  2. Connect an image sequence to the container's Frame Sequence input.

  3. Inside the container, connect Frame to the first node. Connect Count as well if a node needs the frame number.

  4. Connect the image output of the last node to Frame Result.

  5. Connect the container's Frame Sequence output to the next node, such as Sequence to Video. A For Each container with nothing after it doesn't run: Run Graph does nothing and shows no message.

  6. Run the graph. The results leave on the container's Frame Sequence output.

Nodes outside the container run once, and every frame reuses their results. Nodes inside always run on every frame. To run a node once or hold its result, put it outside the container and connect it in. A frame of grouped nodes can't go inside a For Each container, and one container can't go inside another.

The container has its own run behavior: Run then Hold (the default), Run always, or Hold.

To keep going when a frame fails, connect a Boolean node set to True to Skip Failed Frames. Otherwise the first failed frame stops the run. Either way, the frames already processed still leave on Frame Sequence. Any frames not processed leave on Unprocessed Frames, so you can run them again.

Note: Paid nodes inside a For Each container are charged for every frame. Before a run, Nodey asks you to confirm in the For Each can be costly dialog. Click Understood to go ahead. To stop the question, tick Don't Ask Again, then click Understood. To bring the question back, open Settings, find Warn About For Each Costs under General, and click Reset.

The For Each container is the batch. It runs Gemini Flash3.1 Image once for every frame of the clip, and Sequence to Video puts the repainted frames back together