Views
No views yet
0.3 * localization_F1 + 0.7 * harmonic_mean(damage_F1s), including the single-map constraint and
the unlabelled-pixel (255) exclusion rule.train+tier3 → select the checkpoint on test → report on hold.
These weights are the test-selected checkpoint, evaluated once on hold.| split | Overall F1 | Localization F1 | Damage F1 | no-damage | minor | major | destroyed |
|---|---|---|---|---|---|---|---|
hold (reported) | 76.91 | 85.03 | 73.43 | 89.39 | 58.03 | 72.75 | 81.25 |
test (selection) | 76.68 | 84.67 | 73.26 | 89.92 | 56.27 | 73.55 | 82.56 |
| data | xView2 train (2,799) + tier3 (3,378), 512x512 tiles at stride 256 → 34,081 non-empty patches |
| augmentation | A.D4() (the tiling does the cropping), ImageNet normalisation |
| backbone | swin_t, ImageNet-1k initialised |
| decoder | dual FPN + AssymetricDecoder, 256 ch, fusion_type='2mlps' |
| heads | localization 1 class, damage 5 classes, both upsampled 4x |
| losses | BCE + Tversky (localization); cross-entropy + Dice with ignore_index=255 (damage) |
| optimizer | AdamW, weight decay 0.01 |
| LR | poly, base 6e-5, power 0.9 |
| schedule | 60,000 iters, effective batch 16, bf16, sync BN |
| hardware | 2x A100-SXM4-40GB, 3 h 16 min |
examples/xview2_project/ in the torchange repo.1import torchange # noqa: F401
2from torchange.models.changeos import ChangeOS
3
4model = ChangeOS.from_pretrained("EVER-Z/torchange_example_changeos_swint_on_xview2_best42k").eval()
5
6# bitemporal input: pre- and post-event RGB stacked on the channel axis -> (B, 6, H, W)
7# eval output: ChangeDetectionModelOutput with
8# change_prediction (B, 5, H, W) softmax damage probabilities
9# t1_semantic_prediction (B, 1, H, W) sigmoid building footprint
10out = model(images)
11loc = out['t1_semantic_prediction'] > 0.5
12dam = loc * out['change_prediction'].argmax(dim=1) # single-map constraint; needs B=11@article{zheng2021changeos,
2 title={Building damage assessment for rapid disaster response with a deep object-based semantic change detection framework: From natural disasters to man-made disasters},
3 author={Zheng, Zhuo and Zhong, Yanfei and Wang, Junjue and Ma, Ailong and Zhang, Liangpei},
4 journal={Remote Sensing of Environment},
5 volume={265},
6 pages={112636},
7 year={2021},
8 publisher={Elsevier}
9}
10
11@software{zheng2024torchange,
12 author = {Zheng, Zhuo},
13 title = {torchange: A Unified Change Representation Learning Benchmark Library},
14 url = {https://github.com/Z-Zheng/pytorch-change-models},
15 year = {2024}
16}
17
18@article{gupta2019xbd,
19 title={xBD: A dataset for assessing building damage from satellite imagery},
20 author={Gupta, Ritwik and Hosfelt, Richard and Sajeev, Sandra and Patel, Nirav and Goodman, Bryce and Doshi, Jigar and Heim, Eric and Choset, Howie and Gaston, Matthew},
21 journal={arXiv preprint arXiv:1911.09296},
22 year={2019}
23}