All models

SFT-GAN

A ×4 super-resolution network whose features are modulated by semantic segmentation maps of the input.

Diffusion and generative · 740 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (20 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
53.7M
Operations
740
Framework
PyTorch
Recurrent
No
Published
CVPR 2018
Cited by
1,213 (as of 29 October 2026)
Authors
Xintao Wang, Ke Yu, Chao Dong, Chen Change Loy
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20026
Graph hash
20c917e7ee452bbcd091c24abfb77574231343446274cb32fefa6481d54819d9
Skeleton hash
b836d91e6b3cb6533f8bd299ee6354b7a6cdd4a240209e70502f1139976ec949
Architecture hash
3a9035c587f2de775061b6fb6a9c54e951fb513725c5c09074c6d9ccd4207ad4
Diagram SHA-256
b0acaa6419bf08390cd15466ef6165345efec948c275719f0618adee85d9c9db
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

SFT-GAN is a single-image super-resolution network that aims to recover textures faithful to the semantic class of each region. The paper's motivating example is that adversarial and perceptual losses used without a prior can add details that do not match the underlying class.

The central layer is the Spatial Feature Transform (SFT), which is conditioned on semantic segmentation probability maps and generates a pair of modulation parameters that apply an affine transformation spatially to feature maps. The generator consists of two streams, a condition network and a super-resolution network. The condition network uses 1×1 kernels in all of its convolution layers, which restricts its receptive field. The super-resolution network is built with 16 residual blocks that contain the SFT layers. The segmentation maps come from a separately trained segmentation network, which receives the low-resolution image after bicubic upsampling.

The authors work with outdoor scenes and assume seven categories: sky, mountain, plant, grass, water, animal and building. The paper reports textures that are more realistic than those of SRGAN and EnhanceNet. All of its experiments use a scaling factor of ×4 between the low-resolution and high-resolution images.

Key idea. The paper introduced the Spatial Feature Transform layer, which modulates intermediate features of a super-resolution network with affine parameters generated from semantic segmentation probability maps.

  • sft-gan
  • sftgan
  • spatial feature transform
  • sft layer
  • image super-resolution
  • single image super-resolution
  • texture recovery
  • semantic prior super-resolution
  • categorical prior

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wang2018recoveringrealistictextureimage,
      title={Recovering Realistic Texture in Image Super-resolution by Deep Spatial Feature Transform}, 
      author={Xintao Wang and Ke Yu and Chao Dong and Chen Change Loy},
      year={2018},
      eprint={1804.02815},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1804.02815}, 
}