Skip to main content

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)

Source distribution for wyn-wav2lip 0.2.3
File Size Uploaded
wyn_wav2lip-0.2.3.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wyn-wav2lip 0.2.3
File Interpreter ABI Platform
wyn_wav2lip-0.2.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page