Datasets:
text stringlengths 40 123 |
|---|
image_512/10565_0_0.png mask_512/10565_0_0.png |
image_512/18838_512_512.png mask_512/18838_512_512.png |
image_512/18734_0_512.png mask_512/18734_0_512.png |
image_512/14784_512_0.png mask_512/14784_512_0.png |
image_512/15658_512_512.png mask_512/15658_512_512.png |
image_512/14589_512_512.png mask_512/14589_512_512.png |
image_512/16657_512_512.png mask_512/16657_512_512.png |
image_512/13405_512_512.png mask_512/13405_512_512.png |
image_512/10958_0_512.png mask_512/10958_0_512.png |
image_512/12753_0_512.png mask_512/12753_0_512.png |
image_512/16966_512_512.png mask_512/16966_512_512.png |
image_512/15069_512_512.png mask_512/15069_512_512.png |
image_512/15597_512_0.png mask_512/15597_512_0.png |
image_512/19980_512_512.png mask_512/19980_512_512.png |
image_512/6505_0_0.png mask_512/6505_0_0.png |
image_512/17082_0_512.png mask_512/17082_0_512.png |
image_512/5402_512_0.png mask_512/5402_512_0.png |
image_512/3796_512_0.png mask_512/3796_512_0.png |
image_512/15872_0_0.png mask_512/15872_0_0.png |
image_512/6037_0_512.png mask_512/6037_0_512.png |
image_512/3419_0_512.png mask_512/3419_0_512.png |
image_512/11563_0_0.png mask_512/11563_0_0.png |
image_512/11468_512_0.png mask_512/11468_512_0.png |
image_512/19059_512_512.png mask_512/19059_512_512.png |
image_512/1700_0_512.png mask_512/1700_0_512.png |
image_512/13639_512_512.png mask_512/13639_512_512.png |
image_512/10799_0_512.png mask_512/10799_0_512.png |
image_512/8430_0_512.png mask_512/8430_0_512.png |
image_512/6134_512_512.png mask_512/6134_512_512.png |
image_512/12903_512_0.png mask_512/12903_512_0.png |
image_512/125_0_0.png mask_512/125_0_0.png |
image_512/8968_512_512.png mask_512/8968_512_512.png |
image_512/13639_0_0.png mask_512/13639_0_0.png |
image_512/16582_512_512.png mask_512/16582_512_512.png |
image_512/16543_0_512.png mask_512/16543_0_512.png |
image_512/17358_0_512.png mask_512/17358_0_512.png |
image_512/17361_512_512.png mask_512/17361_512_512.png |
image_512/16838_0_0.png mask_512/16838_0_0.png |
image_512/18127_0_512.png mask_512/18127_0_512.png |
image_512/18059_512_512.png mask_512/18059_512_512.png |
image_512/5364_512_512.png mask_512/5364_512_512.png |
image_512/5528_512_512.png mask_512/5528_512_512.png |
image_512/11883_0_0.png mask_512/11883_0_0.png |
image_512/5733_0_0.png mask_512/5733_0_0.png |
image_512/5714_0_0.png mask_512/5714_0_0.png |
image_512/6134_512_0.png mask_512/6134_512_0.png |
image_512/10016_512_0.png mask_512/10016_512_0.png |
image_512/11984_512_512.png mask_512/11984_512_512.png |
image_512/12050_0_0.png mask_512/12050_0_0.png |
image_512/17827_512_0.png mask_512/17827_512_0.png |
image_512/18769_512_512.png mask_512/18769_512_512.png |
image_512/18483_512_0.png mask_512/18483_512_0.png |
image_512/15034_512_512.png mask_512/15034_512_512.png |
image_512/16265_512_512.png mask_512/16265_512_512.png |
image_512/10466_512_512.png mask_512/10466_512_512.png |
image_512/16422_0_0.png mask_512/16422_0_0.png |
image_512/1696_512_512.png mask_512/1696_512_512.png |
image_512/9062_0_512.png mask_512/9062_0_512.png |
image_512/7336_512_0.png mask_512/7336_512_0.png |
image_512/4803_512_512.png mask_512/4803_512_512.png |
image_512/10238_512_512.png mask_512/10238_512_512.png |
image_512/4223_512_0.png mask_512/4223_512_0.png |
image_512/15646_0_0.png mask_512/15646_0_0.png |
image_512/9269_0_0.png mask_512/9269_0_0.png |
image_512/4824_0_0.png mask_512/4824_0_0.png |
image_512/5234_0_512.png mask_512/5234_0_512.png |
image_512/5707_0_0.png mask_512/5707_0_0.png |
image_512/16595_0_0.png mask_512/16595_0_0.png |
image_512/6538_512_512.png mask_512/6538_512_512.png |
image_512/7766_0_512.png mask_512/7766_0_512.png |
image_512/11925_512_0.png mask_512/11925_512_0.png |
image_512/19014_512_0.png mask_512/19014_512_0.png |
image_512/4404_0_512.png mask_512/4404_0_512.png |
image_512/11502_0_512.png mask_512/11502_0_512.png |
image_512/18274_512_0.png mask_512/18274_512_0.png |
image_512/12667_0_0.png mask_512/12667_0_0.png |
image_512/6115_512_512.png mask_512/6115_512_512.png |
image_512/4839_512_0.png mask_512/4839_512_0.png |
image_512/13162_0_0.png mask_512/13162_0_0.png |
image_512/5021_0_0.png mask_512/5021_0_0.png |
image_512/9150_0_0.png mask_512/9150_0_0.png |
image_512/4953_0_512.png mask_512/4953_0_512.png |
image_512/9333_0_0.png mask_512/9333_0_0.png |
image_512/17945_512_0.png mask_512/17945_512_0.png |
image_512/8846_0_512.png mask_512/8846_0_512.png |
image_512/15840_0_0.png mask_512/15840_0_0.png |
image_512/12033_0_512.png mask_512/12033_0_512.png |
image_512/16915_512_0.png mask_512/16915_512_0.png |
image_512/5137_0_512.png mask_512/5137_0_512.png |
image_512/18458_0_0.png mask_512/18458_0_0.png |
image_512/6787_0_0.png mask_512/6787_0_0.png |
image_512/10397_512_0.png mask_512/10397_512_0.png |
image_512/14948_0_512.png mask_512/14948_0_512.png |
image_512/5018_0_0.png mask_512/5018_0_0.png |
image_512/13042_0_0.png mask_512/13042_0_0.png |
image_512/11089_512_0.png mask_512/11089_512_0.png |
image_512/15956_0_0.png mask_512/15956_0_0.png |
image_512/2232_512_0.png mask_512/2232_512_0.png |
image_512/6459_512_0.png mask_512/6459_512_0.png |
image_512/16308_0_0.png mask_512/16308_0_0.png |
UniBuild building segmentation collection
The published subset contains 11 dataset components and 347,204 image/mask pairs. Planet is excluded. Potsdam, WHU-Mix, Alabama and the originally selected OpenEarthMap regions are included at the data provider's explicit request. Their unverified redistribution terms remain unverified; inclusion is not a grant of third-party rights. See excluded_datasets.json and release_plan.json.
Each component retains its own licence. The collection includes noncommercial and academic-only data; it does not have a single uniform permissive licence. Read LICENSE.md, dataset_licenses.json, region_licenses.json, and the Sentinel-2 source declaration before use.
Use directly with the UniBuild training code
Start with a UniBuild training checkout and its normal Python environment. The dataset repository supplies data and preparation tools; it does not replace the model/training code. The example below assumes the training checkout is ./UniBuild:
# Download alongside the training checkout. snapshot_download also works with
# huggingface_hub 0.30.2, which is pinned by the training environment.
python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='WeiHuang95/UniBuild', repo_type='dataset', local_dir='./UniBuild-dataset')"
# Verify/extract data into the original RSSeg folder structure and configure paths.
python UniBuild-dataset/prepare_for_unibuild.py --code-root ./UniBuild
cd UniBuild
bash scripts/training/train.sh
If the repository has already been downloaded, start at the preparation command. The preparation tool uses the Python standard library and does not need a new package installation. Extraction verifies each archive and each extracted file against the published SHA-256 catalogs. It is resumable: existing matching image/mask files are reused; different contents are not silently overwritten.
For another data disk or a selected subset:
python UniBuild-dataset/prepare_for_unibuild.py --code-root ./UniBuild --data-root /mnt/data/RSSeg --datasets inria gf7 sentinel2
The full download is about 157.5 GB, and the extracted files need a further similar amount of disk space. --data-root selects the directory that corresponds to the original /home/Datasets/RSSeg root.
Prepared directory layout
The original dataset folder names, internal image/mask paths and filenames are preserved:
UniBuild/
configs.py
unibuild_data.py
data/
unibuild_release.json
RSSeg/
INRIA/
GF7_Buildings/
LoveDA/
SpaceNet2/
Landcover_ai/
ORBITaLNet/
OpenEarthMap_wo_xBD_512/
Sentinel2_Buildings/
splits/
inria/{train,val,test}.txt
gf7/{train,val,test}.txt
...
unibuild_layout.json maps the archive prefixes to those original folder names. All image/mask relative paths within each dataset remain the paths used by UniBuild. Original split text is copied into data/splits/<dataset>/, including the complete original OpenEarthMap split selection.
The full preparation also restores RSSeg/ISPRS/Potsdam_RGB, RSSeg/Alabama_Buildings and RSSeg/WHU_Mix_Buildings.
What preparation configures
The tool installs unibuild_data.py and a small hook in Config.__init__, without changing learning parameters, model options or label definitions. Existing changed configuration/split files are backed up with .before_hf_<hash> suffixes. It writes a machine-specific registry at data/unibuild_release.json; do not copy that registry between machines, rerun preparation instead.
The registry selects the downloaded published components, resolves their local data and split paths, and sets use_lmdb=True by default. Preparation builds missing LMDBs locally from the verified archive members; existing stores are reused only after checking every required key. Duplicate LMDB stores are intentionally omitted from the download. Integer class IDs are restored from JSON: for example, LoveDA 0 remains ignored (255), LoveDA 2 is building, OpenEarthMap 8 is building, and LandCover.ai 1 is building. The supplied masks are not rewritten.
LMDB layout follows the existing UniBuild loader: one <first_path_component>.lmdb per dataset directory, full split-relative paths as keys, and the original encoded image/mask bytes as values. Images are not resized or recompressed and masks are not remapped during conversion. Newly built stores are compared byte for byte with every source file before publication. The extracted files remain available for file-mode compatibility and preprocessing. Allow disk space for both extracted data and the generated LMDB stores in addition to any retained download archives.
To explicitly keep direct image-file loading instead, run:
python UniBuild-dataset/prepare_for_unibuild.py --code-root ./UniBuild --storage files
The supplied prepare_lmdb.py can build/validate selected LMDB datasets before training. The updated training launcher runs this preparation once before starting multiple torchrun ranks. On an existing local/MCML installation without a prepared HF registry, keep the original server data root and split files; missing stores are built for datasets configured with use_lmdb=True. An explicit file-mode registry remains supported. Do not share a machine-specific registry between AI4EO1 and MCML.
For the older launcher that hardcoded datasets=('potsdam'), preparation backs up that launcher and changes this example default to datasets=(), so it follows the prepared configuration. Dataset overrides still work as before:
TRAIN_DATASETS="inria gf7" bash scripts/training/train.sh
# Or pass the existing train.py --datasets option.
Without a prepared registry, the integration helper leaves the ordinary local dataset configuration unchanged. A different registry can be selected with UNIBUILD_RELEASE_CONFIG.
Published sample counts
| Dataset | Train | Val | Test | Component licence |
|---|---|---|---|---|
| potsdam | 4377 | 547 | 548 | ISPRS dataset-specific terms; redistribution permission unverified |
| inria | 14400 | 1800 | 1800 | Public domain (original imagery and official raster labels) |
| alabama | 32640 | 4080 | 4080 | Unverified upstream dataset licence; not relicensed by this collection |
| openearthmap | 7461 | 932 | 934 | Per-region; imagery and labels can have different terms |
| whu-mix | 39346 | 4381 | 8402 | Mixed-source dataset; complete redistribution terms unverified |
| gf7 | 3106 | 1034 | 1035 | CC BY 4.0 |
| loveda | 10088 | 3338 | 3338 | CC BY-NC-SA 4.0; academic use only; Google Earth terms also apply |
| spacenet2 | 8474 | 1059 | 1060 | CC BY-SA 4.0 |
| landcover-ai | 8539 | 1067 | 1068 | CC BY-NC-SA 4.0 |
| orbitalnet | 115443 | 6413 | 6414 | CC BY 4.0 |
| sentinel2 | 40000 | 5000 | 5000 | Imagery: Copernicus Sentinel legal notice; annotation database: ODbL 1.0 (provider-confirmed OSM origin) |
Contents and splits
Only referenced image/mask files, required source/provenance materials, splits and integration metadata are included. Duplicate LMDBs, unused originals, old archives, predictions and checkpoints are omitted. Original source bytes and mask values are preserved. The 79 tar shards have per-archive SHA-256 hashes in SHA256SUMS and per-member hashes under checksums/. All members were independently read back and checked during packaging; remote archive hashes were verified after upload.
These train/val/test sets are the existing UniBuild splits, not necessarily the official benchmark splits. Geographic separation and inter-dataset overlap were not audited. Original crop/channel/file-format preparation predates this export and is not fully reconstructable for every source.
OpenEarthMap now includes all originally selected regions. Eleven regions have unverified imagery redistribution terms, documented per sample and in the release plan. Labels on public-domain source imagery still carry CC BY-NC-SA 4.0 as stated by OpenEarthMap. Region providers and separate imagery/label terms are recorded in region_licenses.json and per-sample manifests.
Sentinel-2 source database
The data provider explicitly confirmed that the training labels are OpenStreetMap derived and explicitly authorized public release of the complete supplement, including the supplied source vectors. Contains information from OpenStreetMap, made available under ODbL 1.0; (c) OpenStreetMap contributors. Imagery contains modified Copernicus Sentinel data.
The component includes 23,412 source annotation JSON files, corresponding ROI GeoJSON records, and the original mask rasterization/cropping scripts. These source/database materials support provenance and ODbL database-sharing requirements. The supplied GeoJSON retains osm, google, and 3dglobfp source attributes unchanged. The provider's source statement and those observed marker values are documented separately in provenance/sentinel2_source_declaration.json; their historical meaning was not independently verified. No source attributes were removed or silently relabelled.
The configured native Sentinel-2 resolution is 10 m; the preparation pipeline may resample imagery, so patch pixel spacing need not equal native sensor resolution. No full-corpus mask regeneration was performed for this export.
Validation
training_integration_verification.json records an actual loader smoke test with one real image/mask pair from each of all 11 components. The original MultiDatasetSeg training/validation paths and six resolution-grouped training DataLoader batches passed with the restored RSSeg layout, preserved label mapping, and file mode. The tiny test fixture reuses its samples across fixture splits; production split files are not changed by that test. No model-training epoch was run.
lmdb_integration_verification.json adds the unified-LMDB checks: all 347,204 server split pairs have their image and mask keys present; every byte in the four newly converted components was checked against the source files. A real-LMDB fixture with one pair per split for each of all 11 components passed the actual training/validation/test loader, class mappings and grouped batching with file fallback disabled. Synthetic HF preparation tests also cover default LMDB mode, explicit file mode and two DataLoader workers. These are loader/integration checks; no model-training epoch was started.
The previous eight-component report is retained at provenance/previous_eight_training_integration_verification.json. Every published archive member is independently checked against the packaging catalog; remote archive SHA-256 verification is recorded in upload_receipt.json.
Attribution and licences
Source authors, providers, licence links and release metadata are in LICENSE.md, dataset_licenses.json, region_licenses.json and provenance/. Cite the original datasets. ORBITaL-Net imagery: (c) 2025 Maxar; public release approval A706 as stated in its data descriptor. Its Figshare dataset licence is CC BY 4.0; the paper's separate licence is not used as the data licence.
provenance/whu_mix_paper_review.json records the additional paper review for WHU-Mix. Unverified redistribution terms are not a claim that every dataset explicitly forbids redistribution.
The supplied integration helpers prepare_for_unibuild.py, unibuild_data.py, unibuild_lmdb.py and prepare_lmdb.py are MIT licensed under licenses/unibuild-integration-mit.txt. This code licence does not relicense any dataset or the separate UniBuild training/model code.
- Downloads last month
- 122