
deit3 (MMPretrain)
Image classification75 ops731.4K params
A plain Vision Transformer image classifier from DeiT III, the paper that revised how ViTs are trained with labels.
Image classification · 351 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('deit3_small_patch16_384', pretrained=False) This model is the DeiT-3 small 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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.