All models

espcn_sub_pixel

ESPCN extracts features at low resolution and upscales only in its final sub-pixel convolution layer.

Diffusion and generative · 8 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 (11 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
59.7K
Operations
8
Framework
PyTorch
Recurrent
No
Published
CVPR 2016
Cited by
7,494 (as of 17 October 2026)
Authors
Wenzhe Shi, Jose Caballero, Ferenc Huszár and others
License
BSD-3-Clause
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
m4743
Graph hash
bde71018464f80d3d8d36d4350b1e46d0fd7ff9b655611b9eb19f6197238694f
Skeleton hash
a798f4c61c26556c096b01eb6b0f5ee64ed18548211a8f8dedd375f14000c9b8
Architecture hash
30ee9aabed2643f2cd490aa7bd563de3767b88ab9508772c62b50e5b99bb8119
Diagram SHA-256
57648173a7a032b66fc17f7d86634c1577d7a949563423fc19473c570ddaad34
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

ESPCN, the efficient sub-pixel convolutional neural network, is a small super-resolution network that does its feature extraction at low resolution and upscales only in the last layer. Earlier methods upscaled the low-resolution input to high-resolution space using a single filter, commonly bicubic interpolation, before reconstruction, which the authors demonstrate is sub-optimal and adds computational complexity. The paper presents the first convolutional neural network capable of real-time super-resolution of 1080p videos on a single K2 GPU.

The sub-pixel convolution layer learns an array of upscaling filters to upscale the final low-resolution feature maps into the high-resolution output. Mechanically it is a convolution whose outputs are rearranged by a periodic shuffling operator that turns an H × W × C·r² tensor into one of shape rH × rW × C. No nonlinearity is applied to the outputs of the last convolution, and because the shuffle can be avoided at training time by pre-shuffling the training data, the layer is log2 r² times faster than a deconvolution layer in training. The paper's final model sets l = 3 with filter sizes and channel counts (5, 64), (3, 32) and 3, and chooses tanh instead of relu as the activation.

The captured member is not the paper's model but the ONNX model zoo's super-resolution-10, whose readme points to the pytorch/examples super_resolution code for its parameters and network. That model takes only the greyscale Y channel of a 224x224 YCbCr image and outputs a [batch_size,1,672,672] array, so the upscaling factor is 3. The colour channels are then upscaled separately with bicubic interpolation and recombined, and the zoo model was trained on the BSD300 dataset using crops from the 200 training images. For reference, with upscale factor 3 on HD video the paper's ESPCN takes 0.038s per frame where the SRCNN 9-5-5 ImageNet model takes 0.435s.

Key idea. ESPCN moves upscaling to the very end of the network with a sub-pixel convolution layer that learns upscaling filters per feature map, so feature extraction happens in low-resolution space and HD video can be super-resolved in real time on a single GPU.

  • ESPCN
  • sub-pixel convolution
  • pixel shuffle
  • super-resolution
  • super_resolution
  • espcn_sub_pixel
  • sub_pixel_cnn_2016
  • super-resolution-10
  • ONNX model zoo
  • real-time super-resolution
  • efficient sub-pixel convolutional neural network
  • upscaling

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

Cite the paper

@misc{shi2016realtimesingleimagevideo,
      title={Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network}, 
      author={Wenzhe Shi and Jose Caballero and Ferenc Huszár and Johannes Totz and Andrew P. Aitken and Rob Bishop and Daniel Rueckert and Zehan Wang},
      year={2016},
      eprint={1609.05158},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1609.05158}, 
}