walkability-project / README.md
rishabh-sat's picture
Dataset card: note Abu Dhabi part2 folder
d2725c2 verified
|
Raw History Blame Contribute Delete
6.56 kB
---
pretty_name: Walkability Project — High-resolution Land Cover (Chesapeake, Poland, Abu Dhabi)
license: other
task_categories:
- image-segmentation
tags:
- remote-sensing
- land-cover
- satellite-imagery
- aerial-imagery
- semantic-segmentation
- weak-supervision
- paraformer
- sam3
- dinov3
size_categories:
- 10K<n<100K
---
# Walkability Project — High-resolution Land Cover
Everything from a research project on **label-efficient, high-resolution land cover mapping**, the first step towards walkability analysis. It includes the code, the datasets, trained checkpoints, evaluation outputs, slides and a paper draft.
The core work reproduces and extends **Paraformer** (*"Learning without Exact Guidance: Updating Large-scale High-resolution Land Cover Maps from Low-resolution Historical Labels"*, CVPR 2024, arXiv 2403.02746). Paraformer trains 1 m land cover models using only low-resolution historical labels (30 m NLCD) and scores them against high-resolution ground truth. This project adds DINOv3, SAM 3 and DOFA backbones and fusion heads, RGB-only and distilled small models, Poland experiments, and a first look at Abu Dhabi imagery.
Total size is about **421 GB** in about 43.6k files. The folder layout matches the original working directory, so the scripts' relative paths still work.
## Repository layout
| Path | Size | Contents |
|---|---|---|
| `data/abu_dhabi_y_2026_z_18_patch_4096/` + `data/abu_dhabi_y_2026_z_18_patch_4096_part2/` | 228 GB | 12,653 RGB patches (4096 × 4096 px, zoom level 18, about 0.54 m/px, 2026) covering the Emirate of Abu Dhabi, named `r<row>_c<col>_2026.png`, plus `download_report_*.csv`. **Split across two folders** because Hugging Face allows at most 10,000 files per folder (9,980 patches in the first, 2,673 in `_part2`). Merge them into one folder after downloading to match the paths the scripts expect |
| `data/chesapeake/` | 70 GB | Chesapeake Bay land cover (CVPR 2019) for 6 states (`de`, `md`, `ny`, `pa`, `va`, `wv`), with train/val/test tiles per state: NAIP 4-band imagery, NLCD labels, and 1 m CCLC ground truth |
| `data/poland/` | 1.5 GB | Poland dataset from the Paraformer paper: `HR_image`, `HR_ground_truth`, and four 10 m label products (`ESA_GLC10`, `Esri_GLC10`, `FORM_GLC10`, `GLC_FCS30`) |
| `Paraformer_hr_landcover/` | 122 GB | Fork of the Paraformer code (Apache-2.0) with the extensions; see its own `README.md` for a guide to each file |
| `Paraformer_hr_landcover/runs/` | (in the above) | All training runs: checkpoints (`epoch_N.pth`, `latest.pth`), logs, evaluation CSVs/JSON, SAM 3 / DOFA feature caches, figures |
| `slides/` | 50 MB | Result decks (`slides_chesapeake.pdf`, `slide_v2_mine.pdf`) and the scripts and notebook that build them |
| `weak_supervision_lr_chesapeake/` | 34 MB | Paper draft (`main.tex`, `main.pdf`) and figures |
| `gemini_argon_abudhabi/` | 41 MB | Zero-shot test of a Gemini model for 7-class segmentation of Abu Dhabi crops (prompts, scripts, outputs). The API key is read from `~/.env` and is **not** included |
| `scripts/chesapeake/` | — | Download, verification and CSV-building scripts for the Chesapeake data |
| `memory/`, `runs_misc/` | — | Project notes and small utility scripts |
## Chesapeake data details
- **Source:** LILA / Microsoft, `lcmcvpr2019/cvpr_chesapeake_landcover`. Years are 2013, except Virginia and West Virginia, which are 2014.
- **Split:** the dataset's own split, 100 / 5 / 20 tiles per state (Delaware has 82 train tiles). The CSVs are in `Paraformer_hr_landcover/dataset/CSV_list/Chesapeake_all_{train,val,test}.csv` (582 / 30 / 120 rows).
- **Ground truth (`_lc.tif`):** 6 aggregated classes: 1 water, 2 tree canopy + shrubs, 3 low vegetation, 4 barren, 5 impervious surfaces, 6 impervious roads, 15 nodata.
- **Training labels:** only NLCD `_nlcd.tif`, at 30 m upsampled to the 1 m grid. The high-resolution CCLC labels are used **only for evaluation**.
- **Evaluation:** mIoU over 4 unified classes (built-up, tree canopy, low vegetation, water) using the class mapping from the paper's Table S1. See `eval_metrics.py`.
## Headline results (Chesapeake test set, mean mIoU over 6 states)
| Model | Test mIoU |
|---|---|
| Paraformer (paper) | 64.65 |
| Base: this reproduction, ViT-B/16 + L2HNet, epoch 40 chosen on val | 63.21 |
| Model 6: Base features + SAM 3 + DOFA + NDVI fusion head (label-free) | 66.07 |
| Base + SAM 3 rule overlay (settings chosen on val) | 68.41 |
| Model 10: RGB-only MapOT | 63.58 |
| Model 8: RGB-only distilled Paraformer-S (26.8 M params) | 59.90 |
The full per-state and per-class tables are in `slides/slides_chesapeake.pdf` and `Paraformer_hr_landcover/runs/*_results_tableS1.csv`.
## Download
```bash
pip install -U huggingface_hub
# everything (~421 GB)
hf download rishabh-sat/walkability-project --repo-type dataset --local-dir walkability-project
# only the code and the Poland data
hf download rishabh-sat/walkability-project --repo-type dataset --local-dir walkability-project \
--include "Paraformer_hr_landcover/*.py" "Paraformer_hr_landcover/networks/*" "data/poland/*"
```
Checkpoints load with `torch.load(..., map_location="cpu")`. The code runs in a Python environment with PyTorch 2.7 and `transformers` (see `Paraformer_hr_landcover/requirements.txt`). DINOv3 and SAM 3 weights are **not** included; get them from their official Hugging Face repos under their own licences.
## Licences
This repository bundles material with **different licences**. Check each source before reusing it:
- `Paraformer_hr_landcover/` code: Apache-2.0 (original Paraformer licence; see `LICENSE`).
- Chesapeake Land Cover data: distributed via LILA / Microsoft under its original terms (NAIP imagery is public domain; CCLC labels are © Chesapeake Conservancy).
- Poland data: from the Paraformer authors' release; follow their terms.
- Abu Dhabi imagery: zoom-18 satellite imagery tiles from a third-party provider; reuse is subject to that provider's terms.
- Checkpoints that contain DINOv3, SAM 3 or DOFA weights inherit those models' licences.
## Citation
If you use the Paraformer method, please cite:
```bibtex
@inproceedings{li2024paraformer,
title = {Learning without Exact Guidance: Updating Large-scale High-resolution Land Cover Maps from Low-resolution Historical Labels},
author = {Li, Zhuohong and He, Wei and Li, Jiepan and Lu, Fangxiao and Zhang, Hongyan},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2024}
}
```