pytorch_gan_bicyclegan_generator
A U-Net generator that translates an input image into varied outputs, steered by a sampled latent code.
Diffusion and generative · 31 operations Checked
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
- 6.2M
- Operations
- 31
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2017
- Cited by
- 1,141 (as of 29 October 2026)
- Authors
- Jun-Yan Zhu, Richard Zhang, Deepak Pathak and others
- Source
- GitHub: junyanz/BicycleGAN
- 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m8433
- Graph hash
- 1ee54385473107cf5c12d372412ed7fb50f415365ebcfb835e2ad99fce392847
- Skeleton hash
- 24cf3c05e41f0289acffee2bedfb68614dcabca703ea71c4d2a0440fea27bffc
- Architecture hash
- 49c2ee0f68363796688ba054f5cf25245e2cec32e56a4318032e894ba039954f
- Diagram SHA-256
- 76c685bbfeb919ecf1a61bade46a3cd4d60989d044704b9892f66f5191bac85a
- 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
BicycleGAN addresses image-to-image translation problems that are ambiguous, where a single input image may correspond to multiple possible outputs. The ambiguity is put into a low-dimensional latent vector that can be randomly sampled at test time, and a generator maps the input image, combined with this latent code, to the output.
The paper starts from the pix2pix framework, whose authors noted that simply appending a randomly drawn latent code did not produce diverse results. Its answer is to learn, jointly with the generator, an encoder from the output back to the latent space, which discourages two different latent codes from generating the same output. BicycleGAN is the hybrid of two such training objectives, which the paper calls cVAE-GAN and cLR-GAN.
The generator is a U-Net, an encoder-decoder architecture with symmetric skip connections. To inject the latent code at the input layer, the code is spatially replicated and concatenated with the input image. The paper uses a latent code of dimension 8 across all its datasets.
Key idea. BicycleGAN combines the cVAE-GAN and cLR-GAN objectives to enforce the connection between latent encoding and output in both directions, producing diverse outputs for one input image.
- BicycleGAN
- Bicycle GAN
- multimodal image-to-image translation
- image-to-image translation
- conditional GAN
- diverse image synthesis
- U-Net generator
- latent code
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhu2018multimodalimagetoimagetranslation,
title={Toward Multimodal Image-to-Image Translation},
author={Jun-Yan Zhu and Richard Zhang and Deepak Pathak and Trevor Darrell and Alexei A. Efros and Oliver Wang and Eli Shechtman},
year={2018},
eprint={1711.11586},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1711.11586},
}