All models

deit3_large_patch16_224

A plain Vision Transformer image classifier from DeiT III, the paper that revised how ViTs are trained with labels.

Image classification · 687 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 (18 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
DeiT III
Parameters
304.4M
Operations
687
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
m4171
Graph hash
5c10396a6acee5986c4de1db7b110372de1d2d81fbccfc8e39313e4ea6cae10a
Skeleton hash
a9a320579beee251a179ee909cd48a429b602250b6fdc82896272d625fd594c2
Architecture hash
d1fbf644372d3000dcffc527d80eae00427bd64229b04883ccbc13cb158d40ba
Diagram SHA-256
275476e8b5d6baa4111161034511a37b86e19b5c1db2285da23fa38470b38ad5
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('deit3_large_patch16_224', pretrained=False)

What it is

This model is the DeiT-3 large size at 224x224 input resolution.

About this model's family

DeiT III is a plain Vision Transformer (ViT) for image classification, and what its paper changes is the training procedure, not the architecture. The authors revisit supervised training at a time when, as they note, recent work showed ViTs benefiting from self-supervised pre-training such as BeiT.

The procedure builds upon and simplifies a recipe introduced for training ResNet-50. Its data augmentation, which the paper calls 3-Augment, uses only three transformations: grayscale, solarization and Gaussian blur. For training on ImageNet-1k only it adopts a binary cross entropy loss, and it includes two ingredients that the paper says improve the training of large ViTs: stochastic depth and LayerScale. Training also runs at a lower resolution, which the paper says reduces the train-test discrepancy and has a regularizing effect for the largest models.

The paper says that with this procedure a vanilla ViT closes the gap with the recent architectures of its time. It reports 85.2% top-1 accuracy for a ViT-H trained on ImageNet-1k only.

Key idea. DeiT III gives a new supervised training recipe for plain Vision Transformers that, in the paper's ImageNet evaluations, outperforms previous fully supervised recipes for ViT by a large margin.

  • deit3
  • deit iii
  • deit-3
  • revenge of the vit
  • vision transformer
  • vit
  • image classification
  • 3-augment
  • supervised vit training

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