How to version and document an image dataset
What a dataset version records so two experiments can be compared, what a manifest file looks like, what dataset documentation should say about sources, rights, labels, splits and intended use, and how to read a dataset card on the Hugging Face Hub.
Dataset versioning records exactly which data an experiment used, and dataset documentation records what that data is and how it should be used. An image dataset changes over time as images get added, labels get corrected and splits get redrawn. When the data changes between two experiments and nobody wrote down how, you cannot tell whether a score moved because of the model or because of the data.
What a dataset version records
A dataset version pins the exact state of the data at the time of an experiment. It records:
- which images were used
- which labels, from which export of the labels
- how the data was split into train, validation and test
- the filters and transforms applied, such as dropping blurry images or resizing
- which version of the labeling guideline the annotators followed
- which label corrections had been applied

A version manifest
A version is usually a manifest, a small file that pins the exact state an experiment used. Scripts produce it, instead of someone writing it by hand, so it matches what the code actually loaded. Here is one for a dataset of warehouse damage photos:
{
"dataset": "warehouse-damage",
"version": "2024-11-03",
"num_images": 24187,
"image_list_sha256": "9f2c...a1",
"label_export": "labels_v7.json",
"guideline_version": "v3",
"split_seed": 0,
"corrections_applied": 412
}Each field answers one question about the data:
image_list_sha256is a hash of the list of image files. A hash is a short string computed from the list, and it changes if any file is added, removed or renamed. Two runs with the same hash used the same images.label_exportnames the exact label file, here the seventh export.guideline_versionis the version of the rules the annotators followed.split_seedis the random seed used to draw the split. The same seed on the same images gives the same train, validation and test sets.corrections_appliedcounts the label fixes made so far.
Two experiments that cite the same manifest trained on the same data. Say experiment A cited labels_v6 and experiment B cites labels_v7. Then a change in the score might come from the 412 label corrections and not from the model.

What documentation records
Dataset documentation is the written record of what the files contain, how they were made and how they should be used. It covers:
- Sources: where the images came from, how they were sampled and who they show.
- Rights: the consent obtained, the license and who may access the data.
- Label schema: every label type, class definition and coordinate format. For example, it says whether a box is stored as its two corners or as its center plus width and height.
- Annotation: the guideline, the review process and the cases annotators disagreed on.

Preprocessing, splits and intended use
Documentation also records the preprocessing applied, such as resizing and normalization. That lets someone rebuild the exact training data.
It records how the splits were made and what they were grouped by, such as keeping all photos of one product in the same split. A reader needs that to know whether the test score counts images the model has seen near-copies of. Finally, it states what the dataset is for and what it is not for, along with its known biases and limits.

Dataset cards on the Hugging Face Hub
On the Hugging Face Hub, documentation takes the form of a dataset card, a structured page shown next to the dataset. A card should state the source, the license, the intended use and the known limits. If a card is thin or missing, treat the dataset as unknown until you have checked it yourself: look at a sample of images and labels, and find the license before you use it.

Common mistakes
- Recording only the image count. Two runs with 24,187 images can still have different images, labels or splits.
- Overwriting the label file in place. Keep each export under its own name, such as
labels_v6.jsonandlabels_v7.json, so an old experiment can still be traced. - Building versions by hand. Run the steps from scripts, so the manifest matches what the code actually used.
- Leaving out how the splits were grouped. A score cannot be read correctly without it.
- Using a dataset with a thin card without checking it. The license and the sources may not allow your use.
Related concepts
How a split was grouped decides whether near-copies of test images sit in training, which train/test splits for images without leakage covers. The labeling guideline and its versions come from the annotation process in image annotation: label taxonomies, annotator agreement, and label noise. The known biases a card should list are the subject of domain shift in computer vision.
QuiddityML teaches versioning and documentation in the vision data unit of its Computer Vision track, with multiple-choice questions on what two runs can and cannot be compared on when only the image count was recorded (QuiddityML).