All models

galip_netg

Text-to-image GAN with a frozen CLIP vision transformer inside both the generator and the discriminator.

Diffusion and generative · 52 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 (35 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

Family
GALIP
Parameters
132.2K
Operations
52
Framework
PyTorch
Recurrent
No
Published
CVPR 2023
Cited by
178 (as of 3 November 2026)
Authors
Ming Tao, Bing‐Kun Bao, Hao Tang, Changsheng Xu
License
MIT
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
m5112
Graph hash
c46d6170887faef16ef7b5573ffa3653ac05be45cff6e33c9ecf9e1077a5c056
Skeleton hash
496d69e0c5675c31593393face8fe65fdd3f7c6c2fd7d17c87699cf026312945
Architecture hash
37ab61e6c5f1073376eea77c2b34becccd8bca890f65d78bbe5edd6e0a9809bd
Diagram SHA-256
f2f0e5f2e9bffb3de0f54f950e3cfaa005c4468adbceb0485bc1384968939f01
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.galip_netg:build_galip_netg: build({})

What it is

This model is the generator only, in a compact build with reduced widths and resolution and randomly initialized weights; the paper's generator takes a sentence vector and a noise vector as its two inputs.

About this model's family

GALIP (Generative Adversarial CLIPs) is a text-to-image GAN that uses the pretrained CLIP model in both its generator and its discriminator. The paper sets it against large autoregressive and diffusion models, which it says require tremendous training data and parameters and synthesize slowly because of their multi-step generation design.

The discriminator pairs a frozen ViT-based CLIP image encoder with a learnable mate-discriminator (Mate-D), which works on CLIP image features collected from different layers. In the generator, a learnable mate-generator (Mate-G) first predicts bridge features from text and noise, and the frozen CLIP-ViT maps them to visual concepts. Text-conditioned prompts are added to the CLIP-ViT for task adaptation, and an image generator then fuses the sentence and noise vectors into the visual features to produce an RGB image. The CLIP model chosen in the paper is ViT-B/32.

The paper reports that GALIP needs about 3% of the training data and 6% of the learnable parameters of large pretrained autoregressive and diffusion models to reach comparable results. It counts 320M parameters in total, 0.08B trainable and 0.24B in the frozen CLIP. On COCO the paper reports an FID of 5.85, down from 8.21 for LAFITE. The authors list as a limitation that the model size and pretraining dataset are much smaller than those of other large pretrained models, which limits the synthesis of imaginary images.

Key idea. GALIP integrates a frozen CLIP-ViT into both the generator and the discriminator of a text-to-image GAN, cutting training data and learnable parameters relative to large pretrained models.

  • GALIP
  • Generative Adversarial CLIPs
  • text-to-image
  • text-to-image GAN
  • CLIP-based discriminator
  • CLIP-empowered generator
  • Mate-G
  • Mate-D
  • galip_netg

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

Cite the paper

@misc{tao2023galipgenerativeadversarialclips,
      title={GALIP: Generative Adversarial CLIPs for Text-to-Image Synthesis}, 
      author={Ming Tao and Bing-Kun Bao and Hao Tang and Changsheng Xu},
      year={2023},
      eprint={2301.12959},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2301.12959}, 
}