Take a video and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training, no GPUs.
- Video clips
- Python 3.9
- Docker
Copy your video clips on the project root directory.
Then, update tungsten_model.py
corresponding to your needs:
- Change
FaceswapInput
class - This class is for defining inputs. - Change
VIDEO_SEGMENTS
variable - Change file names to your owns. - Change
REFERENCE_FRAME_NUMBERS
variable - Change frame number containing the target face.
First, install requirements:
pip install -r requirements.txt
Download weights:
./download_weights.sh
tungsten build . faceswap:myversion
Go to tungsten.run and create a project.
Log in to Tungsten:
tungsten login
Add tag of the model:
tungsten tag faceswap:myversion <project_name>
Push the model to the project:
tungsten push <project_name>
Visit tungsten.run and go to the project page.