Skip to content

dandan-1/MAFN-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperspectral Image Classification with Multi-attention Fusion Network

This repository implementates 7 frameworks for hyperspectral image classification based on Keras and PyTorch.

Some of our code references the projects

Requirements:

CUDA = 9.0
python=3.6
PyTorch = 1.3.1
sklearn = 0.20.4
tensorflow-gpu = 1.12.0
keras=2.2.4
numpy=1.18.5

Datasets:

You can download the hyperspectral datasets in mat format at: http://www.ehu.eus/ccwintco/index.php/Hyperspectral_Remote_Sensing_Scenes, and move the files to ./datasets folder.

Usage:

Take KSC dataset as an example:

  1. Download the required dataset and add the corresponding path in the file ./KSC_data.py
  2. Taking the MAFN framework as an example, run ./KSC/main.py.

Paper:

  • Two-CNN
  • BAM-CM
  • SSAN
  • SSRN
  • DFFN
  • DBDA
  • MAFN Figure 1. The structure of the MAFN network. MAFN consists of three main components: spectral feature extraction, spatial feature extraction and joint spectral-spatial feature extraction. MAFN employs Band Attention Module (BAM) and Spatial Attention Module (SAM) respectively to alleviate the influence of redundant bands and interfering pixels. MAFN realizes feature reuse and obtains complementary information from different levels by combining multi-attention and multi-level fusion mechanisms, which can extract more representative features.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages