Faceswap
Python script to put facial features from one face onto another
Install / Use
/learn @matthewearl/FaceswapREADME
This is the code behind the Switching Eds blog post.
See the link for an explanation of the code.
To run the script you'll need to install dlib (http://dlib.net) including its Python bindings, and OpenCV. You'll also need to obtain the trained model from sourceforge.
Unzip with bunzip2 and change PREDICTOR_PATH to refer to this file. The
script is run like so:
./faceswap.py <head image> <face image>
If successful, a file output.jpg will be produced with the facial features
from <head image> replaced with the facial features from <face image>.
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
