This is a project about MADANet, a lightweight hyperspectral image classification network that combines multi-scale feature aggregation and dual attention mechanism. The goal of this project is to implement this network and test it on various hyperspectral image datasets.
Cui, B.; Wen, J.; Song, X.; He, J. MADANet: A Lightweight Hyperspectral Image Classification Network with Multi-Scale Feature Aggregation and Dual Attention Mechanism. Remote Sens. 2023, 15, 5222. https://doi.org/10.3390/rs15215222
.idea/
: Folder for IDE settings.gitignore
: Lists files and folders to be ignored by gitCBAM.py
: Contains code for Convolutional Block Attention Module (CBAM)DANet.py
: Contains code for Dual Attention Network (DANet)Indian_pines_corrected.mat
: File for the Indian Pines datasetIndian_pines_gt.mat
: File for the ground truth labels of the Indian Pines datasetLICENSE
: Project license fileMADANet.py
: Contains code for the MADANet networkdataset
: Contains code for handling the datasetevaluate.py
: Contains code for evaluating the model performancetrain.py
: Contains code for training the model
- Clone this repository
- Download and prepare your datasets
- Run
train.py
Our model has only 0.16 M model parameters on the Indian Pines (IP) dataset, but the overall accuracy is as high as 98.34%. Similarly, the framework achieved overall accuracies of 99.13%, 99.17%, and 99.08% on the University of Pavia (PU), Salinas (SA), and WHU Hi LongKou (LongKou) datasets, respectively.
If you have any suggestions or issues for this project, feel free to raise an issue or pull request.
This project is licensed under the MIT License. See the LICENSE file for details.