HAttMatting
An attention-based matting network that predicts an alpha matte from a single RGB image with no additional input.
Segmentation · 565 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.
At a glance
- Task
- Segmentation
- Parameters
- 109.6M
- Operations
- 565
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2020
- Cited by
- 184 (as of 27 October 2026)
- Authors
- Yu Qiao, Yuhao Liu, Xin Yang and others
- License
- GPL-3.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m17217
- Graph hash
- a8eae7c46eb2a9ebd8fdcb0b838ef85fc51420ea73ab1688b63c12ece312c30f
- Skeleton hash
- f53f7bf2119c23c061fee0ef25f889c65d7912356bf85f5cc1a6569efd7a5a1a
- Architecture hash
- 9e23f5abebfaff7e3237285f53b69950f0d2b29fbdec38cf43a4823a5bf39e3a
- Diagram SHA-256
- 8045eccc86d3a7d6b0348c33a6ba69d7d7c4cfa9489f5b55eff17f6994b3285a
- 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
HAttMatting, the Hierarchical Attention Matting Network, is an end-to-end image matting model that predicts an alpha matte from a single RGB image without additional input. The paper argues that the advanced semantics extracted from CNNs contribute unequally to alpha perception, and that they should be reconciled with low-level appearance cues to refine the foreground details.
To do that, the network uses spatial and channel-wise attention to integrate appearance cues and pyramidal features. Training is guided by a hybrid loss that fuses Structural SIMilarity (SSIM), Mean Square Error (MSE) and an adversarial loss.
The authors also built an image matting dataset of 59,600 training images and 1000 test images, from 646 distinct foreground alpha mattes. The official repository calls it Distinctions-646 and says its 646 foreground images have manually annotated alpha mattes.
Key idea. HAttMatting predicts alpha mattes from a single RGB image by using spatial and channel-wise attention to integrate low-level appearance cues with pyramidal features.
- HAttMatting
- Hierarchical Attention Matting Network
- image matting
- alpha matte
- trimap-free matting
- Distinctions-646
- Attention-Guided Hierarchical Structure Aggregation for Image Matting
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Qiao_2020, title={Attention-Guided Hierarchical Structure Aggregation for Image Matting}, url={http://dx.doi.org/10.1109/CVPR42600.2020.01369}, DOI={10.1109/cvpr42600.2020.01369}, booktitle={2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, publisher={IEEE}, author={Qiao, Yu and Liu, Yuhao and Yang, Xin and Zhou, Dongsheng and Xu, Mingliang and Zhang, Qiang and Wei, Xiaopeng}, year={2020}, month=June, pages={13673–13682} }