Giter Club home page Giter Club logo

gspformer's Introduction

Hyperspectral Image Classification based on Global Spectral Projection and Space Aggregation

This paper is accpeted by IEEE Geoscience and Remote Sensing Letters (GRSL) and can be downloaded here.

Fig 1

Fig. 1 An overview framework of the proposed GSPFormer model for HSI classification. It consists of cascaded global spectral projection space (GSPS) and space aggregation module (SAM). Spectral self-interaction (SSI) is used to expand each input spectrum for fully exploiting its global features.

Fig 2

Fig. 2 OA and AA of our GSPFormer and state-of-the-art models at different patch sizes on Indian Pines. (a) OA. (b) AA.

How to run our code

Data

Before running this code, you should download the widely used datasets(IndianPines, PaviaC, PaviaU and Salinas) and put them in the file Datasets. The structure of the Datasets file:

-Datasets
  --IndianPines
  ----Indian_pines_corrected.mat
  ----Indian_pines_gt.mat
  --Salinas
  ----Salinas_corrected.mat
  ----Salinas_gt.mat
  --PaviaC
  ----Pavia.mat
  ----Pavia_gt.mat

Code

Please run the demo_train.py and pred.py

python demo_train.py -d IN -p 7 -ip False
python pred.py -d IN -p 7 -ip False

References

The code of our GSPFormer is based on the implementations of HybrisdSN and SpectralFormer.

Citation

D. Chen, J. Zhang, Q. Guo and L. Wang, "Hyperspectral Image Classification based on Global Spectral Projection and Space Aggregation," in IEEE Geoscience and Remote Sensing Letters, doi: 10.1109/LGRS.2023.3277841.

GSPFormer

gspformer's People

Contributors

preston-dong avatar

Stargazers

 avatar pikachu avatar  avatar

Watchers

 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.