kohya_ss: No data found. Please verify arguments (train_data_dir must be the parent of folders with images) (training images not found)
LoRA training with kohya_ss (or the sd-scripts) does not start because there are no images in appropriately named subfolders in the specified training folder.
The message
WARNING ignore directory without repeats
ERROR No data found. Please verify arguments (train_data_dir must be the parent of folders with images)
Affects: Python
Why is this happening?
kohya_ss expects a fixed folder structure: you specify the parent folder as the training folder (train_data_dir), and inside it are subfolders with the images. Each subfolder must start with the number of repeats and an underscore, for example 20_sls frog. kohya_ss reads the number from the part before the first underscore. If it is missing, it skips the folder („ignore directory without repeats“) and ends up finding 0 images.
How to fix it
- Create a parent folder, for example
train_data, and inside it a subfolder following the pattern<repeats>_<keyword> <class>, such as20_sls frog. - Copy your training images (and, if applicable, the image captions) into this subfolder, not loosely into the parent folder.
- In kohya_ss, enter the parent folder as the image folder or for
--train_data_dir(train_data), not the subfolder with the images. - The same applies to regularization images: subfolder
<repeats>_<class>, and with--reg_data_diryou specify the parent folder. - Start the training again and check in the log whether a number of images appears instead of „0 train images with repeats“.
Better not: Do not name the subfolder only after your subject (for example goth or images) – without a number and underscore at the beginning, kohya_ss ignores it completely.
Terms for this
Similar errors
- 'python' is not recognized or opens the Microsoft Store
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate – Python does not trust the certificate (often a company proxy or antivirus)
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x – a package does not match the installed NumPy version
- A1111: INCOMPATIBLE PYTHON VERSION / Couldn't install torch
- Chatterbox: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False (model wants a graphics card that PyTorch can’t see)
Sources
- https://github.com/bmaltais/kohya_ss/issues/3181
- https://github.com/bmaltais/kohya_ss/blob/master/docs/train_README.md
- https://github.com/bmaltais/kohya_ss/issues/1725
Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.