All models

mmdet_mask2former

One mask transformer for panoptic, instance and semantic segmentation, built on masked attention.

Segmentation · 227 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 (13 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

Parameters
1.2M
Operations
227
Framework
PyTorch
Recurrent
No
Published
2021
Source
transformers 5.18.0
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
m6616
Graph hash
309bf10e0bc525157b38d12b5da15c6d6ac6321a814b859d92dc43d78f7e9118
Skeleton hash
f35f07c94bfcd54f82b2b8f8518e773e8cd0b7ccfe31aac1e233c45f224a6a0b
Architecture hash
27499c40ed253d144782e085acb4c223b6316af7345a75572b81dec0537a66c8
Diagram SHA-256
5c55c559cead6c37cd999094b55869c39e7a07a24b3745f156e73e48170bd180
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

menagerie.classics.mmdet_wave_a:build_mmdet_wave_a: build({})

What it is

About this model's family

Mask2Former, the Masked-attention Mask Transformer, is a single architecture for any image segmentation task, whether panoptic, instance or semantic. It was proposed by Bowen Cheng, Ishan Misra, Alexander G. Schwing, Alexander Kirillov and Rohit Girdhar, and brings significant performance and efficiency improvements over MaskFormer. The key component is masked attention, which extracts localized features by constraining cross-attention within predicted mask regions.

Beyond cutting research effort by at least three times, it outperforms the best specialized architectures by a significant margin on four popular datasets. The reported marks are 57.8 PQ for panoptic segmentation on COCO, 50.1 AP for instance segmentation on COCO and 57.7 mIoU for semantic segmentation on ADE20K. In the transformers port, all three tasks are solved from the same Mask2FormerForUniversalSegmentation output, with task-specific post-processing.

Key idea. Masked attention, which constrains cross-attention to predicted mask regions, letting one mask-transformer architecture address panoptic, instance and semantic segmentation.

  • mask2former
  • masked-attention mask transformer
  • universal segmentation
  • panoptic segmentation
  • instance segmentation
  • semantic segmentation
  • maskformer successor
  • mask2former swin
  • mask2former resnet50

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