Free | No tracking | Every fact with a source|German and English

Error / Other

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

  1. Create a parent folder, for example train_data, and inside it a subfolder following the pattern <repeats>_<keyword> <class>, such as 20_sls frog.
  2. Copy your training images (and, if applicable, the image captions) into this subfolder, not loosely into the parent folder.
  3. In kohya_ss, enter the parent folder as the image folder or for --train_data_dir (train_data), not the subfolder with the images.
  4. The same applies to regularization images: subfolder <repeats>_<class>, and with --reg_data_dir you specify the parent folder.
  5. 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

Sources

Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.