Skip to content

Latest commit

 

History

History
91 lines (60 loc) · 2.67 KB

README.md

File metadata and controls

91 lines (60 loc) · 2.67 KB

DACN

Hyperspectral Unmixing via Dual Attention Convolutional Neural Networks

Pengbo Zhang

Graduation Thesis of Henan Polytechnic University.

Introduction

In this article, we design an end-to-end hyperspectral unmixing method based on dual attention convolutional neural network (DACN), which adds two types of attention modules on the basis of feature extraction by CNN, and models the semantic information on spectral-spatial dimensions to adaptively fuse local and global features. Furthermore, Layer normalization and Maxpooling are used on DACN to avoid over fitting. The evaluation of the complete performance is carried out on two hyperspectral datasets: Jasper Ridge and Urban. Compared with that of the existing method, our method can extract spectral-spatial feature information more effectively, and the precision is improved significantly.

Requirement

  • Python 3.8
  • TensorFlow 2.3.0

Recommend use conda create a virtual environment and to install dependencies using:

pip install -r requirements.txt

Usage

After setting the parameters in config/config.json, enter the following command in the terminal:

python run.py
Fig 1. Quantitative analysis of learning rate for the DACN method in the Jasper Ridge datasets.

More Details:

Use python run.py -h to get more parameters setting details.

Datasets

We provide two processed datasets: Jasper Ridge(jasper), Urban(urban) in datasets.

  • data.npy: hyperspectral data file.

  • data_gt.npy: ground truth file.

  • data_m.npy: endmembers file.

Result

Training Loss

Fig 2. training loss of the Jasper Ridge datasets by different methods. Fig 3. training loss of the Urban datasets by different methods.

Unmixing Result

Fig 4. rmsAAD values of the Jasper Ridge and Urban datasets by different methods.
Fig 5. Ground-truth and estimated abundances obtained for each endmember material in the Urban datasets by different methods.

Citation

If you find DACN useful in your research, please consider citing.

Misc.

Code has been tested under:

  • Windows 10 with 32GB memory, a RTX2060 6G GPU and AMD R7-4800H CPU.