ComfyUI > Nodes > ComfyUI > Shuffle Image Dataset

ComfyUI Node: Shuffle Image Dataset

Class Name

ShuffleDataset

Category
dataset/image
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

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

Shuffle Image Dataset Description

Randomly shuffle dataset images for improved model generalization, leveraging random seed for reproducibility.

Shuffle Image Dataset:

The ShuffleDataset node is designed to randomly shuffle the order of images within a dataset. This node is particularly useful when you want to ensure that the images are processed in a random order, which can be beneficial for tasks such as training machine learning models where randomization can help improve model generalization. By shuffling the dataset, you can prevent any biases that might occur from the original order of the images, leading to more robust and reliable outcomes. The node leverages a random seed to control the shuffling process, allowing for reproducibility if needed. This feature is essential for maintaining consistency across different runs, especially in experimental settings.

Shuffle Image Dataset Input Parameters:

seed

The seed parameter is an integer that serves as the random seed for the shuffling process. It controls the randomness of the shuffle, ensuring that the same seed will produce the same shuffled order every time, which is crucial for reproducibility. The seed value can range from 0 to 18,446,744,073,709,551,615 (0xFFFFFFFFFFFFFFFF), with a default value of 0. By setting a specific seed, you can achieve consistent results across multiple executions, which is particularly useful for debugging or comparing different configurations.

Shuffle Image Dataset Output Parameters:

images

The images output parameter provides the list of images after they have been shuffled. This output is crucial as it represents the new randomized order of the dataset, which can then be used for further processing or analysis. The shuffled images help in ensuring that any subsequent operations on the dataset are not influenced by the original order of the images, thus promoting unbiased results.

Shuffle Image Dataset Usage Tips:

  • To ensure reproducibility in your experiments, always set a specific seed value. This will allow you to achieve the same shuffled order across different runs.
  • Use the ShuffleDataset node when preparing datasets for training machine learning models to prevent any order-related biases and improve model performance.

Shuffle Image Dataset Common Errors and Solutions:

Dataset directory not found: <directory_path>

  • Explanation: This error occurs when the specified dataset directory does not exist or the path is incorrect.
  • Solution: Verify that the directory path is correct and that the directory exists. Ensure that you have the necessary permissions to access the directory.

No shard files found in <directory_path>

  • Explanation: This error indicates that there are no shard files in the specified directory, which means the dataset might not be properly prepared or saved.
  • Solution: Check if the dataset has been correctly saved in the specified directory. Ensure that the shard files are named correctly and are in the expected format.

Shuffle Image Dataset Related Nodes

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

Shuffle Image Dataset