All models

dfgan_netd

DF-GAN's image trunk: residual DownBlocks that squeeze a picture into a 4x4 feature map.

Diffusion and generative · 39 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 (51 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
4.9M
Operations
39
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
m4290
Graph hash
447db82a70d1673d55d6ae8edfd39c2784ad7ecf79fb55783705768b4fa9f8b6
Skeleton hash
146a3952435a42331d5677d872de8cc3375104859574d96dbf84553dbf75b7d2
Architecture hash
daf3153377961e44dc3842a675497ea2e9dd41fb89d7d23490935d8c10bc4765
Diagram SHA-256
3548d5caba724ed3841313b3cd035a1d87d5c018aec669da6b3ee00f85bf86f2
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 image-feature discriminator of DF-GAN, the Deep Fusion Generative Adversarial Network proposed as a simpler but more effective text-to-image model. Unlike the stacked text-to-image GANs before it, DF-GAN uses a one-stage backbone with a single pair of generator and discriminator that synthesizes high-resolution images directly. The network captured here is NetD, the part that converts an image into a feature map; the conditional scoring head NetC is a separate record.

The discriminator turns images into features through a series of DownBlocks, after which the sentence vector is replicated and concatenated with the image features. From that joint input an adversarial loss evaluates both the visual realism and the semantic consistency of the inputs. Training uses the hinge loss to stabilize adversarial training, and residual networks are introduced to stabilize the deeper networks the one-stage design needs.

The discriminator is regularized with the Matching-Aware Gradient Penalty, which pushes the discriminator's gradient on target data, real and text-matching images, toward zero. Together with the One-Way Output this forms the Target-Aware Discriminator, which improves text-image semantic consistency without introducing extra networks. The official PyTorch implementation lists python 3.8 and Pytorch 1.9 as its requirements, and its README points to GALIP as the authors' newer model.

Key idea. A single residual downsampling discriminator for one-stage text-to-image synthesis, trained with hinge loss and the Matching-Aware Gradient Penalty.

  • DF-GAN
  • DF-GAN discriminator
  • NetD
  • Deep Fusion GAN
  • text-to-image GAN discriminator
  • Target-Aware Discriminator
  • MA-GP
  • Tao
  • A Simple and Effective Baseline for Text-to-Image Synthesis

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}, 
}