Reference: https://github.com/chaofengc/PSFR-GAN
Prepare code:
%cd /content
!git clone https://github.com/chaofengc/PSFR-GAN.git
%mkdir -p /content/PSFR-GAN/pretrain_models
%cd /content/PSFR-GAN/pretrain_models
!gdown --id 1UhzMSORSul88iVfSYQYuEal83lEoNN7l
!gdown --id 1UiHeUHVNKiEq_s5dcBv6jez6TqrAduMg
!gdown --id 1UcTeI_-YmQeNypHW98VRuIF13xEPmPWm
!gdown --id 1Unn2eznkclqUhK_o50YUyaV7eoTE4Su3
!gdown --id 1P6jZRPKPq6g2DsVJevszbM1vL5HDO1fR
Prepare data:
%cd /content/PSFR-GAN
url = 'https://i.imgur.com/7gPVDg4.png'
!wget {url}
from pathlib import Path
test_img_path = Path(url).name
Run:
%cd /content/PSFR-GAN
!python test_enhance_single_unalign.py \
--test_img_path {test_img_path} \
--results_dir results \
--gpus 1
Export:
!tar czvf PSFRGAN.tar.gz /content/PSFR-GAN/results
This is an answer to: chaofengc/PSFRGAN#4