Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This code is for "Hyperspectral Remote Sensing Imagery Generation From RGB Images Based on Joint Discrimination".
Please kindly cite this paper if you use this code.
@article{liu2021hyperspectral,
title={Hyperspectral Remote Sensing Imagery Generation From RGB Images Based on Joint Discrimination},
author={Liu, Liqin and Lei, Sen and Shi, Zhenwei and Zhang, Ning and Zhu, Xinzhong},
journal={IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing},
volume={14},
pages={7624--7636},
year={2021},
publisher={IEEE}
}
The code is to generate hyperpsectral imagery from RGB images.
Main Requirements:
Python 3.5.2
Pytorch 1.4.0
Gdal 2.2.2
Training:
1. new package and put training dataset in ./datasets/g5pairs/train/hyper(multi)/*.tif
2. new package ./g5pair_results
3. open visdom
4.python pytorch_pix2pix_new.py
Testing:
1. new package and put training dataset in ./datasets/g5pairs/train/multi/*.tif
2. python pytorch_pix2pix_test.py
Evaluate:
1. python performance_cal.py, get MPSNR, MRAE, RMSE, SAM, SSIM.