All models

deit3 (MMPretrain)

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

Image classification · 75 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 (33 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
731.4K
Operations
75
Framework
PyTorch
Recurrent
No
Source
timm 1.0.30
Name in source
mmpretrain:deit3
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
m6964
Graph hash
578f983256a7b6089112df24f3119aced5e7252c9c182736ac1509d4aeb9eb69
Skeleton hash
5de9d8e2c9327e63ea15c9999e639848996459f29296f5770fcd15c37b054a52
Architecture hash
843c83f35f6126a9656e0c06d52918253a15c5ba919d3ea1093e8478bbd1610f
Diagram SHA-256
8898cb49203a28a1eba689687221549a86081cbc6a89440a41f22a334fcb3486
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

menagerie.classics.wave_b_openmmlab:build_mmpretrain: build({})

What it is

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.