All models

smp_MAnet_timm-skresnext50_32x4d

Segmentation decoder with position-wise and multi-scale fusion attention blocks on a chosen encoder.

Segmentation · 639 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 (29 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
MA-Net
Parameters
147.9M
Operations
639
Framework
PyTorch
Recurrent
No
Published
2020
License
MIT
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
m9606
Graph hash
2f1239ecf2d448eb7d5808e8f045715e9cbad8ffc4701bf4a7a054de0eedb549
Skeleton hash
f1bddd4c0f3f115f322204b2d48c79d89040a6d79de6834c6d9819880f2201fd
Architecture hash
c845e59e3de0c440a00f48bc4dd63ba77de7606cee23881b8f6a8df6232e7e2e
Diagram SHA-256
00951594e8ee16e0e5ada6388830945c8c81db7ff5a98f386470cae934ab6b6e
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

segmentation_models_pytorch.MAnet(encoder_name='timm-skresnext50_32x4d', encoder_weights=None, in_channels=3, classes=21)

What it is

Built with the timm-skresnext50_32x4d encoder from the library's registry as its backbone, randomly initialized.

About this model's family

MA-Net, the Multi-scale Attention Net, is a segmentation network whose decoder sits on an encoder chosen by name from the classification models in segmentation_models_pytorch 0.5.0. The library describes it as capturing rich contextual dependencies through an attention mechanism built from two blocks. Its Position-wise Attention Block captures the spatial dependencies between pixels in a global view. Its Multi-scale Fusion Attention Block captures the channel dependencies between feature maps by multi-scale semantic feature fusion.

The encoder runs for three to five stages, each generating features two times smaller in spatial dimensions than the previous one. Every captured member is built with encoder weights set to None, which the library defines as random initialization, three input channels and a 21-channel output mask. The decoder's PAB module defaults to 64 channels. An auxiliary classification head can be built on top of the encoder when aux_params is given.

Key idea. A segmentation decoder that captures rich contextual dependencies with two attention blocks, one position-wise over pixels and one fusing multi-scale features across channels.

  • MA-Net
  • MAnet
  • Multi-scale Attention Net
  • segmentation_models_pytorch
  • smp
  • semantic segmentation
  • Position-wise Attention Block
  • Multi-scale Fusion Attention Block

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