ComfyUI  >  Nodes  >  ComfyUI-Image-Selector >  ImageDuplicator

ComfyUI Node: ImageDuplicator

Class Name

ImageDuplicator

Category
image
Author
SLAPaper (Account age: 3752 days)
Extension
ComfyUI-Image-Selector
Latest Updated
8/3/2024
Github Stars
0.1K

How to Install ComfyUI-Image-Selector

Install this extension via the ComfyUI Manager by searching for  ComfyUI-Image-Selector
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Selector 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ImageDuplicator Description

Duplicate images in batch to increase dataset size or processing variations while maintaining quality and dimensions.

ImageDuplicator:

The ImageDuplicator node is designed to duplicate each image in a given batch multiple times, effectively increasing the number of images in the batch. This can be particularly useful in scenarios where you need to augment your dataset or ensure that each image undergoes multiple processing steps independently. By duplicating images, you can create variations or simply increase the volume of data for further processing. The node ensures that each image is cloned the specified number of times, maintaining the original image quality and dimensions.

ImageDuplicator Input Parameters:

images

This parameter represents the batch of images that you want to duplicate. Each image in the batch will be cloned multiple times based on the dup_times parameter. The images should be in a format compatible with the node's processing capabilities.

dup_times

This parameter specifies the number of times each image in the batch should be duplicated. It accepts an integer value with a minimum of 1 and a maximum of 16. The default value is 2. Increasing this value will proportionally increase the number of images in the output batch, which can be useful for data augmentation or ensuring multiple processing iterations.

ImageDuplicator Output Parameters:

duplicated_images

This output parameter contains the batch of duplicated images. Each image from the input batch is cloned the specified number of times, resulting in a larger batch of images. The output maintains the original image quality and dimensions, ensuring consistency across the duplicated images.

ImageDuplicator Usage Tips:

  • To quickly increase the size of your image dataset, set the dup_times parameter to a higher value. This can be particularly useful for training machine learning models that require large amounts of data.
  • Use the ImageDuplicator node in conjunction with other image processing nodes to apply different transformations to each duplicated image, creating a diverse set of images from a single source.
  • Ensure that the dup_times parameter is set appropriately to avoid excessive duplication, which could lead to unnecessary computational overhead.

ImageDuplicator Common Errors and Solutions:

"Invalid input type for images"

  • Explanation: This error occurs when the input provided for the images parameter is not in the expected format.
  • Solution: Ensure that the input is a batch of images compatible with the node's processing capabilities. Check the format and dimensions of the images.

"dup_times value out of range"

  • Explanation: This error occurs when the dup_times parameter is set to a value outside the allowed range (1 to 16).
  • Solution: Adjust the dup_times parameter to a value within the specified range. The minimum value is 1, and the maximum value is 16.

"Insufficient memory for duplication"

  • Explanation: This error occurs when the system does not have enough memory to handle the duplication process.
  • Solution: Reduce the dup_times parameter or process a smaller batch of images to ensure that the system has enough memory to complete the operation.

ImageDuplicator Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Selector
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.