P3M-Net (Privacy-Preserving Portrait Matting)
A trimap-free portrait matting network with a ViTAE-S encoder, built for training on face-blurred images.
Segmentation · 1,135 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
- 27.5M
- Operations
- 1,135
- Framework
- PyTorch
- Recurrent
- No
- Published
- ACM MM 2021
- Cited by
- 0 (as of 29 October 2026)
- Authors
- Jizhizi Li, Sihan Ma, 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 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
- m19032
- Graph hash
- 6ce25bba1db498400df9ba78efa52a1d532cb925e9e9e1ffaf6a782066a4ee7e
- Skeleton hash
- 0617b87d27a69b879ca0d5922075617106efeaaf233e5fa14bf6d9f6045ec5e0
- Architecture hash
- 4b1bc5e72b096c97b832855e6648b0f3d2a28b94070b4b4439eaefb9a6ccdd26
- Diagram SHA-256
- 7d51c43999ca267776eafac3b394b17ad5099837a63333e8ba49e2b58ad4db18
- 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
P3M-Net is a portrait matting model: from a portrait photo alone, with no trimap, it estimates the alpha matte, the soft mask that separates the person from the background. It was designed for privacy-preserving portrait matting, a setting the authors define as training on face-blurred images and testing on arbitrary images.
The network has one shared encoder and two decoders, one for segmentation and one for matting, linked by three integration modules. A tripartite-feature integration (TFI) module connects the encoder to both decoders, a deep bipartite-feature integration (dBFI) module connects it to the segmentation decoder, and a shallow bipartite-feature integration (sBFI) module connects it to the matting decoder. The paper builds variants on ResNet-34, Swin-T and ViTAE-S; this model is the ViTAE-S one. Its basic block pairs a global branch built on multi-head self-attention with a local branch of convolution, BN and SiLU layers. The shared encoder's four stages hold 2, 2, 12 and 2 basic blocks, following ViTAE-S.
The same paper introduces P3M-10k, a benchmark of 10,421 high resolution face-blurred portrait images with alpha mattes. It also proposes a copy-and-paste training strategy, P3M-CP, that borrows facial information from public celebrity images.
Key idea. The paper presents P3M-Net, a unified portrait matting model that is compatible with both CNN and transformer backbones.
- P3M-Net
- P3M
- privacy-preserving portrait matting
- portrait matting
- trimap-free matting
- alpha matte
- image matting
- face-blurred training
- P3M-10k
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{li2021privacypreservingportraitmatting,
title={Privacy-Preserving Portrait Matting},
author={Jizhizi Li and Sihan Ma and Jing Zhang and Dacheng Tao},
year={2021},
eprint={2104.14222},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2104.14222},
}