All models

DenseCLIP

CLIP-based semantic segmentation model guided by pixel-text score maps and context-aware prompts.

Segmentation · 953 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 (17 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
113.9M
Operations
953
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
661 (as of 28 October 2026)
Authors
Yongming Rao, Wenliang Zhao, Guangyi Chen and others
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
m16050
Graph hash
97ecb106b9db1065264745a0caae53a83f408b484ad10fb1285f87af1b8ec818
Skeleton hash
d663ad37a0ffe888db92926a5b186aa9a0b886f22bd645b1550276d57413c619
Architecture hash
432d31a9984dea1c987df2cbc81d4bc1d0d5d874a1c2b3a9807f339343a93872
Diagram SHA-256
73560435b28d30c63c29997d7c4a830e67c98678707b98ef8174eb1fed26c69b
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

DenseCLIP is a framework for dense prediction, meaning per-pixel tasks such as semantic segmentation, that reuses the pre-trained knowledge in CLIP. The paper notes that, when it was written, transferring knowledge learned from image-text pairs to dense prediction had barely been explored. Its main step is to turn CLIP's image-text matching into pixel-text matching and to use the resulting pixel-text score maps to guide a dense prediction model.

The score maps are concatenated to the last feature map, which brings language priors into the model explicitly. They can also be read as low-resolution segmentation results, so the authors use them to compute an auxiliary segmentation loss. Context-aware prompting passes image context to the language side, and the authors prefer the post-model variant, which refines the text features after the text encoder. With that variant the text features can be stored after training, which reduces the text encoder's overhead at inference.

For segmentation the paper uses the pre-trained CLIP image encoder as the backbone and Semantic FPN as the decoder. The text encoder is kept fixed during training. On ADE20K the paper reports DenseCLIP at +3.9%, +2.4% and +1.2% mIoU over vanilla fine-tuning of CLIP with Semantic FPN, for ResNet-50, ResNet-101 and ViT-B backbones. The code's model zoo lists the RN50-DenseCLIP model with Semantic FPN at 43.5 mIoU single-scale and 44.7 multi-scale.

Key idea. DenseCLIP converts CLIP's image-text matching into pixel-text matching and uses the pixel-text score maps, with context-aware prompts, to guide dense prediction models.

  • DenseCLIP
  • language-guided dense prediction
  • context-aware prompting
  • pixel-text matching
  • CLIP semantic segmentation
  • dense prediction
  • semantic segmentation
  • pixel-text score maps
  • ADE20K

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

Cite the paper

@misc{rao2022densecliplanguageguideddenseprediction,
      title={DenseCLIP: Language-Guided Dense Prediction with Context-Aware Prompting}, 
      author={Yongming Rao and Wenliang Zhao and Guangyi Chen and Yansong Tang and Zheng Zhu and Guan Huang and Jie Zhou and Jiwen Lu},
      year={2022},
      eprint={2112.01518},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2112.01518}, 
}