Code for the TGRS paper 'Spectral–Spatial Masked Transformer With Supervised and Contrastive Learning for Hyperspectral Image Classification'. Digital Object Identifier https://doi.org/10.1109/TGRS.2023.3264235
SS-MTr_main.py is the main function for the model: SS-MTr
C-SS-MTr_main.py is the main function for the model: C-SS-MTr
S-SS-MTr_main.py is the main function for the model: S-SS-MTr
SC-SS-MTr_main.py is the main function for the model: SC-SS-MTr