PyTorch implementation of RRSGAN: Reference-based Super-Resolution for Remote Sensing Image
pip install numpy opencv-python lmdb pyyaml
Training dataset can be downloaded from baidu pan, password:lnff, google drive, and Microsoft OneDrive.
Test datasets can be found in ./dataset/val
.
After downloading the training dataset, please put them in the folder ./dataset/train
.
tar -xvzf train_data.tar.gz
The training set is transformed into LMDB format for faster IO speed.
cd ./dataset/data_script
python create_lmdb.py
Before training, pre-trained vgg model need to be downloaded here. Please put it in the folder ./codes/models/archs/pretrained_model
.
cd ./codes/example/RRSGAN
sh train.sh
cd ./codes/example/RRSGAN
sh train_slurm.sh
Before running this code, please modify train_slurm.sh
to your own configurations.
You can find your training results in ./codes/example/RRSGAN/exp
cd ./codes/example/RRSGAN
sh val.sh
val.sh
to your own configurations, e.g. the save path of your model.The code is based on MMSR.
If you have any questions about our work, please contact drm@mail.tsinghua.edu.cn