Skip to content

C. Xu et al., "Hybrid Attention-Aware Transformer Network Collaborative Multiscale Feature Alignment for Building Change Detection," in IEEE Transactions on Instrumentation and Measurement, vol. 73, pp. 1-14, 2024

Notifications You must be signed in to change notification settings

yangwill81/HATNet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HATNet

  • The pytorch implementation for HATNet in paper "Hybrid Attention-aware Transformer Network Collaborative Multiscale Feature Alignment for Building 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

About

C. Xu et al., "Hybrid Attention-Aware Transformer Network Collaborative Multiscale Feature Alignment for Building Change Detection," in IEEE Transactions on Instrumentation and Measurement, vol. 73, pp. 1-14, 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%