All models

dfgan_netc

DF-GAN's One-Way Output: two convs turn features plus a sentence vector into one score.

Diffusion and generative · 6 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 (10 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
295.9K
Operations
6
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2020)
Cited by
329 (as of 18 October 2026)
Authors
Ming Tao, Hao Tang, Fei Wu and others
License
CC-BY-NC-SA-4.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
m4289
Graph hash
412cf6f0ee2379886a1d69d3d0a8f7ef36bf4eb2fb467bb36f09bd93eaa02bc7
Skeleton hash
86e75066826cbba248d018173183b28d63b09dc21493fe5db878d9820aa6598f
Architecture hash
3047973d3a584fc4d53423cb0448f963c95c986dcac7174bb21d64c52725e31e
Diagram SHA-256
87fc6e878b36205148b5ca952ecdb87a60695ca1fed8fc871e32fbe46245a970
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

This is the conditional scoring head of the DF-GAN discriminator, the small network that turns image features and a sentence vector into a single adversarial score. DF-GAN, the Deep Fusion Generative Adversarial Network, was proposed as a simpler but more effective text-to-image model with a one-stage backbone. The head is the One-Way Output half of the paper's Target-Aware Discriminator; the image trunk that feeds it is a separate record.

Earlier text-to-image GANs used the discriminator's image features in two ways, one deciding real or fake and the other concatenating the sentence vector to judge text-image consistency, giving an unconditional and a conditional loss. The authors argue this Two-Way Output weakens MA-GP and slows the generator's convergence, because the summed gradient does not point at real and matching data. The One-Way Output instead concatenates the image feature and sentence vector and outputs only one adversarial loss through two convolution layers. In the discriminator as a whole, the sentence vector is replicated and concatenated with the image features that a series of DownBlocks produced.

The single gradient then points directly at the target data points, real and matching, which the paper says optimizes and accelerates generator convergence. The whole arrangement improves text-image semantic consistency without introducing extra networks. The official PyTorch code lists python 3.8 and Pytorch 1.9, and its README points to GALIP as the authors' newer model.

Key idea. The One-Way Output: a single conditional adversarial score from concatenated image features and sentence vector, replacing the two-way real/fake plus matching split.

  • DF-GAN
  • DF-GAN conditional discriminator head
  • NetC
  • One-Way Output
  • Target-Aware Discriminator
  • Deep Fusion GAN
  • text-to-image GAN
  • Tao

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

Cite the paper

@misc{tao2022dfgansimpleeffectivebaseline,
      title={DF-GAN: A Simple and Effective Baseline for Text-to-Image Synthesis}, 
      author={Ming Tao and Hao Tang and Fei Wu and Xiao-Yuan Jing and Bing-Kun Bao and Changsheng Xu},
      year={2022},
      eprint={2008.05865},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2008.05865}, 
}