Coder Social home page Coder Social logo

mtisz / dacn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laugh12321/dacn

0.0 0.0 0.0 242.22 MB

Hyperspectral Unmixing via Dual Attention Convolutional Neural Networks | 基于双注意力卷积神经网络的高光谱图像解混

Home Page: https://github.com/laugh12321/DACN

License: MIT License

Python 100.00%

dacn's Introduction

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.

dacn's People

Contributors

laugh12321 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.