ComfyUI > Nodes > ComfyUI-RMBG > Unbatch Images (RMBG) 🖼️

ComfyUI Node: Unbatch Images (RMBG) 🖼️

Class Name

AILab_UnbatchImages

Category
🧪AILab/🖼️IMAGE
Author
1038lab (Account age: 1116days)
Extension
ComfyUI-RMBG
Latest Updated
2026-02-03
Github Stars
1.89K

How to Install ComfyUI-RMBG

Install this extension via the ComfyUI Manager by searching for ComfyUI-RMBG
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RMBG in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Unbatch Images (RMBG) 🖼️ Description

The node separates image batches into individual images, duplicating as needed for consistency.

Unbatch Images (RMBG) 🖼️:

The AILab_UnbatchImages node is designed to facilitate the handling of image batches by separating a batch of images into individual images. This node is particularly useful when you have a collection of images processed together and need to work with each image separately for further processing or analysis. By unbatching images, you can streamline workflows that require individual image manipulation, such as applying different filters or transformations to each image. The node ensures that even if the batch contains fewer images than expected, it will duplicate the last available image to fill the output slots, maintaining a consistent output structure.

Unbatch Images (RMBG) 🖼️ Input Parameters:

images

The images parameter is the sole input for this node and represents a batch of images that you want to separate into individual images. This parameter is crucial as it determines the content that will be processed by the node. The input should be a batch of images, typically in a tensor format, where the first dimension represents the batch size. There are no specific minimum or maximum values for this parameter, but it is essential that the input is not empty, as an empty input will result in an error.

Unbatch Images (RMBG) 🖼️ Output Parameters:

image_1

This output represents the first image extracted from the batch. If the batch contains fewer images than the expected number of outputs, this will be one of the images duplicated to fill the slots.

image_2

This output represents the second image extracted from the batch. Similar to image_1, if the batch is smaller, this output may be a duplicate of the last available image.

image_3

This output represents the third image extracted from the batch, following the same duplication logic if necessary.

image_4

This output represents the fourth image extracted from the batch, with duplication applied if the batch size is smaller.

image_5

This output represents the fifth image extracted from the batch, subject to duplication if needed.

image_6

This output represents the sixth image extracted from the batch, with duplication applied if the batch size is smaller.

image_7

This output represents the seventh image extracted from the batch, following the same duplication logic if necessary.

image_8

This output represents the eighth image extracted from the batch, with duplication applied if the batch size is smaller.

Unbatch Images (RMBG) 🖼️ Usage Tips:

  • Ensure that the input batch of images is correctly loaded and not empty to avoid errors during processing.
  • Use this node when you need to apply different operations to each image in a batch, as it allows you to handle each image individually.

Unbatch Images (RMBG) 🖼️ Common Errors and Solutions:

Input batch is empty. Upstream node (e.g., LoadImageBatch) likely failed to load any images.

  • Explanation: This error occurs when the input batch of images is empty, possibly due to a failure in the upstream node responsible for loading the images.
  • Solution: Verify that the upstream node, such as LoadImageBatch, is correctly configured and successfully loading images. Ensure that the file paths or URLs provided are correct and accessible.

Unbatch Images (RMBG) 🖼️ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RMBG
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Unbatch Images (RMBG) 🖼️