CoolFace
Modelpublic

TTXian/RemoteSensingChangeDetection-RSCD.HA2F

sourceHugging Faceupdated 7d agoView on Hugging Face
0likes
README.md68 linesDownload Raw Back to root
1## ๐Ÿ› ๏ธ Requirements2 3### Environment4- **Linux system**,5- **Python** 3.8+, recommended 3.106- **PyTorch** 2.0 or higher, recommended 2.1.07- **CUDA** 11.7 or higher, recommended 12.18 9### Environment Installation10 11It is recommended to use Miniconda for installation. The following commands will create a virtual environment named `stnr` and install PyTorch. In the following installation steps, the default installed CUDA version is 12.1. If your CUDA version is not 12.1, please modify it according to the actual situation.12 13```bash14# Create conda environment15conda create -n stnr python=3.8 -y16conda activate stnr17 18# Install PyTorch19pip install -r requirements.txt20```21 22## ๐Ÿ“ Dataset Preparation23 24We evaluate our method on five remote sensing change detection datasets: **WHU-CD**, **LEVIR-CD**, **SYSU-CD**.25 26| Dataset | Link |27|---------|------|28| WHU-CD | [Download](https://aistudio.baidu.com/datasetdetail/251669) |29| LEVIR-CD | [Download](https://opendatalab.org.cn/OpenDataLab/LEVIR-CD) |30| SYSU-CD | [Download](https://mail2sysueducn-my.sharepoint.com/personal/liumx23_mail2_sysu_edu_cn/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fliumx23%5Fmail2%5Fsysu%5Fedu%5Fcn%2FDocuments%2FSYSU%2DCD&ga=1) |31 32 33 34### Example of Training on LEVIR-CD Dataset35 36```bash37python main.py --file_root LEVIR --max_steps 80000 --model_type small --batch_size 16 --lr 2e-4 --gpu_id 038```39 40### Example of Training on LEVIR-CD Dataset41 42```bash43python eval.py --file_root LEVIR --max_steps 80000 --model_type small --batch_size 16 --lr 2e-4 --gpu_id 044```45 46## ๐Ÿ“‚ DATA Structure47 48```49โ”œโ”€Train50      โ”œโ”€A          jpg/png51      โ”œโ”€B          jpg/png52      โ””โ”€label      jpg/png53  โ”œโ”€Val54      โ”œโ”€A 55      โ”œโ”€B56      โ””โ”€label57  โ”œโ”€Test58      โ”œโ”€A59      โ”œโ”€B60      โ””โ”€label61```62 63## ๐Ÿ™ Acknowledgement64 65We sincerely thank the following works for their contributions:66 67- [ChangeViT](https://arxiv.org/pdf/2406.12847) โ€“ A state-of-the-art method for remote sensing change detection that inspired and influenced parts of this work.68