Home

Awesome

RRSGAN

PyTorch implementation of RRSGAN: Reference-based Super-Resolution for Remote Sensing Image

Dependencies

Dataset Preparation (Reference-Based Remote Sensing Super-Resolution Dataset)

Download Datasets

Training dataset can be downloaded from baidu pan, password:lnff, google drive, and Microsoft OneDrive.

Test datasets can be found in ./dataset/val.

Preprocess Datasets

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

Training

To train an RRSGAN model:

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

Train with Slurm

cd ./codes/example/RRSGAN

sh train_slurm.sh

Testing

cd ./codes/example/RRSGAN

sh val.sh

Acknowledgement

The code is based on MMSR.

Contact

If you have any questions about our work, please contact drm@mail.tsinghua.edu.cn