Target: Change detection aims to find the difference between two images at different times and output a change map.

This paper has been accepted in AAAI-23.
For more information, please see our paper at AAAI or arxiv.
Visualize each module by Gradcam:

cuda: 11.0
python: 3.6.9
pytorch: 1.7.0
torchvision: 0.8.1 git clone https://github.com/f64051041/SARAS-Net.git
cd SARAS-Net Download LEVIR-CD weight : https://drive.google.com/file/d/1Gs6iYQcZI1Jm4NhthCwWI2olbO-bpvTd/view?usp=share_link
After downloaded the model weight, you can put it in SARAS-Net/.
Then, run a demo to get started as follows:
python demo.pyAfter that, you can find the prediction results in SARAS-Net/samples/
You can find SARAS-Net/cfgs/config.py to set the training parameter.
python train.pyAfter training, you can put weight in SARAS-Net/.
Then, run a cal_acc.py to get started as follows:
python cal_acc.pyYou can set show_result = True in cal_acc.py to show the result for each pairs.
train_dataset
|- train_dataset
|- image1, image2, gt
|- val_dataset
|- image1, image2, gt
|- train.txt
|- val.txtThe format of train.txt and val.txt please refer to SARAS-Net/train_dataset/train.txt and SARAS-Net/train_dataset/val.txt
test_dataset
|- A
|- image1
|- B
|- image2
|- label
|- gt LEVIR-CD: https://justchenhao.github.io/LEVIR/
WHU-CD: https://study.rsgis.whu.edu.cn/pages/download/building_dataset.html
Quick train on LEVIR-CD : https://drive.google.com/file/d/1DAlxuqalNIPopt-WgtDmCYO98_jWM3ER/view?usp=share_link
Quick test on LEVIR-CD : https://drive.google.com/file/d/1Bj5GQ3hZcDVSpFGZKxm7zIuCBP5XEr6x/view?usp=share_link
| Dataset | Pre. | Rec. | F1-score | IoU | OA |
|---|---|---|---|---|---|
| LEVIR-CD | 91.97% | 91.85% | 91.91% | 84.95% | 99.10% |
| CCD-CD | 97.76% | 97.23% | 97.49% | 95.11% | 99.35% |
| WHU-CD | 88.41% | 85.81% | 87.09% | 77.14% | 98.89% |
| DSIFN-CD | 67.65% | 67.51% | 67.58% | 51.04% | 89.01% |


