Folder layout
- The folders must be named
imagesandmasksand sit side by side, next to the labels CSV. - Masks are PNG files named
<image stem>_mask.png. Every image needs a mask and every mask needs an image. - Masks must be readable images with exactly the same width and height as the images. The template’s masks are single-channel (grayscale) PNGs where pixel value
0is background and1,2, … are classes. - Images share one extension (
.jpg,.jpegor.png; default.jpg) and one resolution. Nothing is resized at ingest.
Labels CSV
An image may appear on several rows, one per class it contains.
ingest.yaml
What the ingestor checks
Plus the checks every ingest runs. A record is copied only when both its image and its mask copy succeed.
Sample dataset
The template ships three 512×512 RGB JPEG images, three matching single-channel PNG masks and a three-row labels CSV (road, building, person). The ingest.yaml above ingests it with no overrides.
Next steps
- Stage the data and run the ingest: Prepare Data
- Shared rules for every template: Dataset templates