Papers › FaceShifter: Towards High Fidelity And Occlusion Aware Face Swapping

FaceShifter: Towards High Fidelity And Occlusion Aware Face Swapping

31 Dec 2019arXiv:1912.13457archive 2025-07-28

Lingzhi Li, Jianmin Bao, Hao Yang, Dong Chen, Fang Wen

In this work, we propose a novel two-stage framework, called FaceShifter, for high fidelity and occlusion aware face swapping. Unlike many existing face swapping works that leverage only limited information from the target image when synthesizing the swapped face, our framework, in its first stage, generates the swapped face in high-fidelity by exploiting and integrating the target attributes thoroughly and adaptively. We propose a novel attributes encoder for extracting multi-level target face attributes, and a new generator with carefully designed Adaptive Attentional Denormalization (AAD) layers to adaptively integrate the identity and the attributes for face synthesis. To address the challenging facial occlusions, we append a second stage consisting of a novel Heuristic Error Acknowledging Refinement Network (HEAR-Net). It is trained to recover anomaly regions in a self-supervised way without any manual annotations. Extensive experiments on wild faces demonstrate that our face swapping results are not only considerably more perceptually appealing, but also better identity preserving in comparison to other state-of-the-art methods.

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="1912.13457")

Code

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

By repository: community (archive-listed): 4 samples from 3 repositories, 4 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AlexeiKaplenko/FaceShifter_mine mentioned on GitHubpytorch report
Heonozis/FaceShifter-pytorch mentioned on GitHubpytorch report
Leminhbinh0209/AAAI22-ADD mentioned on GitHubpytorch report
Olksndr/FaceShifter mentioned on GitHubpytorch report
VladAndronik/face_swap mentioned on GitHubpytorch report
denis19973/faceshifter_tornado mentioned on GitHubpytorch report
faddey-w/face-swap mentioned on GitHubpytorch report
leminhbinh0209/add mentioned on GitHubpytorch report
mindslab-ai/faceshifter mentioned on GitHubpytorchBSD-3-Clause 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

6 samples harvested; 6 ran; 1 honoured the contract we drafted; 0 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
4ran · our draft was wrong
1ran · fixture could not drive it

Licence: 6 of the 6 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 3 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

conv4x4 faddey-w/face-swap/face_swap/faceshifter/HEAR_Net.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · e1e679c4b30fc296 · report
deconv4x4 faddey-w/face-swap/face_swap/faceshifter/HEAR_Net.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 00b55d10f79fd8b6 · report
get_blocks VladAndronik/face_swap/face_modules/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · ea7941eb1ea8ffb2 · report
hinge_loss taotaonice/FaceShifter/train_AEI.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 20857a6f247d89e9 · report
get_block identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · ad5dbf57f3ea2633 · report
l2_norm identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · c54fea429589425d · report

Tasks

Face GenerationFace SwappingVocal Bursts Intensity Prediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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