Skip to main content

A simple package to run Wav2Lip for lip synchronization with quality enhancements.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wyn_wav2lip-0.2.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wyn_wav2lip-0.2.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file wyn_wav2lip-0.2.3.tar.gz.

File metadata

  • Download URL: wyn_wav2lip-0.2.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.1 Windows/10

File hashes

Hashes for wyn_wav2lip-0.2.3.tar.gz
Algorithm Hash digest
SHA256 671f5135b456efd20e2a728f894c2aefc64f1258dfa25f4a1725a26f04895528
MD5 c532bf810cb0c5ed30fdca951e6f2455
BLAKE2b-256 566732fae35b14528c357165e28a25ee80bdb34a5bc097739a2b1f4b76820445

See more details on using hashes here.

File details

Details for the file wyn_wav2lip-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: wyn_wav2lip-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.1 Windows/10

File hashes

Hashes for wyn_wav2lip-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 168179111a82dd057b486e1b79a40b0eb212c682f79794a85f0afc89e640dbc5
MD5 d4549ddbc5aa34ed40e537d91ee955a3
BLAKE2b-256 aca57bf60ee5244c425b591456dd3217f6e8395448397102bad7896b288f9a7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page