Title: Face Swapping with InsightFace
Description:
This Python application utilizes Hugging Face's InsightFace library to swap faces between two images. It leverages pre-trained models for face detection and face swapping, allowing for easy experimentation.
Features:
Detects faces in two separate images.
Swaps the detected faces between the images.
Optionally displays the original and swapped images for visual verification.
Requirements:
Python (tested with version 3.x)
Hugging Face Transformers library
InsightFace library (installable via pip install insightface)
OpenCV-Python (for image processing)
matplotlib (for plotting)
NumPy (for numerical operations)
Installation:
Create a virtual environment (recommended) to isolate project dependencies.
Install the required libraries using pip:
Bash
pip install -r requirements.txt
Usa el código con precaución.
Note: Create a requirements.txt file in your project directory…