All models

deit3_base_patch16_384

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

Image classification · 351 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 (21 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
86.9M
Operations
351
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
m4169
Graph hash
1f802510d11756f319c13571bafe827bdca7fb10e555bbf5ff3889e906d43190
Skeleton hash
05ddcb6532cc678a79353f563b98fc8d0f5d718a2f9f1ff3f0e3004e76b5f32e
Architecture hash
55316105a008e0fa469504bd3874121c5bbd1b8552e7ed266ed0cad99078cee7
Diagram SHA-256
17578a48e5a12a767ffeb6ab55cd96d53f7a6f5d3a1f48a26f5f9e3a8b005816
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_base_patch16_384', pretrained=False)

What it is

This model is the DeiT-3 base size at 384x384 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.