All models

resnext (MMPretrain)

ResNet blocks widened sideways: many same-shaped paths, counted by a new dimension, cardinality.

Image classification · 41 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 (45 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
ResNeXt
Parameters
580.9K
Operations
41
Framework
PyTorch
Recurrent
No
Published
CVPR 2017
Authors
Saining Xie, Ross Girshick, Piotr Dollár and others
Source
timm 1.0.30
Name in source
mmpretrain:resnext
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
m6996
Graph hash
c0e4f58147626c5eefff79f5c5971e8b0ae17431f22433b9d557f237a763f9b8
Skeleton hash
cf154743977bb3499f76018594fe8b39c2ddbee591f5f56a5e2dbf76df5422c4
Architecture hash
835d60af172f2c08608a81d582e613eecd2be9a710ae5e2348cb73604156df78
Diagram SHA-256
ad8d164a2513897ef771f2a3f8e2c27b4a604655b71ce6fff807019b49da9dbd
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

menagerie.classics.wave_b_openmmlab:build_mmpretrain: build({})

What it is

About this model's family

ResNeXt is a simple, highly modularized network for image classification, built by repeating a block that aggregates a set of transformations with the same topology. The design gives a homogeneous, multi-branch architecture with only a few hyper-parameters to set. Its contribution is a new dimension the authors call cardinality, the size of the set of transformations, alongside depth and width.

On ImageNet-1K, increasing cardinality improves classification accuracy even when complexity is held fixed. When capacity grows, increasing cardinality is more effective than going deeper or wider. ResNeXt models were the foundation of the authors' ILSVRC 2016 classification entry, which secured 2nd place. They also beat their ResNet counterpart on an ImageNet-5K set and on COCO detection. The paper was accepted to CVPR 2017.

Among the captured timm members, resnext50d_32x4d is a ResNeXt50 with a deep stem and average-pool downsample. The timm ResNet code started as a copy of torchvision's resnet.py, with the ResNeXt, SE-ResNeXt, SENet and MXNet Gluon stem variants added by Ross Wightman. The torchvision members, including the quantized_resnext101 builders traced here with quantization off, all rely on the torchvision ResNet base class. One quirk: torchvision's bottleneck places the downsampling stride on the second 3x3 convolution rather than on the first 1x1 as in the original paper, the variant known as ResNet V1.5.

Key idea. Cardinality, the number of parallel same-topology transformations in a block, as an essential scaling dimension next to depth and width.

  • resnext
  • aggregated residual transformations
  • cardinality
  • resnext50_32x4d
  • resnext101_32x8d
  • resnext101_64x4d
  • resnext26ts
  • quantized resnext
  • 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

@misc{xie2017aggregatedresidualtransformationsdeep,
      title={Aggregated Residual Transformations for Deep Neural Networks}, 
      author={Saining Xie and Ross Girshick and Piotr Dollár and Zhuowen Tu and Kaiming He},
      year={2017},
      eprint={1611.05431},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1611.05431}, 
}