Wav2Lip Package
Wav2Lip is a Python package that simplifies the setup and execution of the Wav2Lip model, a deep learning tool for lip synchronization with enhanced quality options.
wav2lip_project/
├── wav2lip/
│ ├── __init__.py
│ └── wav2lip.py # Refactored class-based script with the correct name
├── pyproject.toml # Poetry configuration file
├── README.md # Project description and usage instructions
├── LICENSE # License file (e.g., MIT License)
├── tests/
│ └── test_wav2lip.py # Unit tests for the package
├── dist/ # Will contain build files after 'poetry build'
├── .gitignore # Files to ignore in version control (optional)
└── setup.cfg # Optional: You can include a setup.cfg for backward compatibility
Features
setup for Google Colab environments.
- Supports multiple quality settings (Fast, Improved, Enhanced).
- Integrated with GFPGAN for face upscaling.
- Easy configuration through INI files for customizable options.
Installation
To install the Wav2Lip package, you can use Poetry to manage dependencies.
pip install wav2lip
Usage
Here's an example of how to use the Wav2Lip package:
from wyn_wav2lip.wav2lip import *
# Initialize Wav2Lip
wav2lip = Wav2Lip()
# Setup environment (ensure that you have GPU enabled)
wav2lip.setup()
# Run: requires 2 input args:
# - an image
# - a voice file
wav2lip.run(video_file="/content/yiqiao3.jpg", vocal_file="/content/Easy-Wav2Lip/output.mp3")
Options
You can specify different options for the model, such as:
- Quality:
"Fast","Improved", or"Enhanced". - Output Height:
"half resolution","full resolution", or"480". - Padding and Mask: Customize mouth tracking, padding, and mask settings.
Contributing
Feel free to open issues or contribute by submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for wyn-wav2lip 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wyn_wav2lip-0.2.3.tar.gz | 8.8 kB | Without provenance | Details for wyn_wav2lip-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wyn_wav2lip-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for wyn_wav2lip-0.2.3-py3-none-any.whl |
Total release size: 18.4 kB
Release files / wyn_wav2lip-0.2.3.tar.gz
| Download URL | wyn_wav2lip-0.2.3.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
671f5135b456efd20e2a728f894c2aefc64f1258dfa25f4a1725a26f04895528
|
|
BLAKE2b-256 checksum How to use checksums |
566732fae35b14528c357165e28a25ee80bdb34a5bc097739a2b1f4b76820445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.1 Windows/10
|
Release files / wyn_wav2lip-0.2.3-py3-none-any.whl
| Download URL | wyn_wav2lip-0.2.3-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
168179111a82dd057b486e1b79a40b0eb212c682f79794a85f0afc89e640dbc5
|
|
BLAKE2b-256 checksum How to use checksums |
aca57bf60ee5244c425b591456dd3217f6e8395448397102bad7896b288f9a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.1 Windows/10
|
Security for wyn-wav2lip 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.