• Stars
    star
    558
  • Rank 79,819 (Top 2 %)
  • Language
    Lua
  • Created over 6 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CVPR18 - Recovering Realistic Texture in Image Super-resolution by Deep Spatial Feature Transform

SFTGAN [Paper] [BasicSR]

πŸ˜ƒ Training codes are in BasicSR repo.

Recovering Realistic Texture in Image Super-resolution by Deep Spatial Feature Transform

By Xintao Wang, Ke Yu, Chao Dong, Chen Change Loy.

This repo only provides simple testing codes - original torch version used in the paper and a pytorch version. For full training and testing codes, please refer to BasicSR.

BibTeX

@InProceedings{wang2018sftgan,
    author = {Wang, Xintao and Yu, Ke and Dong, Chao and Loy, Chen Change},
    title = {Recovering realistic texture in image super-resolution by deep spatial feature transform},
    booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
    month = {June},
    year = {2018}
}

Table of Contents

  1. Quick Test
  2. Spatial Feature Modulation
  3. Semantic Categorical Prior
  4. OST dataset

Quick Test

It provides Torch and PyTorch versions. Recommend the PyTorch version.

PyTorch Dependencies

[OR] Torch Dependencies

  • Torch
  • Other torch dependencies, e.g. nngraph, paths, image (install them by luarocks install xxx)

Test models

Note that the SFTGAN model is limited to some outdoor scenes. It is an unsatisfying limitation that we need to relax in future.

  1. Clone this github repo.
git clone https://github.com/xinntao/SFTGAN
cd SFTGAN
  1. There are two sample images in the ./data/samples folder.
  2. Download pretrained models from Google Drive or Baidu Drive. Please see model list for more details.
  3. First run segmentation test.

[PyTorch]

cd pytorch_test
python test_segmentation.py

[Torch]

cd torch_test
th test_segmentation.lua

The segmentation results are then in ./data with _segprob, _colorimg, _byteimg suffix.

  1. Run sftgan test.

[PyTorch]

python test_sftgan.py.

[Torch]

th test_sftgan.lua

The results are in then in ./data with _result suffix.

Spatial Feature Modulation

SFT - Spatial Feature Transform (Modulation).

A Spatial Feature Transform (SFT) layer has been proposed to efficiently incorporate the categorical conditions into a CNN network.

There is a fantastic blog explaining the widely-used feature modulation operation distill - Feature-wise transformations.

Semantic Categorical Prior

We have explored the use of semantic segmentation maps as categorical prior for SR.

OST dataset

  • Outdoor Scene Train/Test

OST (Outdoor Scenes),OST Training,7 categories images with rich textures

OST300 300 test images of outdoor scences

Download the OST dataset from Google Drive or Baidu Drive.

πŸ˜† Image Viewer - HandyViewer

May try HandyViewer - an image viewer that you can switch image with a fixed zoom ratio, easy for comparing image details.

More Repositories

1

Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
Python
27,474
star
2

ESRGAN

ECCV18 Workshops - Enhanced SRGAN. Champion PIRM Challenge on Perceptual Super-Resolution. The training codes are in BasicSR.
Python
5,914
star
3

BasicSR

Open Source Image and Video Restoration Toolbox for Super-resolution, Denoise, Deblurring, etc. Currently, it includes EDSR, RCAN, SRResNet, SRGAN, ESRGAN, EDVR, BasicVSR, SwinIR, ECBSR, etc. Also support StyleGAN2, DFDNet.
Python
3,230
star
4

EDVR

Winning Solution in NTIRE19 Challenges on Video Restoration and Enhancement (CVPR19 Workshops) - Video Restoration with Enhanced Deformable Convolutional Networks. EDVR has been merged into BasicSR and this repo is a mirror of BasicSR.
Python
1,488
star
5

Real-ESRGAN-ncnn-vulkan

NCNN implementation of Real-ESRGAN. Real-ESRGAN aims at developing Practical Algorithms for General Image Restoration.
C
1,440
star
6

facexlib

FaceXlib aims at providing ready-to-use face-related functions based on current STOA open-source methods.
Python
800
star
7

HandyView

Handy image viewer based on PyQt5. Convenient for viewing and comparing :-)
Python
550
star
8

BasicSR-examples

BasicSR-Examples illustrates how to easily use BasicSR in your own project
Python
203
star
9

ProjectTemplate-Python

Python Project Template
Python
189
star
10

HandyFigure

HandyFigure provides the sources file (ususally PPT files) for paper figures
JavaScript
152
star
11

DNI

CVPR19 - Deep Network Interpolation for Continuous Imagery Effect Transition
118
star
12

open-docs

Doc sources for the Open Video Restoration and My Records in
Python
28
star
13

HandyLatex

Collections of Beautiful Latex Snippets
Python
16
star
14

matlab_functions_verification

Python
12
star
15

records

Records in gitbook
HTML
9
star
16

HandyCrawler

Python
8
star
17

xinntao.github.io

Home Page
JavaScript
7
star
18

xinntao

7
star
19

HandyInfer

Python
6
star
20

Real-ESRGAN-replicate

Python
6
star
21

HandyWriting

4
star
22

open-figures

Python
2
star
23

gitbook-plugin-theme-coolx

CSS
2
star
24

test_sync

Shell
2
star
25

public-figures

Store figures used in other public GitHub repositories
2
star
26

basictools

Some basic tools, like drawing, processing files and etc.
Lua
1
star
27

notes

1
star
28

public_figures

1
star
29

configurations

Vim Script
1
star