Face Swap Image
Community Article
Published
December 10, 2025
Face swap image with 1 line of code. Takes in a filepath, PIL image, or numpy array and outputs a PIL image of result image.
Download
Download the .zip file or use the command line
git clone https://github.com/TonyAssi/faceswap.git
Installation
pip install -r requirements.txt
Requires Python 3.10+
Usage
Import module
from face_swap import swap_faces
- src_img source face (filepath, PIL image, numpy array)
- dest_img target image (filepath, PIL image, numpy array)
out = swap_faces(src_img="src.jpg", dest_img="dest.jpg")
out.save("output.jpg")
The output is a PIL image
About Me
Hello, my name is Tony Assi. I'm a designer based in Los Angeles. I have a background in software, fashion, and marketing. I currently work for an e-commerce fashion brand. Check out my 🤗 profile for more apps, models and datasets.
Feel free to send me an email at [email protected] with any questions, comments, business inquiries or job offers.