Papers › Privacy-Preserving Portrait Matting

Privacy-Preserving Portrait Matting

29 Apr 2021arXiv:2104.14222archive 2025-07-28

Jizhizi Li, Sihan Ma, Jing Zhang, DaCheng Tao

Recently, there has been an increasing concern about the privacy issue raised by using personally identifiable information in machine learning. However, previous portrait matting methods were all based on identifiable portrait images. To fill the gap, we present P3M-10k in this paper, which is the first large-scale anonymized benchmark for Privacy-Preserving Portrait Matting. P3M-10k consists of 10,000 high-resolution face-blurred portrait images along with high-quality alpha mattes. We systematically evaluate both trimap-free and trimap-based matting methods on P3M-10k and find that existing matting methods show different generalization capabilities when following the Privacy-Preserving Training (PPT) setting, i.e., training on face-blurred images and testing on arbitrary images. To devise a better trimap-free portrait matting model, we propose P3M-Net, which leverages the power of a unified framework for both semantic perception and detail matting, and specifically emphasizes the interaction between them and the encoder to facilitate the matting process. Extensive experiments on P3M-10k demonstrate that P3M-Net outperforms the state-of-the-art methods in terms of both objective metrics and subjective visual quality. Besides, it shows good generalization capacity under the PPT setting, confirming the value of P3M-10k for facilitating future research and enabling potential real-world applications. The source code and dataset are available at https://github.com/JizhiziLi/P3M

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2104.14222")

Code

Syntology Ran 5 of 15 code samples harvested from 2 repositories linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 9 samples from 1 repository, 3 ran; community (archive-listed): 6 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

JizhiziLi/P3M officialmentioned in papermentioned on GitHubpytorchMIT report
lucaspk512/vrdone mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 5 ran; 1 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
10unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv1x1 JizhiziLi/P3M/core/network/resnet_mp.py official repository ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 JizhiziLi/P3M/core/network/resnet_mp.py official repository ran · our draft was wrong MIT (permissive) · 160bb14bd76201b4 · report
conv3x3 JizhiziLi/P3M/core/network/P3mNet.py official repository ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
extract_pure_name JizhiziLi/P3M/core/util.py official repository unverified MIT (permissive) · cb0ade82f8faa909 · report
generate_composite_img JizhiziLi/P3M/core/util.py official repository unverified MIT (permissive) · 9c8d81441f7f659a · report
get_alpha_loss JizhiziLi/P3M/core/evaluate.py official repository unverified MIT (permissive) · 735bde18aa2e7e03 · report
get_alpha_loss_whole_img JizhiziLi/P3M/core/evaluate.py official repository unverified MIT (permissive) · c0cbfd940af9287f · report
get_crossentropy_loss JizhiziLi/P3M/core/evaluate.py official repository unverified MIT (permissive) · 7f97dd9d19c4e889 · report
listdir_nohidden JizhiziLi/P3M/core/util.py official repository unverified MIT (permissive) · 0bf121e95bec6351 · report
drop_path lucaspk512/vrdone/models/blocks.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · a34c005ba2203f35 · report
get_sinusoid_encoding lucaspk512/vrdone/models/blocks.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 3531df7b0c9b0791 · report
batch_masked_dice_loss lucaspk512/vrdone/models/losses.py community (archive-listed) unverified MIT (permissive) · 13b626c8eb68b878 · report
batch_masked_sigmoid_ce_loss lucaspk512/vrdone/models/losses.py community (archive-listed) unverified MIT (permissive) · 962dc6f0208f7b16 · report
batch_masked_sigmoid_focal_loss lucaspk512/vrdone/models/losses.py community (archive-listed) unverified MIT (permissive) · b23ac53a6a53f7cc · report
trunc_normal_ lucaspk512/vrdone/models/weight_init.py community (archive-listed) unverified MIT (permissive) · d9454fa554d05b5b · report

Tasks

Image MattingPrivacy Preserving

Datasets

Introduced by this paper, per the archive.

P3M-10k

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Matting P3M-10k P3M-Net (r) MAD 0.0051 #3 of 7 Archive leaderboard report
Image Matting P3M-10k P3M-Net (r) MSE 0.0026 #3 of 7 Archive leaderboard report
Image Matting P3M-10k P3M-Net (r) SAD 8.73 #3 of 7 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections