One-click face swap
Project description
Roop-pip
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.
Installation
pip install roop-pip
Be aware, the installation needs technical skills and is not for beginners. Please do not open platform and installation related issues on GitHub. Acceleration - Unleash the full potential of your CPU and GPU
Usage
from roop.core import roop_interface
roop_interface(
source_img=SOURCE_PATH,
target_path=TARGET_PATH,
output_file=OUTPUT_PATH
)
Optional Params
Parameter | Choices | Default |
---|---|---|
frame_processor |
['face_swapper', 'face_enhancer'] |
['face_swapper'] |
keep_fps |
True , False |
True |
keep_frames |
True , False |
False |
skip_audio |
True , False |
False |
many_faces |
True , False |
False |
reference_face_position |
Number | 0 |
reference_frame_number |
Number | 0 |
similar_face_distance |
Number | 0.85 |
temp_frame_format |
'jpg', 'png' |
'png' |
temp_frame_quality |
Range [0-100] |
0 |
output_video_encoder |
'libx264', 'libx265', 'libvpx-vp9', 'h264_nvenc', 'hevc_nvenc' |
'libx264' |
output_video_quality |
Range [0-100] |
35 |
max_memory |
- | - |
Disclaimer
This software is designed to contribute positively to the AI-generated media industry, assisting artists with tasks like character animation and models for clothing.
We are aware of the potential ethical issues and have implemented measures to prevent the software from being used for inappropriate content, such as nudity.
Users are expected to follow local laws and use the software responsibly. If using real faces, get consent and clearly label deepfakes when sharing. The developers aren't liable for user actions.
Licenses
Our software uses a lot of third party libraries as well pre-trained models. The users should keep in mind that these third party components have their own license and terms, therefore our license is not being applied.
Credits
- deepinsight for their insightface project which provided a well-made library and models.
- all developers behind the libraries used in this project
Documentation
Read the documentation for a deep dive.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file roop-pip-1.0.0.tar.gz
.
File metadata
- Download URL: roop-pip-1.0.0.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d32015658ee990c58cefa2516d4c00ebeb568572d1249ebabc777dc1b960199 |
|
MD5 | 8bd6bed5cf40470803ebd2b9170492bc |
|
BLAKE2b-256 | ba5ca4268237652ba4b6daf8365720aa06c02e7e5ea6b640ebcce719a30072c1 |
File details
Details for the file roop_pip-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: roop_pip-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de46529a993eed0f4bc34b6c6416eb65e236744cc369b3ae9384e6653e01d1e |
|
MD5 | 71fa41f5dcea55c441fe44f55c79064b |
|
BLAKE2b-256 | 0faf81ec049cd12abeb042d5f0b529b49bf06f3c211b471b39c0604ed7d60d80 |