kayariyan28/ghost-score-face-swap — explained in plain English
Analysis updated 2026-05-18
Swap a face in a photo using an automatically chosen pipeline based on transfer quality.
Study how a ghost score metric decides between classical compositing, AI synthesis, and adaptive recovery.
Reproduce or extend the benchmark results published in the accompanying research paper.
| kayariyan28/ghost-score-face-swap | 0xhassaan/nn-from-scratch | 3ks/embedoc | |
|---|---|---|---|
| Stars | 0 | 0 | — |
| Language | Python | Python | Python |
| Last pushed | — | — | 2023-06-08 |
| Maintenance | — | — | Dormant |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 4/5 | 4/5 | 1/5 |
| Audience | researcher | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Runtime is tuned for macOS on Apple Silicon, Linux is also supported.
Ghost-Score-Driven Multi-Pipeline Face Swap is a local research prototype written in Python that replaces one person's face in a photo with another person's face. Rather than using a single approach, it routes each swap through one of three pipelines depending on how well the transfer went, using a metric called the ghost score to decide. The ghost score is a simple measurement: it compares how similar the output face looks to the source identity versus the target identity. A negative score means the swap succeeded, the result looks more like the source. A positive score signals leakage, meaning the original target face is still showing through, and the system escalates to a stronger recovery pipeline. The three pipelines are Classical Compositing, AI Synthesis, and Pro Adaptive. Classical Compositing focuses on preserving fine pixel detail and texture from the source. AI Synthesis is faster and more tolerant of difficult head poses. Pro Adaptive is the most powerful: it runs multiple candidate approaches and applies a 3D-aware visible-surface mask to avoid blending parts of the face that are hidden by occlusion, such as hair or other objects in front of the face. The tool is designed for local execution only, there is no cloud API and no telemetry. A 200-pair benchmark reported in the accompanying research paper found that the Pro Adaptive mode reached a 92.5 percent identity match rate, outperforming the simpler pipelines. The research paper is published on Zenodo (DOI 10.5281/zenodo.20179682). The README states the runtime is tuned for macOS on Apple Silicon, though Linux can run the tool as well.
A local Python research tool that swaps faces in photos using three pipelines chosen automatically by a quality score.
Mainly Python. The stack also includes Python.
Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.