DiffMatte
Image matting model pairing a matting encoder with a lightweight diffusion decoder that refines the alpha matte.
Segmentation · 982 operations Structure only
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
- 29M
- Operations
- 982
- Framework
- PyTorch
- Recurrent
- No
- Published
- Lecture Notes in Computer Science (arXiv 2023)
- Cited by
- 15 (as of 30 October 2026)
- Authors
- Yihan Hu, Yiheng Lin, Wei Wang and others
- Checked
- Structure only: shapes and data types are hypotheses, not measurements.
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
- m16103
- Graph hash
- 753be5cb0c0199b5df668688c325d04a676a3765ffea24167f70e762c62989e6
- Skeleton hash
- 10f6c19d7fa2506449df01d4550314170adbda47e43115d36b630445b472cdf0
- Architecture hash
- 095dc880be2ca9cc79d6fd8c3de8a009f18659740110cd4bba02c1c41cb161a5
- Diagram SHA-256
- 0e7824ff3f198f50200d5aa7322cde285004c303693421700fc58e847423b8bc
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
What it is
DiffMatte is a pixel-level denoising diffusion method for refining the alpha matte in natural image matting. The paper argues that existing matting algorithms predict in one step and cannot further correct their errors. Each step of DiffMatte's prediction is based on the fixed image and trimap, and the iteration starts with pure Gaussian noise and ends up converging to a clean alpha matte.
To keep the iterations cheap, the network is decoupled into a matting encoder and an iterative diffusion decoder, connected only through the top-level context feature of the encoder. The encoder acts only once, and only the lightweight decoder runs at every step. The decoder is built from Down-Blocks and Up-Blocks, residual convolution modules that incorporate time step information, and the paper reports 5.3M parameters for it. Sampling uses a technique proposed by DDIM. For training, the paper proposes a self-aligned strategy with Uniform Time Intervals, which aligns the noisy samples used in training and inference.
The paper deploys the decoder on four popular matting encoders. The code repository states that the project is developed based on ViTMatte, Matteformer and GCA-Matting. On Composition-1k, the paper reports that the version with a ViT-B encoder outperforms the previous best method by 8% on the SAD metric (18.63) and by 15% on the MSE metric (2.54).
Key idea. DiffMatte decouples a lightweight diffusion decoder from the matting encoder so that only the decoder iterates while denoising the alpha matte, and trains it with a self-aligned strategy.
- DiffMatte
- Diffusion for Natural Image Matting
- image matting
- natural image matting
- alpha matte
- trimap
- diffusion decoder
- iterative refinement
- Composition-1k
- self-aligned training
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{hu2024diffusionnaturalimagematting,
title={Diffusion for Natural Image Matting},
author={Yihan Hu and Yiheng Lin and Wei Wang and Yao Zhao and Yunchao Wei and Humphrey Shi},
year={2024},
eprint={2312.05915},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2312.05915},
}