
botnet26t_256
Image classification303 ops12.5M params
A ResNet whose last three bottleneck blocks use global self-attention instead of spatial convolutions.
Image classification · 535 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('botnet50ts_256', pretrained=False) About this model's family
BoTNet is a backbone that swaps the spatial convolutions in the last three bottleneck blocks of a ResNet for global self-attention, and changes nothing else. The authors describe it as a conceptually simple yet powerful backbone architecture that incorporates self-attention for multiple computer vision tasks including image classification, object detection and instance segmentation. The paper also points out that ResNet bottleneck blocks with self-attention can be viewed as Transformer blocks.
On COCO instance segmentation with the Mask R-CNN framework, BoTNet reaches 44.4% Mask AP and 49.7% Box AP, surpassing the previously best published single-model, single-scale results of ResNeSt on the validation set. The members traced here are its image-classification form, which the paper presents as a simple adaptation of the BoTNet design. Those classification models reach 84.7% top-1 accuracy on ImageNet while being up to 1.64x faster in compute time than EfficientNet models on TPU-v3 hardware.
The authors offer it as a strong baseline for future research in self-attention models for vision.
Key idea. Replacing the spatial convolutions in the final three bottleneck blocks of a ResNet with global self-attention, with no other changes, improves instance segmentation and detection while reducing parameters.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{srinivas2021bottlenecktransformersvisualrecognition,
title={Bottleneck Transformers for Visual Recognition},
author={Aravind Srinivas and Tsung-Yi Lin and Niki Parmar and Jonathon Shlens and Pieter Abbeel and Ashish Vaswani},
year={2021},
eprint={2101.11605},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2101.11605},
}