HDGAN
A text-to-image GAN whose generator emits images at several resolutions, each with its own discriminator.
Diffusion and generative · 207 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
- 67.2M
- Operations
- 207
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2018
- Cited by
- 333 (as of 29 October 2026)
- Authors
- Zizhao Zhang, Yuanpu Xie, Lin Yang
- Source
- GitHub: ypxie/HDGan
- 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
- m17224
- Graph hash
- e238efbf2423d91f49f8719f475c53a5cadd78519810f101af5698aea16d3614
- Skeleton hash
- 53402a2d68a11acf4ab7c1bb8be5264f2d51a01469e986e0f387fcf035116fcb
- Architecture hash
- da6d068ef230d49627b9e6e9be80c397fc06781cc0f36de168a7f1eb84a94292
- Diagram SHA-256
- 85505591ce101f6ebd4a48e168230f30add464d6b07913e42ccf411129b6d6be
- 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
HDGAN is a generative adversarial network for generating photographic images conditioned on text descriptions. The name refers to high-definition results and to the idea of hierarchically-nested discriminators. The paper contrasts it with StackGAN, which requires training two separate GANs. HDGAN instead uses a single-stream generator with hierarchically-nested discriminators, trained end-to-end.
The generator produces side output images with growing resolutions, and each side output is associated with a discriminator. The paper describes these added adversarial objectives as regularizers on the generator's hidden space that also offer a short path for error signals. For each side output, the corresponding discriminator computes a matching-aware pair loss on image-text pairs and a local image loss. The text enters as a sentence embedding generated by a pre-trained char-RNN text encoder.
The generator is composed of three kinds of modules, which the paper terms K-repeat res-blocks, stretching layers and linear compression layers. The authors configure the side outputs at 4 different scales. On the CUB birds dataset, the paper reports that HDGAN improves the Inception score of StackGAN by .45 and of StackGAN++ by .31.
Key idea. The paper attaches hierarchically-nested discriminators to intermediate layers of a single-stream generator, so that one GAN trained end-to-end synthesizes high-resolution images from text.
- hdgan
- hierarchically-nested adversarial network
- hierarchically-nested discriminators
- text-to-image synthesis
- text to image gan
- photographic text-to-image synthesis
- high-resolution image generation
- cub birds
- oxford-102 flowers
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2018photographictexttoimagesynthesishierarchicallynested,
title={Photographic Text-to-Image Synthesis with a Hierarchically-nested Adversarial Network},
author={Zizhao Zhang and Yuanpu Xie and Lin Yang},
year={2018},
eprint={1802.09178},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1802.09178},
}