Home

Awesome

Segment Change Model (SCM) for Unsupervised Change detection in VHR Remote Sensing Images: a Case Study of Building

Open-source codes of CVEO recent research "Segment Change Model (SCM) for Unsupervised Change detection in VHR Remote Sensing Images: a Case Study of Buildings" (ArXiv, IEEE), which has been recently accepted for inclusion as an Oral presentation in the IGARSS 2024.

To the best of our knowledge, this work is the first to apply multimodal large language models (MLLM) to remote sensing image change detection without the need for fine-tuning. This represents a preliminary exploration of the application of general AI in industry.

Method

Framework of Segment Change Model (SCM)

Results on LEVIR-CD and WHU-CD datasets

Comparison with other UCD methods

Ablation Study

Qualitative results on WHU-CD dataset

Usage

Create a conda virtual env:

conda create -n scm python=3.9
conda activate SCM

Installation

git clone https://github.com/CASIA-IVA-Lab/FastSAM.git
cd FastSAM
pip install -r requirements.txt
pip install git+https://github.com/openai/CLIP.git

Quick Start on LEVIR-CD dataset

We have prepared samples from LEVIR-CD dataset in the 'data/samples_LEVIR' folder for a quick start.

Run like:

python demo_LEVIR.py

Soon you'll acquire cd results in 'results/samples_levir/'.

Quick Start on WHU-CD dataset

We have prepared samples from WHU-CD dataset in the 'data/samples_WHU-CD' folder for a quick start.

Run like:

python demo_WHU.py

Soon you'll acquire cd results in 'results/samples_WHU-CD/'.

Contents of Directory

List of Arguments

python SCM.py (for SCM model)

ArgumentDetails
-m, --modeChoose modes of conducting UCD with 'RFF' (Recalibrated Feature Fusion) / 'PSA' (Piecewise Semantic Attention) modules. Default: RFF PSA.
--sam_weight_pathSpecify path of the FastSAM pt model. Default: 'weights/FastSAM_X.pt'.
--clip_weight_pathSpecify path of the CLIP pt model. Default: 'weights/ViT-B-32.pt'
--img_dir_1Set input dir of images at prev time. Default: 'data/samples_WHU-CD/prev/'
--img_dir_2Set input dir of images at curr time. Default: 'data/samples_WHU-CD/curr/'
-o, --out_dirSet output CD directory, which consists of bcd_map and dis folders. Default: 'results/samples_WHU-CD/'

Run full script like:

python SCM.py -m RFF PSA --sam_weight_path weights/FastSAM_X.pt --clip_weight_path weights/ViT-B-32.pt --img_dir_1 data/samples_WHU-CD/prev/ --img_dir_2 data/samples_WHU-CD/curr/ -o results/samples_WHU-CD/

Citation

Please consider citing the following paper if you used this project in your research.

@article{tan2023segment,
  title={Segment Change Model (SCM) for Unsupervised Change detection in VHR Remote Sensing Images: a Case Study of Buildings},
  author={Tan, Xiaoliang and Chen, Guanzhou and Wang, Tong and Wang, Jiaqi and Zhang, Xiaodong},
  journal={arXiv preprint arXiv:2312.16410},
  year={2023}
}

License

Code is released for non-commercial and research purposes ONLY. For commercial purposes, please contact the authors.

Reference

Appreciate the work from the following repositories: