# A2Net
**Repository Path**: assets01/A2Net
## Basic Information
- **Project Name**: A2Net
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-12-12
- **Last Updated**: 2024-12-12
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#
`Lightweight Remote Sensing Change Detection with Progressive Aggregation and Supervised Attention (IEEE TGRS 2023)`
> **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](https://ieeexplore.ieee.org/abstract/document/10034814).
:fire: We extend A2Net for the [semantic change detection](https://github.com/guanyuezhen/A2Net-SCD) task.
:fire: We provided the [pre-computed change maps](https://github.com/guanyuezhen/A2Net/releases/tag/v1.0) of FC-diff, FC-ef, FC-cat, STANet, L-Unet, SNUNet, DSIFN, BIT, TFI-GR, A2Net on LEVIR, BCDD, and SYSU datasets.
### 1. Overview
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.
### 2. Usage
+ Prepare the data:
- Download datasets [LEVIR](https://justchenhao.github.io/LEVIR/), [BCDD](https://study.rsgis.whu.edu.cn/pages/download/building_dataset.html), and [SYSU](https://github.com/liumency/SYSU-CD)
- Crop LEVIR and BCDD datasets into 256x256 patches. The pre-processed BCDD dataset can be obtained from [BCDD_256x256](https://drive.google.com/file/d/1VrdQ-rxoGVM_8ecA-ObO0u-O8rSTpSHA/view?usp=sharing).
- Generate list file as `ls -R ./label/* > test.txt`
- Prepare datasets into the following structure and set their path in `train.py` and `test.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 `
+ Train/Test
- `sh ./tools/train.sh`
- `sh ./tools/test.sh`
### 3. Change Detection Results
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 red and blue, respectively.
### 4. Acknowledgment
This repository is built with the help of the projects [BIT_CD](https://github.com/justchenhao/BIT_CD),
[CDLab](https://github.com/Bobholamovic/CDLab), and [MobileSal](https://github.com/yuhuan-wu/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}
}