All models

tresnet_m

A ResNet50 reworked for real GPU throughput rather than FLOP counts, reaching 80.8% ImageNet top-1.

Image classification · 447 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 (19 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
tresnet
Parameters
31.4M
Operations
447
Framework
PyTorch
Recurrent
No
Published
WACV 2021
Cited by
238 (as of 9 October 2026)
Authors
Tal Ridnik, Hussam Lawen, Asaf Noy 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
m10709
Graph hash
dc49878ef8281fd8af7bc88735a5b5c4be64c39322820a8487cc339926273127
Skeleton hash
94d4488812005caf580c7535554be39878c6426cc818f8ac7c714331c041ea64
Architecture hash
dee04b520d1ebd606c73d77bea503cc4b462284c50ee503eb16dd26d13013d41
Diagram SHA-256
cb094407312fafad22689e5ca00665af154b6436a96ce047a956ad9ae4f77b7e
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('tresnet_m', pretrained=False)

What it is

This is TResNet-M, the variant sized to match ResNet50's GPU throughput, listed at 29.4M parameters.

About this model's family

TResNet is a family of ResNet-style image classifiers designed around what actually runs fast on a GPU rather than around FLOP counts. The authors' starting observation is that many newer networks beat ResNet50 on ImageNet with fewer FLOPs, yet plain ResNet50 is usually much faster when you measure real GPU training and inference throughput. They trace much of the gap to depthwise and 1x1 convolutions, which cut FLOPs but leave GPUs bound by memory access cost rather than arithmetic.

The design starts from ResNet50 and layers on a specific set of refinements: a SpaceToDepth stem, economical anti-alias downsampling, In-Place Activated BatchNorm, a block-type selection redesign and optimized squeeze-and-excitation (SE) layers. The stem replaces ResNet50's convolution and max pool with a SpaceToDepth layer that rearranges blocks of spatial data into depth, followed by a single convolution to set the channel count. Instead of ResNet's uniform block type, the first two stages use BasicBlock layers for their larger receptive field and the last two use Bottleneck layers. Every BatchNorm plus ReLU pair is replaced by an Inplace-ABN layer, which fuses normalization and activation into one in-place operation to save training memory. Inside it the activation is Leaky-ReLU rather than plain ReLU, which the authors report gives TResNet better accuracy. Downsampling is anti-aliased economically: stride-2 convolutions become stride-1 convolutions followed by a 3x3 blur filter with stride 2. SE blocks appear only in the first three stages, since the low-resolution last stage gains little from them.

Among the code optimizations, dedicated in-place operations gave the biggest boost, improving throughput and raising the maximal batch size. The models were trained on ImageNet at resolution 224 for 300 epochs with SGD and a 1-cycle policy. Three variants, TResNet-M, TResNet-L and TResNet-XL, differ only in depth and channel count. TResNet-M matches ResNet50's GPU throughput and reaches 80.8% top-1 against ResNet50's 79.0%. A short fine-tune at 448 resolution lifts TResNet-M to 83.2% and the largest variant, TResNet-XL, to 84.3%. Beyond ImageNet, the authors report transfer results on Stanford Cars (96.0%), CIFAR-10 (99.0%), CIFAR-100 (91.5%) and Oxford-Flowers (99.1%). Swapping ResNet50 for TResNet-M as the FCOS backbone raised COCO detection mAP from 42.8 to 44.0.

Key idea. A carefully selected set of GPU-aware refinements to ResNet50: a SpaceToDepth stem, economical anti-alias downsampling, Inplace-ABN, a block-type selection redesign and optimized SE layers. Combined with code optimizations, they lift ImageNet top-1 from ResNet50's 79.0% to 80.8% at similar GPU throughput.

  • tresnet
  • tresnet-m
  • tresnet-l
  • tresnet-xl
  • tresnet_v2_l
  • gpu-dedicated resnet
  • high performance gpu architecture
  • image classification
  • imagenet
  • timm

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

Cite the paper

@misc{ridnik2020tresnethighperformancegpudedicated,
      title={TResNet: High Performance GPU-Dedicated Architecture}, 
      author={Tal Ridnik and Hussam Lawen and Asaf Noy and Emanuel Ben Baruch and Gilad Sharir and Itamar Friedman},
      year={2020},
      eprint={2003.13630},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2003.13630}, 
}