All models

fba_matting

An image matting network that estimates the opacity mask of an object from an image and a trimap.

Segmentation · 26 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 (35 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
133.2K
Operations
26
Framework
PyTorch
Recurrent
No
Published
2020
Cited by
77 (as of 16 November 2026)
Authors
Marco Forte, François Pitié
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
m4875
Graph hash
303e474db3e584514171a0d3e943d5b7b839ac2d0b88937b8022f1323082f51e
Skeleton hash
40a843c71e4f14d3d5f939278084180a44662b1df2491110c66ff8d8c41c1359
Architecture hash
cd17064f95ff6d5b6408f9b5de4888e5b20075ffb2ed346ad87c2a822ce102c0
Diagram SHA-256
dfb8f4815490f754651d43efa0ad711fe1d2cc83b43135f8d09c756bb8433757
TorchLens version
2.35.3
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.fba_matting:build_fba_matting: build({})

What it is

FBA Matting addresses image matting, the task of cutting out an object and estimating its opacity mask, which many image editing applications rely on. The paper observes that most earlier matting networks predict only the alpha matte, so post-processing is needed to recover the foreground and background colors in transparent regions. Its proposal is a low-cost modification that makes an alpha matting network predict the foreground and background colors as well.

The paper's network is an encoder-decoder in the U-Net style that predicts alpha, foreground and background together by extending the output from one channel to seven. The encoder is a ResNet-50 whose input is widened from 3 to 9 channels to take the trimap, the user's marking of definite foreground and background regions. The decoder passes the encoder features through a Pyramid Pooling layer and then through seven convolutional layers interleaved with three bilinear upsampling layers and skip connections.

The authors found that a mini-batch size of one improves accuracy, and because that is incompatible with the batch normalization in ResNet-50 they use Group Normalization with Weight Standardization. At publication, the paper reported the top results on the Adobe Composition-1k dataset for alpha matte and composite color quality.

Key idea. The paper proposes a single encoder-decoder that jointly estimates alpha, foreground and background, and systematically studies how loss functions and training regimes affect matting accuracy.

  • FBA Matting
  • F, B, Alpha Matting
  • image matting
  • alpha matting
  • alpha matte
  • trimap matting
  • foreground estimation
  • background estimation
  • compositing

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

Cite the paper

@misc{forte2020fbalphamatting,
      title={$F$, $B$, Alpha Matting}, 
      author={Marco Forte and François Pitié},
      year={2020},
      eprint={2003.07711},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2003.07711}, 
}