This is a revised version of the code in https://github.com/IssamLaradji/M-ADDA for HSI cross-scene classification by using the model proposed in the paper "Deep Metric Learning-Based Feature Embedding for Hyperspectral Image Classification".
Python 2.x/3.x
Pytorch 0.4.1
GPU
Please download the data first, the data is available in https://pan.baidu.com/s/1ZlM6KzYC8swpKZYASXO39A and set the parameters in main.py and experiments.py and then run: python main.py