All models

eva02_base_patch16_clip_224

A plain vision transformer that learns by reconstructing CLIP features under masking.

Image classification · 722 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 (23 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
EVA-02
Parameters
86.3M
Operations
722
Framework
PyTorch
Recurrent
No
Published
2024, Image and Vision Computing
Authors
Yuxin Fang, Quan Sun, Xinggang Wang and others
License
Apache-2.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
m4796
Graph hash
46e4425c426e6e7e8a815baa8efae95925a92fb36c5cbdbb71463de9e02c4794
Skeleton hash
d32b6c25ee4ab3ffe44598aa6b54161238ae87f745d3adf7200c3594e2c26a76
Architecture hash
55db249266e55d81a57abc8b288793638e62fc104be79ffede624b40c42fcf22
Diagram SHA-256
d4586a4892316d1eb29306cc57c612263ca5256eb449323a461354271d7c6e91
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

timm.create_model('eva02_base_patch16_clip_224', pretrained=False)

What it is

An EVA-CLIP specific variant that adds an additional attention-scale layer norm to the base model.

About this model's family

EVA-02 is a plain Transformer visual representation, pre-trained by masked image modeling to reconstruct strong, language-aligned vision features from a giant CLIP vision encoder. The authors describe an updated plain Transformer architecture and extensive pre-training from an open and accessible CLIP encoder, and they claim better results than prior approaches on representative vision tasks with far fewer parameters and compute. The headline number: using only publicly accessible training data, EVA-02 with 304M parameters reaches 90.0 fine-tuning top-1 on the ImageNet-1K validation set, and EVA-02-CLIP reaches 80.4 zero-shot top-1.

Four sizes are offered, from 6M to 304M parameters. The captured members are timm's EVA-02 tiny, small, base and large models at patch size 14 and resolutions 224, 336 or 448, plus the EVA-CLIP variants, which add an extra attention-scale layer norm or use residual post-norm in their blocks. In timm these are vision transformer variants with rotary position embeddings and SwiGLU that evolved from BEiT.

Key idea. A plain vision Transformer pre-trained by masked image modeling to reconstruct the language-aligned features of a large CLIP encoder, matching bigger models at a fraction of the parameters.

  • eva-02
  • eva02
  • eva
  • vision transformer
  • masked image modeling
  • clip
  • eva-clip
  • beit
  • imagenet
  • visual representation

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

Cite the paper

@misc{fang2023eva02visualrepresentationneon,
      title={EVA-02: A Visual Representation for Neon Genesis}, 
      author={Yuxin Fang and Quan Sun and Xinggang Wang and Tiejun Huang and Xinlong Wang and Yue Cao},
      year={2023},
      eprint={2303.11331},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1016/j.imavis.2024.105171},
      url={https://arxiv.org/abs/2303.11331}, 
}