All models

CLIP-ReID-ViT-B-16

CLIP-ReID teaches CLIP to re-identify people and vehicles by learning stand-in text tokens for each identity.

Detection and tracking · 467 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 (11 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
126.8M
Operations
467
Framework
PyTorch
Recurrent
No
Published
AAAI 2023
Cited by
324 (as of 17 October 2026)
Authors
Siyuan Li, Li Sun, Qingli Li
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
m297
Graph hash
b84e802e07654176a782edbd0bbc84fecf58d7c23067bad899007de626582f99
Skeleton hash
6342b565496ba804ddccaa4497797b5ae6ec38eff947f3cda845d8da13d441ec
Architecture hash
c14c2ce8ac19ae0e572680c5f7bc554d39ac98791e175cb1b516707c3969c2bf
Diagram SHA-256
7e254442cf1a1061948a2d93778bfd57367a8e8b021ab43fe60a89f9b4eae486
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

About this model's family

CLIP-ReID adapts the CLIP vision-language model to image re-identification, the task of matching the same object across different, non-overlapping camera views. The obstacle is that in ReID the labels are indexes, with no concrete text description of each identity. The paper first finds that simply fine-tuning the image encoder from CLIP already gives competitive results on various ReID tasks.

On top of that baseline it proposes a two-stage strategy for a better visual representation. Each identity gets a set of learnable text tokens, which are given to the text encoder to form an ambiguous description. In the first training stage both CLIP encoders stay fixed, and only those tokens are optimized from scratch by a contrastive loss computed within a batch. In the second stage the ID-specific tokens and the text encoder become static, and their descriptions act as constraints while the image encoder is fine-tuned.

Since CLIP has both CNN-based and ViT-based models, the method is validated on ResNet-50 and ViT-B/16, and the two captured members are those two encoders. The ViT version can also take camera ID and overlapped token settings as input. The authors report state-of-the-art performance on many ReID datasets, covering both person and vehicle. The released ViT-CLIP-ReID-SIE-OLP variant reaches 86.7% mAP and 91.1% rank-1 on MSMT17 with re-ranking.

Key idea. CLIP-ReID is, by its authors' account, the first use of CLIP for ReID. Its two-stage scheme learns ID-specific text tokens as stand-in descriptions so the text encoder can guide image-encoder fine-tuning even though the labels are only indexes.

  • CLIP-ReID
  • CLIP
  • re-identification
  • ReID
  • person re-identification
  • vehicle re-identification
  • vision-language model
  • learnable prompt
  • Market-1501
  • MSMT17
  • Syliz517/CLIP-ReID

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

Cite the paper

@misc{li2023clipreidexploitingvisionlanguagemodel,
      title={CLIP-ReID: Exploiting Vision-Language Model for Image Re-Identification without Concrete Text Labels}, 
      author={Siyuan Li and Li Sun and Qingli Li},
      year={2023},
      eprint={2211.13977},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2211.13977}, 
}