ComfyUI > Nodes > ComfyUI_XISER_Nodes > Unpack Images

ComfyUI Node: Unpack Images

Class Name

XIS_UnpackImages

Category
XISER_Nodes/Data_Processing
Author
grinlau18 (Account age: 944days)
Extension
ComfyUI_XISER_Nodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI_XISER_Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_XISER_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_XISER_Nodes 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

Unpack Images Description

XIS_UnpackImages restores packed images to original form for individual editing and analysis.

Unpack Images:

XIS_UnpackImages is a node designed to reverse the process of packing multiple images into a single data structure, effectively restoring them to their original form. This node is particularly useful for AI artists who need to manage and manipulate multiple images simultaneously, as it allows for the unpacking of images that have been previously bundled together for processing or storage. By converting packed image data back into individual images, XIS_UnpackImages facilitates further editing, analysis, or display of each image separately. This capability is essential for workflows that require batch processing or the application of consistent transformations across multiple images, as it ensures that each image can be accessed and utilized independently after initial processing.

Unpack Images Input Parameters:

pack_images

The pack_images parameter is a list of images that have been previously packed together. This parameter is crucial as it serves as the input data that the node will process to extract individual images. The function of this parameter is to provide the node with the necessary data structure to unpack, and its impact on the node's execution is significant, as the presence and format of this data determine the success of the unpacking process. The parameter expects a list of torch.Tensor objects, each representing an image in RGBA format. There are no explicit minimum or maximum values, but the list should not be empty, and each tensor should have a shape of [H, W, 4], where H and W are the height and width of the image, respectively.

Unpack Images Output Parameters:

image_list

The image_list output parameter provides a list of individual images that have been unpacked from the input data. This output is essential for users who need to access each image separately for further processing or analysis. The images in this list retain their original dimensions and format, ensuring that no data is lost during the unpacking process. This output is particularly valuable for workflows that involve batch processing or require the application of specific transformations to each image individually.

image_batch

The image_batch output parameter offers a single batch of images, which can be used for operations that require processing multiple images simultaneously. This output is beneficial for tasks that involve machine learning models or other batch-oriented processes, as it allows for efficient handling of multiple images in a single operation. The images in this batch are formatted consistently, making them suitable for input into models or other systems that require uniform data structures.

Unpack Images Usage Tips:

  • Ensure that the pack_images input is a list of torch.Tensor objects, each with a shape of [H, W, 4], to avoid errors during the unpacking process.
  • Use the image_list output for tasks that require individual image manipulation, and the image_batch output for batch processing tasks to optimize your workflow.

Unpack Images Common Errors and Solutions:

Unpack Images received empty pack_images input

  • Explanation: This error occurs when the pack_images input parameter is either not provided or is an empty list.
  • Solution: Ensure that you provide a non-empty list of torch.Tensor objects as the pack_images input to the node.

pack_images[i] is not a torch.Tensor

  • Explanation: This error indicates that one or more items in the pack_images list are not of the expected torch.Tensor type.
  • Solution: Verify that all items in the pack_images list are torch.Tensor objects and that they conform to the expected format and dimensions.

Image has invalid channels: {single_img.shape[-1]}

  • Explanation: This error suggests that an image in the pack_images list does not have the required four channels (RGBA).
  • Solution: Check that each image in the pack_images list has a shape of [H, W, 4] to ensure it includes the necessary RGBA channels.

Unpack Images Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_XISER_Nodes
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.