Datasets:
zoom int64 7 18 | sample_id stringlengths 19 24 |
|---|---|
7 | 1_r0_c0_dir0_rot270_0 |
7 | 1_r0_c1_dir0_rot0_0 |
7 | 1_r0_c1_dir1_rot180_0 |
7 | 1_r0_c3_dir0_rot270_0 |
7 | 1_r0_c3_dir1_rot180_0 |
7 | 1_r0_c5_dir1_rot90_0 |
7 | 1_r0_c7_dir1_rot0_0 |
7 | 1_r1_c0_dir1_rot90_0 |
7 | 1_r1_c1_dir1_rot270_0 |
7 | 1_r1_c3_dir1_rot270_0 |
7 | 1_r1_c4_dir1_rot0_0 |
7 | 1_r1_c6_dir0_rot270_0 |
7 | 1_r1_c7_dir0_rot0_0 |
7 | 1_r1_c7_dir0_rot270_0 |
7 | 1_r1_c7_dir0_rot90_0 |
7 | 1_r2_c4_dir0_rot180_0 |
7 | 1_r2_c5_dir0_rot90_0 |
7 | 1_r2_c6_dir0_rot0_0 |
7 | 1_r2_c7_dir1_rot90_0 |
7 | 1_r3_c0_dir1_rot180_0 |
7 | 1_r3_c1_dir1_rot180_0 |
7 | 1_r3_c2_dir1_rot180_0 |
7 | 1_r3_c3_dir0_rot0_0 |
7 | 1_r3_c3_dir0_rot180_0 |
7 | 1_r3_c4_dir0_rot0_0 |
7 | 1_r3_c5_dir1_rot0_0 |
7 | 1_r3_c5_dir1_rot270_0 |
7 | 1_r3_c6_dir1_rot90_0 |
7 | 1_r3_c7_dir1_rot0_0 |
7 | 1_r3_c8_dir0_rot90_0 |
7 | 1_r3_c8_dir1_rot0_0 |
7 | 2_r0_c0_dir0_rot270_0 |
7 | 2_r0_c0_dir1_rot0_0 |
7 | 2_r0_c11_dir1_rot0_0 |
7 | 2_r0_c13_dir0_rot270_0 |
7 | 2_r0_c13_dir1_rot270_0 |
7 | 2_r0_c16_dir1_rot270_0 |
7 | 2_r0_c1_dir1_rot0_0 |
7 | 2_r0_c3_dir1_rot0_0 |
7 | 2_r0_c4_dir0_rot90_0 |
7 | 2_r0_c4_dir1_rot270_0 |
7 | 2_r0_c4_dir1_rot90_0 |
7 | 2_r0_c5_dir0_rot270_0 |
7 | 2_r0_c6_dir1_rot0_0 |
7 | 2_r0_c6_dir1_rot180_0 |
7 | 2_r0_c7_dir0_rot180_0 |
7 | 2_r0_c7_dir0_rot90_0 |
7 | 2_r0_c8_dir1_rot180_0 |
7 | 2_r0_c9_dir0_rot270_0 |
7 | 2_r0_c9_dir0_rot90_0 |
7 | 2_r1_c10_dir0_rot90_0 |
7 | 2_r1_c11_dir1_rot90_0 |
7 | 2_r1_c12_dir0_rot180_0 |
7 | 2_r1_c13_dir0_rot0_0 |
7 | 2_r1_c13_dir0_rot270_0 |
7 | 2_r1_c14_dir1_rot180_0 |
7 | 2_r1_c1_dir1_rot90_0 |
7 | 2_r1_c3_dir1_rot90_0 |
7 | 2_r1_c4_dir0_rot90_0 |
7 | 2_r1_c5_dir1_rot180_0 |
7 | 2_r1_c7_dir1_rot180_0 |
7 | 2_r2_c0_dir1_rot270_0 |
7 | 2_r2_c10_dir0_rot90_0 |
7 | 2_r2_c10_dir1_rot270_0 |
7 | 2_r2_c12_dir0_rot180_0 |
7 | 2_r2_c1_dir0_rot270_0 |
7 | 2_r2_c2_dir1_rot0_0 |
7 | 2_r2_c3_dir1_rot90_0 |
7 | 2_r2_c4_dir1_rot180_0 |
7 | 2_r2_c4_dir1_rot90_0 |
7 | 2_r2_c5_dir1_rot180_0 |
7 | 2_r2_c6_dir0_rot270_0 |
7 | 2_r2_c6_dir1_rot180_0 |
7 | 2_r2_c7_dir0_rot270_0 |
7 | 2_r2_c7_dir1_rot0_0 |
7 | 2_r2_c8_dir0_rot180_0 |
7 | 2_r3_c0_dir1_rot0_0 |
7 | 2_r3_c13_dir0_rot90_0 |
7 | 2_r3_c15_dir1_rot90_0 |
7 | 2_r3_c3_dir0_rot90_0 |
7 | 2_r3_c4_dir0_rot0_0 |
7 | 2_r3_c4_dir0_rot90_0 |
7 | 2_r3_c7_dir1_rot270_0 |
7 | 2_r3_c8_dir1_rot90_0 |
7 | 2_r4_c12_dir0_rot270_0 |
7 | 2_r4_c13_dir0_rot0_0 |
7 | 2_r4_c13_dir0_rot90_0 |
7 | 2_r4_c13_dir1_rot270_0 |
7 | 2_r4_c14_dir0_rot90_0 |
7 | 2_r4_c14_dir1_rot180_0 |
7 | 2_r4_c15_dir0_rot180_0 |
7 | 2_r4_c16_dir1_rot90_0 |
7 | 2_r4_c1_dir0_rot270_0 |
7 | 2_r4_c1_dir0_rot90_0 |
7 | 2_r4_c1_dir1_rot270_0 |
7 | 2_r4_c3_dir0_rot270_0 |
7 | 2_r4_c4_dir0_rot0_0 |
7 | 2_r4_c5_dir1_rot180_0 |
7 | 2_r4_c6_dir0_rot180_0 |
7 | 2_r4_c6_dir0_rot270_0 |
LEVIR-GM Official Test Set
Paper (IEEE TPAMI) · Project Page · Code · Model
This repository hosts the official held-out test set of LEVIR-GM, introduced in LoRetta: A Foundation Model and Extensive Dataset for Global-Scale Remote Sensing Dense Image Matching (IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026).
It consists of 82,698 multi-temporal optical remote sensing image pairs (512 × 512) captured in 2018 and 2022 across 67 global geographic regions (six continents, 11 climate zones), corresponding to the exact 10% held-out test split evaluated in the paper.
Directory Structure
The release package stores each spatial-resolution subset as an uncompressed .tar archive to keep repository file counts manageable and allow selective downloads by resolution:
LEVIR-GM_test_release/
├── README.md
├── SHA256SUMS.txt # SHA-256 checksums for all archives and helper files
├── test_samples.csv # Index of all 82,698 (zoom, sample_id) test pairs
├── dataset_loader.py # Example script to load a sample and verify warp fields
├── utils.py # Dense field reconstruction & certainty transformation utilities
├── 7.tar # 1024 m aligned -> 2048 m effective ref GSD (235 pairs)
├── 8.tar # 512 m aligned -> 1024 m effective ref GSD (1,043 pairs)
├── 9.tar # 256 m aligned -> 512 m effective ref GSD (2,200 pairs)
├── 10.tar # 128 m aligned -> 256 m effective ref GSD (3,800 pairs)
├── 15.tar # 4 m aligned -> 8 m effective ref GSD (20,727 pairs)
├── 16.tar # 2 m aligned -> 4 m effective ref GSD (21,210 pairs)
├── 17.tar # 1 m aligned -> 2 m effective ref GSD (20,239 pairs)
└── 18.tar # 0.5 m aligned -> 1 m effective ref GSD (13,244 pairs)
After extraction, each zoom folder (7, 8, 9, 10, 15, 16, 17, 18) contains four subdirectories partitioned by geographic region ID (<region>):
<zoom>/
├── Reference_Image/<region>/<sample_id>_ref.jpg
├── Sensed_Image/<region>/<sample_id>_sensed.jpg
├── Matching_Certainty/<region>/<sample_id>_certainty.npy
└── Transformation_Params/<region>/<sample_id>_params.npz
Download & Extraction
1. Verify Checksums
sha256sum -c SHA256SUMS.txt
2. Extract Archives
Extract all subsets (or replace the list with only the zoom levels you need):
Linux / macOS (bash):
for z in 7 8 9 10 15 16 17 18; do tar -xf ${z}.tar; done
Windows (PowerShell):
7,8,9,10,15,16,17,18 | % { tar -xf "$_.tar" }
Subset Composition
| Zoom | Aligned GSD | Effective Ref GSD | Test Pairs | Transform Protocol | Unpacked Data Size (GiB / GB) |
.tar Archive Size (GiB / GB) |
|---|---|---|---|---|---|---|
7 |
1024 m | 2048 m | 235 | Affine (scale ∈ [0.8, 1.5], rot ∈ ±180°, shear ∈ ±30°) |
0.052 GiB (55.5 MB) | 0.052 GiB (56.3 MB) |
8 |
512 m | 1024 m | 1,043 | Affine (scale ∈ [0.8, 1.5], rot ∈ ±180°, shear ∈ ±30°) |
0.216 GiB (231.5 MB) | 0.219 GiB (234.9 MB) |
9 |
256 m | 512 m | 2,200 | Affine (scale ∈ [0.8, 1.5], rot ∈ ±180°, shear ∈ ±30°) |
0.460 GiB (494.2 MB) | 0.467 GiB (501.3 MB) |
10 |
128 m | 256 m | 3,800 | Affine (scale ∈ [0.8, 1.5], rot ∈ ±180°, shear ∈ ±30°) |
0.854 GiB (917.4 MB) | 0.866 GiB (929.6 MB) |
15 |
4 m | 8 m | 20,727 | Affine (scale ∈ [1.0, 4.0], rot ∈ ±180°, shear ∈ ±30°) + Local Non-Rigid (32 centers, max amp 8 px, σ = 64) |
4.529 GiB (4.86 GB) | 4.593 GiB (4.93 GB) |
16 |
2 m | 4 m | 21,210 | Affine (scale ∈ [1.0, 4.0], rot ∈ ±180°, shear ∈ ±30°) + Local Non-Rigid (24 centers, max amp 16 px, σ = 128) |
4.626 GiB (4.97 GB) | 4.684 GiB (5.03 GB) |
17 |
1 m | 2 m | 20,239 | Affine (scale ∈ [1.0, 4.0], rot ∈ ±180°, shear ∈ ±30°) + Local Non-Rigid (16 centers, max amp 24 px, σ = 192) |
4.182 GiB (4.49 GB) | 4.239 GiB (4.55 GB) |
18 |
0.5 m | 1 m | 13,244 | Affine (scale ∈ [1.0, 4.0], rot ∈ ±180°, shear ∈ ±30°) + Local Non-Rigid (8 centers, max amp 32 px, σ = 256) |
2.847 GiB (3.06 GB) | 2.886 GiB (3.10 GB) |
| Total | 0.5–1024 m | 1–2048 m | 82,698 | 330,792 data files | 17.765 GiB (19.075 GB) | 18.006 GiB (19.333 GB) |
(Values show binary GiB = 1024^3 B alongside decimal MB/GB = 10^6 / 10^9 B. Total unpacked size including test_samples.csv is 17.767 GiB / 19.077 GB.)
File Formats
<sample_id>_ref.jpg:512 × 512RGB reference image.<sample_id>_sensed.jpg:512 × 512RGB sensed image (cropped and transformed without artificial black-border padding).<sample_id>_certainty.npy: Raw20 × 20float32pseudo-matchability map obtained from template matching prior to local perturbation, cropping, and out-of-bounds masking. Usetransform_certainty(...)inutils.pytogether withgenerate_dense_field_from_params(...)to obtain the aligned512 × 512matchability ground truth.<sample_id>_params.npz: Compressed NumPy archive storing the exact ground-truth transformation parameters:affine_params: dict withscale,tx,ty,rotation,shearfull_shape: base aligned patch shape(1280, 1280)crop_shape: intermediate crop shape(1024, 1024)save_shape: final saved image shape(512, 512)absolute_coords: boolean flag (True, meaninggenerate_dense_field_from_paramsreturns absolute target pixel coordinates in[0, 512)in the sensed image frame)residual_params(zooms15–18only): dict with Gaussian local non-rigid deformationcenters,angles,amplitudes, andsigma
Quick Start
Requirements
- Python
>= 3.10 numpy,opencv-python
Run the Example Loader
After extracting the desired archive(s), point --dataset_dir to a specific zoom directory (e.g., ./15) and pass a sample ID from test_samples.csv:
python dataset_loader.py --dataset_dir ./15 --sample_id 37_r15_c15_dir0_rot270_0 --output_dir ./output
This writes reference.jpg, sensed.jpg, transformed.jpg, checkerboard.jpg, flow.jpg, certainty.jpg, and params.json into ./output.
Load Ground-Truth Dense Flow & Matchability in Python
from utils import (
load_dataset_sample,
generate_dense_field_from_params,
transform_certainty,
apply_transformation,
)
ref_img, sensed_img, raw_certainty, params = load_dataset_sample("./15", "37_r15_c15_dir0_rot270_0")
# Reconstruct 512x512 ground-truth reference-to-sensed dense coordinate field (H, W, 2)
gt_field = generate_dense_field_from_params(params)
# Transform raw 20x20 certainty map into the 512x512 reference frame (zeros out-of-bounds pixels)
gt_certainty = transform_certainty(raw_certainty, params, gt_field)
# Or run the full verification helper (warps sensed_img -> ref_img frame)
transformed, checkerboard, flow_map, gt_certainty = apply_transformation(
ref_img, sensed_img, raw_certainty, params
)
Evaluation Protocol
To reproduce the LEVIR-GM benchmark metrics reported in the LoRetta paper:
- Evaluate all image pairs at
512 × 512resolution, with pixel coordinates and endpoint errors measured in the512 × 512reference frame. - Let
gt_certaintybe the512 × 512transformed matchability map returned bytransform_certainty(raw_certainty, params, gt_field). Evaluation is restricted to fully matchable pixels: $$\Omega = {p \mid \text{gt_certainty}(p) = 1.0}.$$ - Compute endpoint error $e(p) = |\hat{W}(p) - \bar{W}_{1/1}(p)|2$ in pixels over $p \in \Omega$, where $\hat{W}$ is the predicted (or RANSAC + TPS-fitted) dense reference-to-sensed coordinate field and $\bar{W}{1/1}$ is
gt_field. - Report PCK at
{1, 2, 3, 5, 10}px and AUC as the normalized trapezoidal area under the PCK curve over $\mathcal{T} = {0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0}$ px.
Terms of Use & Disclaimer
- Non-Commercial Research Use Only: This test set is provided strictly for non-commercial academic research and standardized benchmarking.
- Imagery Copyright: Copyright of the underlying remote sensing imagery belongs to the original data providers. Any commercial use, resale, or further redistribution of the imagery is prohibited.
- Code License: The accompanying helper scripts (
dataset_loader.py,utils.py) are released under the Apache License 2.0. - Takedown Notice: If any original rights holder believes that any portion of this release infringes their rights, please contact the authors via the LoRetta repository and we will promptly review and remove the relevant content.
Citation
If you use the LEVIR-GM test set in your research, please cite:
@article{yu2026loretta,
title = {LoRetta: A Foundation Model and Extensive Dataset for Global-Scale Remote Sensing Dense Image Matching},
author = {Yu, Siwei and Guo, Han and Shi, Zhenwei and Zou, Zhengxia},
journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
year = {2026},
doi = {10.1109/TPAMI.2026.3759282},
}
- Downloads last month
- 63