CVPR18-SFTGAN [project page] [paper]
Torch implementation for Recovering Realistic Texture in Image Super-resolution by Deep Spatial Feature Transform.
Training code will be available before June 10.
We will provide Pytorch version of SFTGAN later (all will be available before June 10)
BasicSR contains basic codes for Super-Resolution. It now has provided basic SR models like SRResNet and SRGAN.
We have explored the use of semantic segmentation maps as categorical prior for SR.
A Spatial Feature Transform (SFT) layer has been proposed to efficiently incorporate the categorical conditions into a CNN network.
For more details, please check out our project webpage and paper.
- Torch
- cuda & cudnn
- other torch dependencies, e.g. nngraph / paths / image (install them by
luarocks install xxx
)
We test our model with Titan X/XP GPU.
- Download segmentation model (OutdoorSceneSeg_bic_iter_30000.t7) and SFT-GAN model (SFT-GAN.t7) from google drive. Put them in the
model
folder. - There are 2 sample images in
data/samples
folder. You can put your images inside this folder. - Run
th test_seg.lua
The segmentation results are then indata/
with_segprob/_colorimg/_byteimg
suffix. - Run
th test_SFT-GAN.lua
The results are then indata/
with prefixrlt_
.
If you find the code and datasets useful in your research, please cite:
@inproceedings{wang2018sftgan,
author = {Xintao Wang, Ke Yu, Chao Dong and Chen Change Loy},
title = {Recovering Realistic Texture in Image Super-resolution by Deep Spatial Feature Transform},
booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2018}
If you have trouble in comparing image details, may have a try for HandyViewer - an image viewer that you can switch image with a fixed zoom ratio.