Skip to content

yzygit1230/CAGNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAGNet

  • The pytorch implementation for CAGNet in paper "Cross-Attention Guided Group Aggregation Network for Cropland Change Detection".

Requirements

  • Python 3.6
  • Pytorch 1.7.0

Datasets Preparation

The path list in the datasest folder is as follows:

|—train

  • ||—A

  • ||—B

  • ||—OUT

|—val

  • ||—A

  • ||—B

  • ||—OUT

|—test

  • ||—A

  • ||—B

  • ||—OUT

where A contains pre-temporal images, B contains post-temporal images, and OUT contains ground truth images.

Train

  • python train.py --dataset-dir dataset-path

Test

  • python eval.py --ckp-paths weight-path --dataset-dir dataset-path

Visualization

  • python visualization visualization.py --ckp-paths weight-path --dataset-dir dataset-path (Note that batch-size must be 1 when using visualization.py)
  • Besides, you can adjust the parameter of full_to_color to change the color

Citation

If this work is helpful to you, please cite it as:

@article{xu2023cross,
  title={Cross-Attention Guided Group Aggregation Network for Cropland Change Detection},
  author={Xu, Chuan and Ye, Zhaoyi and Mei, Liye and Shen, Sen and Sun, Shaohua and Wang, Ying and Yang, Wei},
  journal={IEEE Sensors Journal},
  volume={23},
  pages={13680-13691},
  year={2023},
  publisher={IEEE}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages