Builds machine learning training datasets from HOT Tasking Manager projects. Each dataset pairs 256x256 OpenAerialMap image tiles with the OpenStreetMap features mapped on them, and is published on Hugging Face with a STAC catalogue.
Guides: hotosm.github.io/fAIr-ds-builder. The
repository is fAIr-ds-builder, and the command it installs is hot-oam-dataset.
With uv:
uv tool install git+https://github.com/hotosm/fAIr-ds-builderSet TM_TOKEN for private Tasking Manager projects and HF_TOKEN (write) to publish, or put
them in .env for just.
A dataset is one YAML config, such as those in configs/ (run from a clone), or
your own file.
hot-oam-dataset --config configs/fair-guru-trees.yaml --all
hot-oam-dataset --config configs/fair-guru-trees.yaml --push-to-hub hotosm/fAIr-guru-td-trees
hot-oam-dataset --config configs/fair-guru-trees.yaml --update-root-catalog hotosm/fAIr-guru-stac--alldownloads tiles and labels, then writes the splits, Parquet, dataset card and STAC.--push-to-hubuploads them and tags the releasev<dataset_version>.--update-root-cataloglinks that release in the root STAC catalogue,https://huggingface.co/datasets/hotosm/fAIr-guru-stac/raw/main/catalog.json(open in STAC Browser).
Raise dataset_version before --all for each new release. --push-to-hub stops when the
card was built for another version, or when that version is already on the Hub.
output_dir: fAIr-guru-td-trees
dataset_version: 0.1.0
project_ids: 50661
feature_type: natural
tag_values: [tree, tree_group]
geometry_types: [point, polygon]
zoom: 20
burn_binary_masks: false
split:
regions_per_project: 10
validation_regions: 1
test_regions: 1
buffer_meters: 0
exclude_shared_features: false
card:
repo_id: hotosm/fAIr-guru-td-trees
title: "fAIr Open Mapping Gurus: trees"
label_noun: trees
tasks: [detection]
summary: Tree training data from Freetown, Sierra Leone.
selection: Labels are OpenStreetMap features tagged natural=tree or natural=tree_group.
limitations:
- diameter_crown is a mapper estimate.The config reference explains every key.
Run hot-oam-dataset --help for every option. The
reference lists the commands, config
keys and build steps.
just setup
just lint
just test
just dataset configs/fair-guru-trees.yaml- Imagery: OpenAerialMap, CC-BY 4.0, "contributors of Open Imagery Network" (source)
- Labels: OpenStreetMap, ODbL 1.0, "OpenStreetMap contributors" (source)
- Seagrass labels: OSM Sandbox, ODbL 1.0, "HOT OpenStreetMap sandbox contributors"
- Project metadata: HOT Tasking Manager API
Tooling: GPL-3.0-or-later.
Code was written with help from Claude and reviewed by the maintainers.