Awesome
<p align=center>Lightweight Remote Sensing Change Detection with Progressive Aggregation and Supervised Attention (IEEE TGRS 2023)
</p>
Authors: Zhenglai Li, Chang Tang, Xinwang Liu, Wei Zhang, Jie Dou, Lizhe Wang, Albert Zomaya
This repository contains a simple Python implementation of our paper A2Net.
:fire: We extend A2Net for the semantic change detection task.<br> :fire: We provided the pre-computed change maps of FC-diff, FC-ef, FC-cat, STANet, L-Unet, SNUNet, DSIFN, BIT, TFI-GR, A2Net on LEVIR, BCDD, and SYSU datasets.<br>
1. Overview
<p align="center"> <img width=500 src="assest/A2Net.jpg"/> <br /> </p>A framework of the proposed A2Net. The temporal features are extracted from a registered pair of images by weight-shared MobileNetV2. Then, we use NAM to merge the temporal features within neighbor stages of the backbone to enhance their feature representation capability. PCIM is designed to capture the temporal change information from bi-temporal features at their corresponding feature levels. We stack SAM on each fusion of low-level and high-level features to polish the details of changed objects. Finally, a change map is obtained by gradually aggregating temporal difference features. <br>
2. Usage
-
Prepare the data:
- Download datasets LEVIR, BCDD, and SYSU
- Crop LEVIR and BCDD datasets into 256x256 patches. The pre-processed BCDD dataset can be obtained from BCDD_256x256.
- Generate list file as
ls -R ./label/* > test.txt
- Prepare datasets into the following structure and set their path in
train.py
andtest.py
├─Train ├─A ...jpg/png ├─B ...jpg/png ├─label ...jpg/png └─list ...txt ├─Val ├─A ├─B ├─label └─list ├─Test ├─A ├─B ├─label └─list
-
Prerequisites for Python:
- Creating a virtual environment in the terminal:
conda create -n A2Net python=3.8
- Installing necessary packages:
pip install -r requirements.txt
- Creating a virtual environment in the terminal:
-
Train/Test
sh ./tools/train.sh
sh ./tools/test.sh
3. Change Detection Results
<p align="center"> <img src="assest/benchmark_results.png"/> <br /> <em> Quantitative comparisons in terms of $\kappa$, IoU, F1, OA, Rec, and Pre on three remote sensing change detection datasets. The best and second best results are highlighted in <font color="#FF0000">red</font> and <font color="#00B0F0">blue</font>, respectively. </em> </p>4. Acknowledgment
This repository is built with the help of the projects BIT_CD, CDLab, and MobileSal for academic use only.
5. Citation
Please cite our paper if you find the work useful:
@article{Li_2023_A2Net,
author={Li, Zhenglai and Tang, Chang and Liu, Xinwang and Zhang, Wei and Dou, Jie and Wang, Lizhe and Zomaya, Albert Y.},
journal={IEEE Transactions on Geoscience and Remote Sensing},
title={Lightweight Remote Sensing Change Detection With Progressive Feature Aggregation and Supervised Attention},
year={2023},
volume={61},
number={},
pages={1-12},
doi={10.1109/TGRS.2023.3241436}
}