ComfyUI > Nodes > ComfyUI > Save Image and Text Dataset to Folder

ComfyUI Node: Save Image and Text Dataset to Folder

Class Name

SaveImageTextDataSetToFolder

Category
dataset
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

Save Image and Text Dataset to Folder Description

Facilitates organized storage of image datasets with textual descriptions for AI training and analysis.

Save Image and Text Dataset to Folder:

The SaveImageTextDataSetToFolder node is designed to facilitate the organized storage of image datasets along with their corresponding textual descriptions or captions. This node is particularly beneficial for AI artists and developers who work with datasets that require both visual and textual data to be stored together for training or analysis purposes. By using this node, you can efficiently save a collection of images and their associated text data into a specified folder, ensuring that each image is paired with its respective caption. This functionality is crucial for tasks that involve image-text pairing, such as training models for image captioning or visual question answering. The node automates the process of saving images and text files, reducing manual effort and minimizing the risk of errors in data organization.

Save Image and Text Dataset to Folder Input Parameters:

images

This parameter expects a list of images that you wish to save. The images are the primary data that will be stored in the specified folder. There is no explicit minimum or maximum number of images, but the list should be manageable based on your system's capabilities. The images will be saved with filenames that include a specified prefix, ensuring they are easily identifiable.

texts

The texts parameter is a list of strings, where each string is a caption or description corresponding to an image in the images list. This parameter is crucial for ensuring that each image is paired with the correct textual data. The number of text entries should match the number of images to maintain proper pairing.

folder_name

This parameter specifies the name of the folder where the images and text files will be saved. By default, it is set to "dataset," but you can customize it to suit your organizational needs. The folder will be created inside the output directory, and all files will be stored within this folder.

filename_prefix

The filename_prefix parameter allows you to define a prefix for the filenames of the saved images. This is useful for maintaining a consistent naming convention and making it easier to identify files. The default value is "image," but you can change it to any string that fits your dataset's naming requirements.

Save Image and Text Dataset to Folder Output Parameters:

This node does not produce any direct output parameters. Its primary function is to save the input data to the specified folder, and it does not return any data to be used in subsequent nodes.

Save Image and Text Dataset to Folder Usage Tips:

  • Ensure that the number of images and text entries match to avoid misalignment between images and their captions.
  • Use descriptive folder names and filename prefixes to keep your datasets organized and easily accessible.
  • Regularly check the output directory to confirm that files are being saved correctly and that there are no issues with file permissions or storage space.

Save Image and Text Dataset to Folder Common Errors and Solutions:

Mismatched Image and Text Count

  • Explanation: The number of images does not match the number of text entries, leading to potential misalignment.
  • Solution: Verify that the images and texts lists have the same length before executing the node.

Permission Denied

  • Explanation: The node does not have the necessary permissions to write to the specified output directory.
  • Solution: Check the permissions of the output directory and ensure that the application has write access.

Insufficient Storage Space

  • Explanation: There is not enough storage space available to save the images and text files.
  • Solution: Free up space on your storage device or choose a different output directory with sufficient space.

Save Image and Text Dataset to Folder 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.

Save Image and Text Dataset to Folder