All models

mmagic_srgan_resnet

A deep residual generator that upscales a low-resolution image by 4x, from the SRGAN super-resolution paper.

Diffusion and generative · 76 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 (52 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
1.6M
Operations
76
Framework
PyTorch
Recurrent
No
Published
CVPR 2017
Cited by
989 (as of 29 October 2026)
Authors
Christian Ledig, Lucas Theis, Ferenc Huszar and others
License
Apache-2.0
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
m6273
Graph hash
bf9c4dba14cc0f44602eee8c18f3087087493b9eb445a0758af80b9e6a55a824
Skeleton hash
c07d213e7ccc0243e819a46fbc1b11353d90ada5d07da8709db31d0a105989cf
Architecture hash
3680d8e5e20cf6415b6ed4bfc69b725a7c808e24a9c79a2727b09abb148571b7
Diagram SHA-256
04fe2077ba2baef01be0898e77890b6a4ef3a457dcf9677804e291f207478f13
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

About this model's family

SRGAN is a generative adversarial network for image super-resolution. The question behind it is how to recover the finer texture details when super-resolving at large upscaling factors. The paper observes that minimizing mean squared reconstruction error gives high peak signal-to-noise ratios but estimates that often lack high-frequency details.

At the core of the paper's generator are residual blocks with identical layout: two convolutional layers with small 3×3 kernels and 64 feature maps, followed by batch-normalization layers and ParametricReLU as the activation function. The paper's generator has 16 identical residual blocks. Two trained sub-pixel convolution layers increase the resolution of the input image.

Trained for MSE alone, the network is called SRResNet, and the paper used the trained SRResNet as initialization for the generator when training the GAN. SRGAN itself is trained with a perceptual loss that consists of an adversarial loss and a content loss. The content loss replaces the MSE-based one with a loss calculated on feature maps of the VGG network. In the paper's mean-opinion-score test, the scores obtained with SRGAN were closer to those of the original high-resolution images than to those of the other methods compared.

Key idea. The paper presents SRGAN, a GAN for image super-resolution whose deep residual generator is trained with a perceptual loss made of an adversarial loss and a content loss.

  • SRGAN
  • SRResNet
  • MSRResNet
  • srgan_resnet
  • super-resolution
  • single image super-resolution
  • 4x upscaling
  • image upscaling
  • perceptual loss
  • super-resolution GAN

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

Cite the paper

@misc{ledig2017photorealisticsingleimagesuperresolution,
      title={Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network}, 
      author={Christian Ledig and Lucas Theis and Ferenc Huszar and Jose Caballero and Andrew Cunningham and Alejandro Acosta and Andrew Aitken and Alykhan Tejani and Johannes Totz and Zehan Wang and Wenzhe Shi},
      year={2017},
      eprint={1609.04802},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1609.04802}, 
}