All models

beitv2_base_patch16_224

A BEiT v2 image Transformer that classifies 224x224 images cut into 16x16 patches.

Image classification · 397 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 (22 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
86.5M
Operations
397
Framework
PyTorch
Recurrent
No
Published
2022
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
m3636
Graph hash
e9bafcb98d81d39545df1524c759c1c24654c919bd62a2cf94b5679889db16e3
Skeleton hash
07bd7a9276591fe0bd8969cb4e600342d89ad81614097c920b3c78f308ae22f2
Architecture hash
932ce4e87357ed034eaaa1efb9c2a717c9059dfc4d9bc30a59c73e55c008a73a
Diagram SHA-256
aa98c6ce4fc16b363a09aaad9679af336c83151f47dd1c5d50355274114fedb0
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('beitv2_base_patch16_224', pretrained=False)

What it is

This model is the BEiT v2 base model, built for 224x224 images with a patch size of 16x16.

BEiT v2 is an image Transformer classifier and the second version of BEiT, the model from the paper "BEiT: BERT Pre-Training of Image Transformers". Its own paper, by Zhiliang Peng, Li Dong, Hangbo Bao, Qixiang Ye and Furu Wei, is titled "BEiT v2: Masked Image Modeling with Vector-Quantized Visual Tokenizers". The timm code is taken from the official BEiT-v2 source in the microsoft/unilm repository.

The library defines a base and a large BEiT v2, both for 224x224 images with a patch size of 16x16. Only the 1k fine-tuned classification weights and the model configurations were added to timm. The pre-training models and the pre-training procedure are left to the original source.

Key idea. BEiT v2 combines masked image modeling with vector-quantized visual tokenizers, as the title of its paper states.

  • beitv2
  • beit v2
  • beit-v2
  • beitv2_base_patch16_224
  • image transformer
  • masked image modeling
  • vector-quantized visual tokenizer
  • image classification

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