Datasets:
image imagewidth (px) 512 768 | preview_30 imagewidth (px) 512 768 | preview_159 imagewidth (px) 512 768 | file_name stringlengths 11 11 | source_split stringclasses 1
value | original_width int32 512 1.28k | original_height int32 512 1k | original_image_sha256 stringlengths 64 64 | metadata_json stringlengths 1.13k 62.6k | preview_note stringclasses 1
value | boxes_30 int32 1 103 | classes_30 stringlengths 4 75 | boxes_159 int32 1 102 | classes_159 stringlengths 4 186 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0022217.tif | train | 600 | 800 | 8b0d2677321f6727a16f909b13fa41215431cac36f2111f235fc1bce94c5002c | {"schema_version":1,"split":"train","file_name":"0022217.tif","image_path":"train/images/0022217.tif","image_sha256":"8b0d2677321f6727a16f909b13fa41215431cac36f2111f235fc1bce94c5002c","original_extension":".tif","annotation_available":true,"image_30":{"id":33823,"file_name":"0022217.tif","width":600,"height":800},"anno... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 5 | container-crane, helipad, ship | 4 | Engineering_Ship, container-crane, helipad | |||
0097465.png | train | 512 | 512 | 813c4f9ef28f3d0e31b607c36ce707c30ff4b9aa6a74f3c2e32b6bf42d123ee3 | {"schema_version":1,"split":"train","file_name":"0097465.png","image_path":"train/images/0097465.png","image_sha256":"813c4f9ef28f3d0e31b607c36ce707c30ff4b9aa6a74f3c2e32b6bf42d123ee3","original_extension":".png","annotation_available":true,"image_30":{"id":99075,"file_name":"0097465.png","width":512,"height":512},"anno... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 1 | ship | 1 | ship | |||
0097902.png | train | 512 | 512 | 26f53c86541c8356a0d70bf2eda5a3b1bd1e41b8d86078e89afe3a5f449943e2 | {"schema_version":1,"split":"train","file_name":"0097902.png","image_path":"train/images/0097902.png","image_sha256":"26f53c86541c8356a0d70bf2eda5a3b1bd1e41b8d86078e89afe3a5f449943e2","original_extension":".png","annotation_available":true,"image_30":{"id":99114,"file_name":"0097902.png","width":512,"height":512},"anno... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 1 | ship | 1 | ship | |||
0071794.bmp | train | 930 | 930 | 3289b95f5bdfe10e0632fecf3b8559774c7a15c97f1fcff70d338c645236c59a | {"schema_version":1,"split":"train","file_name":"0071794.bmp","image_path":"train/images/0071794.bmp","image_sha256":"3289b95f5bdfe10e0632fecf3b8559774c7a15c97f1fcff70d338c645236c59a","original_extension":".bmp","annotation_available":true,"image_30":{"id":76943,"file_name":"0071794.bmp","width":930,"height":930},"anno... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 69 | bridge, container-crane, harbor, helipad, parking_lot, ship, storage_tank | 69 | Arleigh Burke DD, Auxiliary Ships, Hovercraft, Small_leisure_craft, Tugboat, USS Blue Ridge (LCC-19), bridge, container-crane, harbor, helipad, parking_lot, ship, storage_tank, tiny_boat | |||
0082477.png | train | 1,000 | 1,000 | 97a5605171a9c0ffc24e63b250ffdbc33eff2d59d0eeb18bf6944a1e4028211f | {"schema_version":1,"split":"train","file_name":"0082477.png","image_path":"train/images/0082477.png","image_sha256":"97a5605171a9c0ffc24e63b250ffdbc33eff2d59d0eeb18bf6944a1e4028211f","original_extension":".png","annotation_available":true,"image_30":{"id":87104,"file_name":"0082477.png","width":1000,"height":1000},"an... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 22 | basketball_court, ground_track_field, parking_lot, plane, soccer-ball-field | 22 | A220, A321, Boeing737, Boeing787, C919, basketball_court, ground_track_field, other-airplane, parking_lot, soccer-ball-field | |||
0081238.png | train | 512 | 512 | 9599151dbaafcefe0e760eed7233d0637f2d8356afaa8385f432116542212bdc | {"schema_version":1,"split":"train","file_name":"0081238.png","image_path":"train/images/0081238.png","image_sha256":"9599151dbaafcefe0e760eed7233d0637f2d8356afaa8385f432116542212bdc","original_extension":".png","annotation_available":true,"image_30":{"id":86030,"file_name":"0081238.png","width":512,"height":512},"anno... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 11 | plane | 11 | B-1, B-2, B-29, B-52, C-135, C-21, C-5, F-16, P-63, T-43, T-6 | |||
0026981.tif | train | 1,000 | 1,000 | 3d8262b2f0f99f287dace5d0c6d759ebc0fbf7a0422a383ce0da0076910ad46c | {"schema_version":1,"split":"train","file_name":"0026981.tif","image_path":"train/images/0026981.tif","image_sha256":"3d8262b2f0f99f287dace5d0c6d759ebc0fbf7a0422a383ce0da0076910ad46c","original_extension":".tif","annotation_available":true,"image_30":{"id":27898,"file_name":"0026981.tif","width":1000,"height":1000},"an... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 103 | baseball_diamond, car, parking_lot, ship, swimming-pool | 102 | baseball_diamond, car, parking_lot, pickup, small-vehicle, swimming-pool, van, vehicle | |||
0036296.jpg | train | 800 | 800 | 54be8f7b7b831b9ef90a3951592d49f4103177cec6e3209b47f758bf770993e8 | {"schema_version":1,"split":"train","file_name":"0036296.jpg","image_path":"train/images/0036296.jpg","image_sha256":"54be8f7b7b831b9ef90a3951592d49f4103177cec6e3209b47f758bf770993e8","original_extension":".jpg","annotation_available":true,"image_30":{"id":42373,"file_name":"0036296.jpg","width":800,"height":800},"anno... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 8 | Expressway-toll-station, dam, golffield, overpass | 8 | Expressway-toll-station, dam, golffield, overpass | |||
0072991.bmp | train | 930 | 930 | c9f89b0b9427a2d39e868b6fde7d78160f2595d2830ebd920702e14d3306cdd0 | {"schema_version":1,"split":"train","file_name":"0072991.bmp","image_path":"train/images/0072991.bmp","image_sha256":"c9f89b0b9427a2d39e868b6fde7d78160f2595d2830ebd920702e14d3306cdd0","original_extension":".bmp","annotation_available":true,"image_30":{"id":78140,"file_name":"0072991.bmp","width":930,"height":930},"anno... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 14 | harbor, helipad, ship | 14 | AOE, AS, Frigate, Hyuga DDH, Masyuu AS, Osumi LL, harbor, helipad, other Warship | |||
0073991.bmp | train | 1,137 | 830 | 001590a2162f29c87f267873c1e442b5d3efa56bb83b30371b5eb92eda805996 | {"schema_version":1,"split":"train","file_name":"0073991.bmp","image_path":"train/images/0073991.bmp","image_sha256":"001590a2162f29c87f267873c1e442b5d3efa56bb83b30371b5eb92eda805996","original_extension":".bmp","annotation_available":true,"image_30":{"id":78358,"file_name":"0073991.bmp","width":1137,"height":830},"ann... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 39 | harbor, helicoper, parking_lot, plane, ship | 39 | Large_sail_ship, Midway, harbor, helicoper, other Warship, parking_lot, plane, ship, yacht | |||
0098516.jpg | train | 1,075 | 923 | 7db5b62a35edf5ac80624ce00a37e2d9981c6ba6f3a7610b4d9a8d920d73cb5b | {"schema_version":1,"split":"train","file_name":"0098516.jpg","image_path":"train/images/0098516.jpg","image_sha256":"7db5b62a35edf5ac80624ce00a37e2d9981c6ba6f3a7610b4d9a8d920d73cb5b","original_extension":".jpg","annotation_available":true,"image_30":{"id":2258,"width":1075,"height":923,"file_name":"0098516.jpg","licen... | Resized PNG presentation copies; direct source boxes including iscrowd; no ancestor expansion. All alpha<255 pixels are replaced with black before thumbnail resizing; original TAR image bytes are unchanged. | 24 | ground_track_field, parking_lot, roundabout, stadium, tenniscourt | 24 | ground_track_field, parking_lot, roundabout, stadium, tenniscourt |
LEVIRDet-159
A Million-Scale 159-Category Dataset and Foundation Model for Universal Remote Sensing Object Detection
Paper · GitHub · Project page · Interactive demo
LEVIRDet-159 is a remote sensing object detection dataset with 159 hierarchical category names, 174,497 image files, and 2,563,973 bounding-box annotations in its hierarchical annotation set. It supports coarse and fine-grained detection, hierarchical evaluation, and research on generalization across remote sensing imagery. The paper describes the dataset and its companion model, LEVIRDetNet, and reports approximately 700,000 fine-grained annotations.
This repository distributes two encodings of the same images, split assignment, and annotation geometry. Download one version. Both use the public 159-class taxonomy defined by taxonomy_159.json.
Models and Docker: The LEVIRDetNet model repository provides the 30-class and strict 159-class detector checkpoints, the ready-to-use Docker image, a matching source snapshot, and inference instructions.
Stream the original-image dataset
The original-image WebDataset contains all 174,488 annotated images: 124,257 train and 50,231 test, in 130 TAR shards. It preserves original encoded image bytes and both independent annotation sets, including all special fields and public provenance. No image is recompressed or resized. The original ZIP files and all their download links remain available below.
import json
from datasets import Features, Image, Value, load_dataset
root = "hf://datasets/yangqinzhe/LEVIRDet-159-Dataset/web_tool/webdataset_original/webdataset"
features = Features({"image": Image(), "metadata.txt": Value("string"),
"__key__": Value("string"), "__url__": Value("string")})
data = load_dataset("webdataset", features=features,
data_files={"train": f"{root}/train-*.tar",
"test": f"{root}/test-*.tar"},
split="train", streaming=True)
sample = next(iter(data))
image = sample["image"]
metadata = json.loads(sample["metadata.txt"])
annotations_30 = metadata["annotations_30"]
annotations_159 = metadata["annotations_159"]
The 159-class source annotations retain a coarse category_id; it is not
the 159-class model output index. Resolve fine labels from the published fine
name and hierarchy fields, using the ordered taxonomy_159.json vocabulary.
See the field interpretation guide
for the exact priority and the distinction between parent vehicle and leaf car.
| Resource | Purpose |
|---|---|
web_tool/webdataset_original/webdataset/*.tar |
Complete annotated original-image release, streamed on demand |
web_tool/webdataset_pilot/webdataset/*.tar |
Fixed 256-image validation subset |
visual-preview (default Hub configuration) |
Small original/30-class/159-class annotated thumbnail gallery; not training data |
Use streaming=True to avoid downloading and caching the entire dataset first.
Use the explicit "webdataset" loader and Image features shown above for TARs.
Full checks: manifest, integrity audit, COCO root metadata and taxonomy, nine unannotated test files, conversion and validation tools.
Streaming and visual preview pilot
Select visual-preview in the Dataset Viewer to browse 32 examples (16 train, 16 test), with original-image thumbnails beside 30-class and 159-class annotated thumbnails.
The WebDataset pilot contains 256 original images (128 train, 128 test). Load its TAR files explicitly; the repository's default configuration loads the small Parquet gallery above, not the TAR dataset:
import json
from datasets import Features, Image, Value, load_dataset
root = "hf://datasets/yangqinzhe/LEVIRDet-159-Dataset/web_tool/webdataset_pilot/webdataset"
features = Features({"image": Image(), "metadata.txt": Value("string"),
"__key__": Value("string"), "__url__": Value("string")})
data = load_dataset("webdataset", features=features,
data_files={"train": f"{root}/train-*.tar",
"test": f"{root}/test-*.tar"},
split="train", streaming=True)
sample = next(iter(data))
image = sample["image"]
metadata = json.loads(sample["metadata.txt"])
annotations_30 = metadata["annotations_30"]
annotations_159 = metadata["annotations_159"]
Each TAR sample pairs <key>.image (unchanged original encoded image bytes)
with <key>.metadata.txt (UTF-8 JSON containing both independent image and
annotation records, all special fields and public provenance). The declared
Image feature detects JPEG/PNG/TIFF/BMP from the original bytes. Root COCO
metadata and the taxonomy are under web_tool/webdataset_pilot/source_metadata/.
Model output indices, COCO category IDs, and fine-category fields are distinct. Crowd values are retained.
See pilot validation, sample selection, and gallery validation. Existing MMDetection training commands continue to use the extracted COCO release; streaming training needs an appropriate data-loader adapter.
Contents
- Choose a release
- Dataset statistics
- Download and extract
- Extracted files
- Annotation format and taxonomy
- Evaluation notes
- Provenance and limitations
- License
- Citation
- Contact
Choose a release
| Version | Images | Download size | ZIP files | Extracted directory |
|---|---|---|---|---|
| Original-image release | Original image bytes, with standardized filenames | 111.41 GB / 103.76 GiB | 62 | 02_release/ |
| Lightweight release | JPEG quality 95, with original dimensions | 42.32 GB / 39.42 GiB | 22 | 03_lite_jpeg95/ |
Sizes include the archives and their companion files. GB is decimal; GiB is binary. The original-image version contains 46 training ZIPs, 15 test ZIPs, and metadata.zip; the lightweight version contains 14 training ZIPs, 7 test ZIPs, and metadata.zip.
The Original-image release retains source file contents and formats, including JPEG, PNG, TIFF, and BMP. The Lightweight release uses lossy JPEG encoding (quality=95, 4:2:0 chroma subsampling, optimized progressive encoding). Image dimensions and box coordinates are unchanged, but pixel values can differ.
Dataset statistics
| Item | Train | Test | Total |
|---|---|---|---|
| Image files | 124,257 | 50,240 | 174,497 |
| Images listed in annotation JSONs | 124,257 | 50,231 | 174,488 |
| Bounding boxes in the 159-class annotation set | 1,741,681 | 822,292 | 2,563,973 |
| Bounding boxes in the historical 30-class annotation set | 1,741,694 | 822,298 | 2,563,992 |
The original validation split is distributed here as test. The 30-class and 159-class annotation sets refer to the same image filenames within a split, but have slightly different object counts. They are separate annotation sets: do not join annotations by array position or assume their COCO IDs are interchangeable. The two downloadable image encodings are alternative versions of the same dataset, not additional training examples.
Download and extract
The original download releases contain independent ZIP archives and COCO-style JSON annotations. Use the download-and-extract workflow below for those complete releases. The full streaming files and the explicitly labelled pilot/preview subsets above are additional formats; they do not replace these archives.
1. Download one version
Install the client in a Python 3.10+ environment:
python -m pip install --upgrade huggingface_hub
Run the following Python code to download the lightweight version:
from huggingface_hub import snapshot_download
release = "Lightweight release" # or "Original-image release"
snapshot_download(
repo_id="yangqinzhe/LEVIRDet-159-Dataset",
repo_type="dataset",
allow_patterns=[f"{release}/*"],
local_dir="downloads",
)
Files will appear under downloads/Lightweight release/ or downloads/Original-image release/. Keep the download cache and rerun the same command to resume an interrupted download.
For test images only, use this call instead:
from huggingface_hub import snapshot_download
release = "Lightweight release" # or "Original-image release"
snapshot_download(
repo_id="yangqinzhe/LEVIRDet-159-Dataset",
repo_type="dataset",
allow_patterns=[f"{release}/*"],
ignore_patterns=[f"{release}/train-*.zip"],
local_dir="downloads",
)
Always keep metadata.zip, archives.json, SHA256SUMS.txt, consumer_extract.py, and the download notes together with the selected image ZIPs. metadata.zip contains the annotation files, taxonomy, provenance mapping, and detailed field documentation.
2. Verify and extract
For a complete lightweight download, run this single-line command in a terminal:
python "downloads/Lightweight release/consumer_extract.py" --archive-dir "downloads/Lightweight release" --out-dir "datasets"
For the original-image version:
python "downloads/Original-image release/consumer_extract.py" --archive-dir "downloads/Original-image release" --out-dir "datasets"
For a test-only lightweight download:
python "downloads/Lightweight release/consumer_extract.py" --archive-dir "downloads/Lightweight release" --out-dir "datasets-test" --split test
The commands also work in Windows PowerShell with Python on PATH. Keep the quotes around paths containing spaces. The extraction script itself needs Python 3.9+ and uses only the standard library.
The script checks archive sizes and SHA-256 hashes, checks ZIP entries, and verifies CRCs while extracting. ZIPs are independent archives: do not concatenate them. --out-dir is the parent of the extracted version directory, so do not append 02_release or 03_lite_jpeg95 again. Reserve disk space for both the downloaded archives and an extracted copy.
Extraction does not overwrite or merge into an existing version directory. An interrupted run may leave a .partial directory; it is not a completed dataset and extraction does not automatically resume it. Resolve that incomplete output or use a fresh --out-dir before retrying. To change from test-only to a complete extraction, use a new output location. Test-only extraction still includes the metadata for both splits, but only test images.
Extracted files
datasets/
└── 02_release/ # or 03_lite_jpeg95/
├── train/images/
├── test/images/
├── annotations/
│ ├── train_159.json
│ ├── test_159.json
│ ├── train_30.json
│ └── test_30.json
├── taxonomy_159.json
├── provenance.json
├── metadata.json
├── release_summary.json
├── alpha_exceptions.json
├── SHA256SUMS.files.txt
├── README_数据与标注说明.md
└── README_下载与解压.md
Image filenames use shared seven-digit identifiers across the two versions. Training filenames span 0000001–0124257, and test filenames span 0124258–0174497. Extensions follow the original format in the original-image version and are .jpg in the lightweight version. These filename identifiers are not COCO image IDs.
Resolve an image path using the selected version's train/images/ or test/images/ directory plus the JSON image record's file_name. Do not resolve it relative to annotations/.
Annotation format and taxonomy
COCO-style records with additional hierarchy fields
All annotation files contain images, annotations, and categories. Bounding boxes use pixel coordinates [x, y, width, height], where (x, y) is the top-left corner. image_id links an annotation to an image record; category_id links it to a coarse category in that JSON.
The *_159.json files still contain 30 top-level categories records. Their 159-class supervision is carried by additional fields on each annotation, together with the shared taxonomy. Counting the top-level categories array does not give the model's hierarchical output dimension.
| Field | Meaning |
|---|---|
fine_category_name |
Preferred effective label at the annotated level of detail |
fine_category_level1 … fine_category_level4 |
Available hierarchy path; deeper levels may be absent or null |
fine_supercategory |
Preserved superclass information from the source annotation |
original_fine_category_name |
Provenance remark on three training records; never an extra training label |
The following is an excerpt of one annotation, with unrelated fields omitted:
{
"id": 1,
"image_id": 1,
"category_id": 10,
"bbox": [730, 646, 22, 116],
"area": 2552,
"iscrowd": 0,
"fine_category_name": "bulkCarrier",
"fine_supercategory": "ship",
"fine_category_level1": "ship",
"fine_category_level2": "civil_ship",
"fine_category_level3": "bulkCarrier",
"fine_category_level4": null
}
Its effective label is bulkCarrier, with path ship → civil_ship → bulkCarrier. Objects can be annotated at different hierarchy depths; an unspecified child category must not be invented.
The authoritative 159-class vocabulary
taxonomy_159.json contains:
classesandordered_classes: the same ordered list of 159 unique names, including parent and fine classes.base_classes: the 30 root categories.class_hierarchy: each parent's immediate children.category_ids: a one-based mapping for derived flat annotations; this does not replace the original COCOcategory_idvalues.
Keep this class order consistent between the dataset reader, model head, checkpoint, and evaluator. Model class indices are zero-based positions in the ordered list.
For effective-label selection, use a nonempty fine_category_name first; otherwise use the deepest populated field from fine_category_level4 through fine_category_level1, then the coarse category linked by category_id. Validate the selected label against the taxonomy. Never use original_fine_category_name for label selection.
Evaluation notes
For hierarchical evaluation, count a child ground-truth box toward its ancestor categories as well. This expansion is performed in the evaluator; the published annotation files keep one record per annotated object. A conventional flat COCO evaluation is a different protocol and should be identified separately.
Training, testing, checkpoint adaptation, and inference instructions are maintained in the GitHub repository.
Citation
If you use LEVIRDet-159 or LEVIRDetNet, please cite the paper:
@misc{yang2026levirdetmillionscale159categorydataset,
title={LEVIRDet: A Million-Scale 159-Category Dataset and Foundation Model for Universal Remote Sensing Object Detection},
author={Qinzhe Yang and Dongyu Wang and Haohan Niu and Jia Xu and Zhenwei Shi and Zhengxia Zou},
year={2026},
eprint={2606.25312},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2606.25312}
}
Contact
Please report dataset or tooling issues through [email protected], GitHub Issues or this repository's Community tab.
- Downloads last month
- 1,295