giswqs commited on
Commit
aed1cd0
·
verified ·
1 Parent(s): ec96df5

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +101 -0
README.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - image-segmentation
5
+ tags:
6
+ - semantic-segmentation
7
+ - building-detection
8
+ - remote-sensing
9
+ - aerial-imagery
10
+ - geospatial
11
+ size_categories:
12
+ - 1K<n<10K
13
+ ---
14
+
15
+ # WHU Building Dataset
16
+
17
+ The WHU Building Dataset is a widely-used benchmark for building extraction from high-resolution aerial imagery. It contains aerial images at **0.3m resolution** with pixel-level binary building masks.
18
+
19
+ ## Dataset Description
20
+
21
+ | Property | Value |
22
+ |----------|-------|
23
+ | **Resolution** | 0.3m ground sampling distance |
24
+ | **Tile Size** | 512 x 512 pixels |
25
+ | **Channels** | 3 (RGB) |
26
+ | **Classes** | 2 (Background=0, Building=255) |
27
+ | **Format** | PNG |
28
+
29
+ ### Splits
30
+
31
+ | Split | Images | Masks |
32
+ |-------|--------|-------|
33
+ | Train | 5,732 | 5,732 |
34
+ | Val | 1,228 | 1,228 |
35
+ | Test | 1,228 | 1,228 |
36
+ | **Total** | **8,188** | **8,188** |
37
+
38
+ ## Directory Structure
39
+
40
+ ```
41
+ ├── train/
42
+ │ ├── Image/ # 5,732 RGB PNG images (512x512)
43
+ │ └── Mask/ # 5,732 binary mask PNG images (0=background, 255=building)
44
+ ├── val/
45
+ │ ├── Image/ # 1,228 RGB PNG images
46
+ │ └── Mask/ # 1,228 binary mask PNG images
47
+ └── test/
48
+ ├── Image/ # 1,228 RGB PNG images
49
+ └── Mask/ # 1,228 binary mask PNG images
50
+ ```
51
+
52
+ ## Usage
53
+
54
+ ### With GeoAI
55
+
56
+ ```python
57
+ import geoai
58
+
59
+ # Download and prepare the dataset (converts PNG to GeoTIFF, remaps labels 255→1)
60
+ # See: https://github.com/opengeos/geoai/blob/main/scripts/train_whu_building.py
61
+ ```
62
+
63
+ ### Direct Download
64
+
65
+ ```python
66
+ from huggingface_hub import snapshot_download
67
+
68
+ path = snapshot_download(repo_id="giswqs/WHU-Building-Dataset", repo_type="dataset")
69
+ ```
70
+
71
+ ### Pre-trained Model
72
+
73
+ A pre-trained EfficientNet-B4 + UNet++ model achieving **0.9054 IoU** on the test split is available at:
74
+ [giswqs/whu-building-unetplusplus-efficientnet-b4](https://huggingface.co/giswqs/whu-building-unetplusplus-efficientnet-b4)
75
+
76
+ ## Label Format
77
+
78
+ - **Background**: pixel value 0
79
+ - **Building**: pixel value 255
80
+
81
+ > **Note**: When training with CrossEntropyLoss, remap labels from 0/255 to 0/1.
82
+
83
+ ## Citation
84
+
85
+ ```bibtex
86
+ @article{ji2019fully,
87
+ title={Fully convolutional networks for multisource building identification},
88
+ author={Ji, Shunping and Wei, Shiqing and Lu, Meng},
89
+ journal={IEEE Transactions on Geoscience and Remote Sensing},
90
+ volume={57},
91
+ number={1},
92
+ pages={108--120},
93
+ year={2019},
94
+ publisher={IEEE}
95
+ }
96
+ ```
97
+
98
+ ## References
99
+
100
+ - Original dataset: [WHU Building Dataset](https://study.rsgis.whu.edu.cn/pages/download/building_dataset.html)
101
+ - GeoAI package: [https://github.com/opengeos/geoai](https://github.com/opengeos/geoai)