All models

coatnet_rmlp_1_rw_224

Convolution and attention hybrid image backbone, built in timm from the CoAtNet paper.

Image classification · 959 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 (37 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
CoAtNet
Parameters
41.7M
Operations
959
Framework
PyTorch
Recurrent
No
Published
2021
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
m3820
Graph hash
3277aeeee7c5304bcebd61fe9387ded6c0b80f1a6116f6ab6a5b7a2f84349a17
Skeleton hash
23302f883a73fbe9ddafbc6f483f602e4e787975225525cdab2f89f486b194f4
Architecture hash
1c7b0c7794533437def7105ecabfdd947afc5ca2b88e0d31a6d59bd9d23fd87f
Diagram SHA-256
9b5bdbb4c395bc63940cf2f307ab5bdfcb390df28e3346db3ccdba8c20e7dcd7
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

timm.create_model('coatnet_rmlp_1_rw_224', pretrained=False)

What it is

About this model's family

CoAtNet is a hybrid vision backbone that marries convolution with attention, and timm keeps it in the same module as MaxViT. The library's version is a from-scratch implementation of both architectures. Nearly all of it was written from the papers, with some last-minute adjustments made against the public code release at google-research/maxvit. The reference paper is CoAtNet: Marrying Convolution and Attention for All Data Sizes, arXiv 2106.04803.

Names carrying an rw suffix are Ross Wightman's own original configurations from before the official code was consulted. Those configurations work well and appear a bit faster and lighter on resources than the paper's. The plain names such as coatnet_0_224 are intended to match the paper, but without official pretrained weights an exact match is hard to confirm. The captured set runs from CoatNet-0 to CoatNet-4 in both styles, plus a BatchNorm variant of CoatNet-0 and a nano model built from ConvNeXt blocks.

Key idea. A hybrid of convolution and attention, implemented in timm from the paper alongside MaxViT.

  • coatnet
  • coat net
  • convolution attention hybrid
  • maxxvit
  • timm
  • image classification
  • vision transformer hybrid

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