All models

AIM

End-to-end matting network that predicts a generalized trimap and an alpha matte from a single image.

Segmentation · 347 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 (257 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
AIM
Parameters
55.3M
Operations
347
Framework
PyTorch
Recurrent
No
Published
IJCAI 2021
Cited by
72 (as of 27 October 2026)
Authors
Jizhizi Li, Jing Zhang, Dacheng Tao
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
m14529
Graph hash
5b429a363a6a0bacc7b44d5868bafebd815ee0a0c7811823e02da814659e4cd5
Skeleton hash
959ee8798f03c00a98c63698bba956406c4a49cfd2568b19f75f432295f961a6
Architecture hash
0b9ef0470813b2d69484e586488a977f7c75749299d49ff9b6e9e3e280e55fae
Diagram SHA-256
84fb6130f55a72841e2e85214154598bfd9231df6610d8ebd7b5b4b10e4c36f4
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

What it is

Automatic image matting (AIM) means estimating the soft foreground of an arbitrary natural image with no auxiliary input such as a trimap. Earlier methods, the paper says, were limited to images with salient opaque foregrounds such as humans and animals. This work extends matting to natural images whose salient foregrounds are transparent or meticulous, and to images whose foregrounds are not salient.

The end-to-end network predicts a generalized trimap for any of these image types, as a unified semantic representation. The learned semantic features then guide the matting network, through an attention mechanism, to focus on the transition areas. The backbone is a max-pooling version of ResNet-34 pretrained on ImageNet.

The authors also built AIM-500, a test set of 500 diverse natural images with manually labeled alpha mattes. The paper reports that the network, trained on available composite matting datasets, outperformed existing methods both objectively and subjectively.

Key idea. The paper proposes an end-to-end matting network that predicts a generalized trimap as a unified semantic representation and uses attention to focus matting on transition areas.

  • AIM
  • AimNet
  • Deep Automatic Natural Image Matting
  • automatic image matting
  • image matting
  • alpha matte
  • trimap-free matting
  • AIM-500

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

Cite the paper

@misc{li2021deepautomaticnaturalimage,
      title={Deep Automatic Natural Image Matting}, 
      author={Jizhizi Li and Jing Zhang and Dacheng Tao},
      year={2021},
      eprint={2107.07235},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2107.07235}, 
}