
beit_base_patch16_224
Image classification397 ops86.5M params
A BEiT v2 image Transformer that classifies 224x224 images cut into 16x16 patches.
Image classification · 397 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
timm.create_model('beitv2_base_patch16_224', pretrained=False) 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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.