Debatch
This function block disables batch processing for the current variable and demultiplexes (demuxes) a list/batch input into separate outputs so downstream blocks receive individual elements.
π₯ Inputs
Batch This input socket accepts a list or batch of values (for example: a list of images, numbers, shapes or generic items). The block expects the batch to be provided here.
π€ Outputs
Output 1
Output 2
These output sockets provide the individual elements extracted from the incoming batch in sequential order. If the batch contains fewer elements than available outputs, remaining outputs will be left at default/empty values. If the batch contains more elements than available outputs, the first elements are provided to the outputs in order.
πΉοΈ Controls
This block has no interactive controls or user widgets.
βοΈ Running mechanism
When a valid batch (list) is connected to the
Batchinput, the block splits the batch and emits elements through the output sockets in order.If the input is missing or invalid, the block will show an error/invalid state in the UI and provide default outputs to indicate no valid data is available.
Use this block when you need to turn a grouped list of items into individual streams so other blocks can process each item independently.
π― Features
Simple demultiplexing of batch/list data into separate outputs.
Works with any generic data type (images, numbers, shapes, etc.).
Safe fallback behavior when input is not connected or invalid.
π Usage instructions
Provide a batch or list of items to the
Batchinput.Connect downstream blocks to
Output 1and/orOutput 2to receive individual elements.If you expect varying batch sizes, add logic or checking blocks downstream to handle missing or extra elements gracefully.
π‘ Tips and Tricks
Combine with
Batch Processingto switch between batched and per-item processing: produce a batch withBatch Processingthen use this block to process items individually.Use
Get Batch SizeorGet Elementbefore or after this block to inspect batch length or access specific elements.Reassemble processed items using
Batch ConcatenationorMuxwhen you need to create a single batch/list again.Pair with image-focused blocks: feed a batch of images into this block, then connect each output to blocks such as
Show Image,Image Logger,Find Object,Object Detection, orMask Detectionfor per-image analysis and saving.When working with optional values, chain
Exclude Nonesafter this block to remove empty elements before further processing.If you need to limit or transform the element stream, use it together with
Get Elementand logic blocks (for example: filtering, counters) to control which elements are passed on.
π οΈ Troubleshooting
No outputs update: verify that the
Batchinput is connected and contains a list of items.Unexpected empty outputs: check the batch size; if it has fewer elements than the number of outputs, some outputs will be empty by design. Use
Get Batch Sizeto confirm the incoming batch length.Downstream errors: ensure downstream blocks accept the specific element type (image, number, shape, etc.) emitted by this block. Use type-conversion or validation blocks if needed.
Last updated
Was this helpful?