All models

resnest50d_4s2x40d

A ResNet whose blocks split features into groups and apply channel attention within each.

Image classification · 508 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 (26 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
ResNeSt
Parameters
30.4M
Operations
508
Framework
PyTorch
Recurrent
No
Published
CVPR Workshops 2022
Cited by
1,809 (as of 29 October 2026)
Authors
Hang Zhang, Chongruo Wu, Zhongyue Zhang and others
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
m8821
Graph hash
7e1c0e84b05b906b82f9ebfaba7ba717b7a9a2ce540c363961ea82c0e5d18650
Skeleton hash
f6dc8c3ede9f569c00c62a6544371e36790d9306c73dc0931960dc8ad39f6f82
Architecture hash
d25e439a1c1d25b4ef6b780dce88dbca1e43d2fc63d9082ab4419dd4ff3f89fa
Diagram SHA-256
e6e5bbb95db3ee38a88607c21d578d5729e3bc0e44ebe0834a97c9f4e323c50e
TorchLens version
2.36.0
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('resnest50d_4s2x40d', pretrained=False)

What it is

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.

  • resnest
  • split-attention network
  • split attention
  • resnest50d
  • resnest101e
  • resnest200e
  • resnest269e
  • radix
  • cardinality
  • image classification
  • backbone

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}
}