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.
Size limit
Onetracebloc data ingest takes at most 1 GiB in total and 500 MiB per file, masks included. If your dataset is larger:
- Save the images as JPEG instead of PNG (masks stay PNG).
- Lower the resolution: resize every image and its mask to one smaller size. Resize masks with nearest-neighbour resampling so their pixel values stay valid class indices.
- Use fewer images.
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
- Ingest the data: Prepare Data
- Shared rules for every template: Dataset templates