If you've exported a dataset from MultiScraper with the kohya layout, you have folders like 10_myconcept and wondered what the number means, where to point the trainer, and what changes when you use a dataset TOML. This guide explains the kohya folder structure and how a MultiScraper export plugs into kohya_ss and sd-scripts.
The short answer
A MultiScraper kohya export looks like this:
datasets\myconcept\
10_myconcept\
0001.png
0001.txt (caption, if enabled)
0002.png
0002.txt
val\ (if you set a validation split)
metadata.jsonl
manifest.jsonPoint your trainer at datasets\myconcept — the parent — not at the 10_myconcept subfolder. kohya reads the 10_ prefix from the subfolder name to decide repeats.
What MultiScraper writes on export
In the Save dialog, “Folder layout → kohya (N_concept)” creates the <repeats>_<concept> subfolder. There is no separate concept field: the concept is your folder name, sanitized (a dash becomes an underscore, so my-images gives 10_my_images). “Repeats” sets the prefix (default 10). “Captions → tags as .txt” writes a same-name .txt next to each image, and “Trigger word” is placed first in each caption. A metadata.jsonl and manifest.json are written at the dataset root.
What the number prefix means
N_concept: N is the repeats per epoch and concept is the folder's name (kohya can use it as a class/caption fallback). Repeats let you weight one folder more than another when a dataset mixes several concepts.
Repeats vs epochs, with a worked example
Total training steps ≈ images × repeats × epochs ÷ batch size. With 40 images, 10 repeats, 10 epochs and batch size 2: 40 × 10 × 10 ÷ 2 = 2,000 steps. Repeats and epochs both scale the total, but only epoch boundaries produce saved checkpoints, so if you want snapshots to compare, get there with more epochs rather than more repeats.
Choosing repeats
There's no universal number, but a common pattern is higher repeats for small sets and lower for large ones, so total steps stay in a sensible range. Many community LoRA guides land somewhere between 1,000 and 3,000 steps for a character or style; tune from there based on results.
Using the export in kohya_ss (GUI)
In the kohya_ss GUI, set the image folder to datasets\myconcept (the parent). The GUI counts the images under each N_concept subfolder and applies the repeats from the prefix. The common mistake is selecting the 10_myconcept folder itself — then the prefix isn't read.
Using it with sd-scripts and a dataset TOML
If you drive sd-scripts with --dataset_config dataset.toml, the folder prefix is not used — set num_repeats in the TOML yourself (it defaults to 1). Point image_dir at the exported concept folder and set the caption extension:
[general]
caption_extension = ".txt"
[[datasets]]
resolution = 1024
batch_size = 2
[[datasets.subsets]]
image_dir = "datasets/myconcept/10_myconcept"
num_repeats = 10MultiScraper writes .txt captions, so caption_extension = ".txt" matters — several sd-scripts entry points default to .caption.
Captions set to “none”
With the kohya layout and no caption files, kohya falls back to the folder's concept text as each image's caption. That's fine for a single-concept LoRA with a clear trigger, but for anything detailed you'll want real captions.
Several concepts in one dataset
Export each concept separately, then move the N_concept folders under one parent, each with its own repeats prefix. kohya trains them together and weights each by its prefix.
Validation split
If you set a validation split, MultiScraper writes the held-out images to datasets\<name>\val\. With the kohya layout, sd-scripts ignores folders without a number prefix, so val\ is skipped by training. With the simple-folder layout, val\ sits inside the folder you point the trainer at, so make sure your loader isn't recursive, or move it out.
Regularization images
Regularization (class) images go in a separate folder that MultiScraper doesn't create. If you use them, note that they roughly double the step count, so adjust repeats or epochs accordingly.
Frequently asked questions
What does the number in 10_concept mean?
It is the number of repeats per epoch. kohya sees each image in that folder that many times every epoch, so 10_myconcept weights those images 10×. The text after the underscore is the concept name.
Do repeats or epochs matter more?
For total step count they are interchangeable: steps ≈ images × repeats × epochs ÷ batch size. Epochs differ in one way — the trainer can save a checkpoint at each epoch boundary, so you get snapshots to compare. Repeats just scale how often images are seen within an epoch.
Should I point the trainer at datasets/name or at the 10_ folder?
Point kohya_ss at the parent (datasets/<name>), not at the 10_concept subfolder. kohya reads the number prefix from the subfolder names to set repeats. If you select the 10_ folder directly, it can't see the prefix.
Why did my repeats change after switching to a dataset TOML?
With sd-scripts and --dataset_config, the folder-name prefix is ignored. num_repeats comes from the TOML instead (default 1), so set it there explicitly.
Why is one exported image tiny?
If an original couldn't be fetched, MultiScraper falls back to the preview and notes it in manifest.json. Those are lower resolution — replace or remove them before training.