.txt file with the same base name. The node also supports the kohya-ss/sd-scripts folder structure, where a subfolder name that starts with a number (such as 10_cats) repeats the images inside that subfolder that many times in the output.
Inputs
Note: The selected folder must be a subfolder of ComfyUI’s input directory. The node expects one
.txt caption file per image: for each image file (.png, .jpg, .jpeg, .webp) it looks for a .txt file with the same base name in the same location and uses its trimmed contents as the caption. If no caption file is found, an empty string is used. The node also supports the kohya-ss/sd-scripts folder structure: subfolders whose name starts with a number and an underscore (for example 5_cats) repeat the images inside them that number of times in the final output list. If the selected folder contains no valid images, the node raises an error.
Outputs
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Source fingerprint (SHA-256):
d34494d59a65edb38d7e6a5f12c241fb0093371db0b0bf1e52789e84209ad3f5