All models

pix2pixhd_local_enhancer

pix2pixHD's local enhancer: a second residual generator refining the global generator to 2048 by 1024.

Diffusion and generative · 133 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 (25 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
46M
Operations
133
Framework
PyTorch
Recurrent
No
Published
CVPR 2018
Cited by
4,512 (as of 17 October 2026)
Authors
Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu and others
License
BSD-2-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
m8198
Graph hash
dd90c0bb76830c0a5d5b342e71332e3d9c6da216e7388da2915e19a8cf17fd7e
Skeleton hash
8737e99d0c674248f50f71a805ec6cab8c83ef39658569fedb016181114bf6e4
Architecture hash
5210c3919f13e19e02719d7d79b51405650364e10e60bbaaaa4b61c3040fa6a6
Diagram SHA-256
dc261c1260ad51fea0541dd7ee30fbba380dc6ac8e58aa4cb67edc591d04cad2
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

pix2pixHD synthesizes high-resolution photo-realistic images from semantic label maps with conditional generative adversarial networks. Where earlier conditional GAN results were often limited to low resolution, this work generates 2048 by 1024 results with a novel adversarial loss and new multi-scale generator and discriminator architectures. The authors had tried applying the pix2pix framework directly to high resolution and found the training unstable and the image quality unsatisfactory.

The generator is decomposed into two sub-networks: G1, the global generator network, and G2, the local enhancer network, and the traced member is the local enhancer wrapped around its global generator. The global generator operates at 1024 by 512, and the local enhancer outputs an image with 4 times the output size of the previous one, 2 times along each image dimension. Both sub-networks consist of a convolutional front-end, a set of residual blocks and a transposed convolutional back-end, an architecture that had already proven successful for neural style transfer. The coupling between the two is a sum: the input to the local enhancer's residual blocks is the element-wise sum of its own front-end feature map and the last feature map of the global generator's back-end, which integrates global information into the fine scale. Training proceeds coarse to fine: the global generator is trained first, then the local enhancer is appended and the two are trained jointly on high resolution images.

The input is more than a label map: the method incorporates object instance segmentation information through an instance boundary map, which gives adjacent cars sharper boundaries. On the discriminator side the paper uses 3 discriminators with identical structure operating at different image scales, plus a feature matching loss on their intermediate layers. The main comparisons and ablations are on the Cityscapes dataset and the NYU Indoor RGBD dataset. Human opinion studies in the paper showed the method significantly outperforming existing methods in both quality and resolution.

Key idea. The local enhancer adds a second residual generator at twice the resolution of the global generator and feeds it the sum of its own features and the global generator's last feature map, which lets a conditional GAN reach 2048 by 1024 output.

  • pix2pixHD
  • pix2pix HD
  • local enhancer
  • global generator
  • label to image
  • semantic image synthesis
  • Cityscapes
  • high-resolution image synthesis
  • conditional GAN
  • Wang

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

Cite the paper

@misc{wang2018highresolutionimagesynthesissemantic,
      title={High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs}, 
      author={Ting-Chun Wang and Ming-Yu Liu and Jun-Yan Zhu and Andrew Tao and Jan Kautz and Bryan Catanzaro},
      year={2018},
      eprint={1711.11585},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1711.11585}, 
}