
attngan_d_net128
Diffusion and generative29 ops19.4M params
AttnGAN's three per-scale critics, each judging realism and sentence match.
Diffusion and generative · 23 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.
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.
D_NET64 is the discriminator for the 64x64 images produced by G0.
About this model's family
These are the per-scale discriminators of AttnGAN, the Attentional Generative Adversarial Network for attention-driven, multi-stage refinement in fine-grained text-to-image generation. AttnGAN's generative network has m generators that take hidden states as input and generate images of small-to-large scales. At the ith stage, the generator Gi has a corresponding discriminator Di, and the three captured here cover the 64x64, 128x128 and 256x256 stages.
Each discriminator returns two judgments: an unconditional loss that decides whether the image is real or fake, and a conditional loss that decides whether the image and the sentence match. This GAN loss jointly approximates conditional and unconditional distributions, and each Di is trained to classify its input as real or fake by minimizing a cross-entropy loss. The sentence condition is the global sentence vector, formed by concatenating the last hidden states of a bi-directional LSTM text encoder. The discriminators are structurally disjoint, so they can be trained in parallel, each focusing on a single image scale.
The full AttnGAN2 architecture stacks two attention models with three generators, which is why there are three discriminators. The paper reports that AttnGAN boosts the best reported inception score by 14.14% on the CUB dataset and 170.25% on COCO. The official code is a PyTorch implementation that lists python 2.7 among its dependencies.
Key idea. Three scale-specific discriminators that each score an image both unconditionally and against the sentence embedding, so the attentional generator is trained at 64, 128 and 256 pixels at once.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{xu2017attnganfinegrainedtextimage,
title={AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks},
author={Tao Xu and Pengchuan Zhang and Qiuyuan Huang and Han Zhang and Zhe Gan and Xiaolei Huang and Xiaodong He},
year={2017},
eprint={1711.10485},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1711.10485},
}