
resnest (MMPretrain)
Image classification71 ops653.5K params
A ResNet whose blocks split features into groups and apply channel attention within each.
Image classification · 103 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
menagerie.classics.mmdet_wave_a:build_mmdet_wave_a: build({}) About this model's family
ResNeSt, the Split-Attention Network, is a ResNet variant built by stacking Split-Attention blocks in ResNet style. The idea is to combine two things the authors call well known to matter for visual recognition: featuremap attention and multi-path representation. The block applies channel-wise attention on different network branches to capture cross-feature interactions while learning diverse representations.
As in ResNeXt, the features are divided into cardinal groups set by a cardinality K, and a new radix hyperparameter R sets the number of splits within each cardinal group, for G = KR groups in total. With radix 1 the block applies a squeeze-and-attention operation to each cardinal group, where SE-Net operates on top of the entire block. A Split-Attention block has roughly the same parameters and FLOPS as a standard residual block with the same cardinality and number of channels. The real implementation uses a radix-major layout that can be modularized and accelerated with group convolution and standard CNN layers.
ResNeSt also adopts the ResNet-D tweaks: the first 7 × 7 convolution is replaced with three consecutive 3 × 3 convolutions. A 2 × 2 average pooling layer is added to the shortcut before the 1 × 1 convolution in the stride-two transition blocks. The suffixes on the captured timm members follow the paper's shorthand, where s is the radix, x the cardinality and d the width, so resnest50d_4s2x40d has radix 4, cardinality 2 and width 40. Increasing the radix from 0 to 4 continuously improved top-1 accuracy while also increasing latency and memory usage. The paper settled on the 2s1x64d setting for its deeper networks as a trade-off between speed, accuracy and memory.
ResNeSt-50 reaches 81.13% top-1 accuracy on ImageNet. Deeper models train at larger crops: 256 × 256 for ResNeSt-200 and 320 × 320 for ResNeSt-269. ResNeSt-269 beats EfficientNet-B7 in accuracy with 32% less latency on GPU. As a backbone, a Cascade-RCNN with ResNeSt-101 reaches 48.3% box mAP and 41.56% mask mAP on MS-COCO instance segmentation. ResNeSt was adopted by the winning entries of the 2020 COCO-LVIS challenge. ImageNet training used GluonCV with MXNet.
Key idea. The Split-Attention block: channel-wise attention applied across featuremap groups, parameterized by cardinality and a new radix hyperparameter, stacked into a ResNet.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@article{resnest2022,
title = {ResNeSt: Split-Attention Networks},
author = {Hang Zhang and Chongruo Wu and Zhongyue Zhang and Yi Zhu and Haibin Lin and Zhi Zhang and Yue Sun and Tong He and Jonas Weylin Mueller and Raghaven Manmatha and Mu Li and Alexander Johannes Smola},
year = {2022},
journal = {IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW)},
eprint = {2004.08955}
}