
smp_MAnet_timm-efficientnet-b6
Segmentation1,187 ops52.7M params
Segmentation decoder with position-wise and multi-scale fusion attention blocks on a chosen encoder.
Segmentation · 1,948 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
segmentation_models_pytorch.MAnet(encoder_name='mit_b4', encoder_weights=None, in_channels=3, classes=21)
Built with the mit_b4 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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.