MCPcopy Index your code
hub / github.com/Dianezzy/ParaLip

github.com/Dianezzy/ParaLip @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
386 symbols 907 edges 19 files 75 documented · 19%

Browse by type

Functions 329 Types & classes 57
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Parallel and High-Fidelity Text-to-Lip Generation

arXiv GitHub Stars downloads

This repository is the official PyTorch implementation of our AAAI-2022 paper, in which we propose ParaLip (for text-based talking face synthesis) .

Video Demos

https://user-images.githubusercontent.com/48660888/166140342-2b0b4a83-3ba5-4235-ade0-c50f6e2483c1.mp4

Video samples can be found in our demo page.

:rocket: News: - Feb.24, 2022: Our new work, NeuralSVB was accepted by ACL-2022 arXiv. Project Page. - Dec.01, 2021: ParaLip was accepted by AAAI-2022. - July.14, 2021: We submitted ParaLip to Arxiv arXiv.

Environments

conda create -n your_env_name python=3.7
source activate your_env_name 
pip install -r requirements.txt   

ParaLip

1. Preparation

Data Preparation

We provide the first frame of each test example for inference. Besides, we include the audio pieces of 5 test examples to generate talking lip videos with human voice.

a) Download and decompress the TCD-TIMIT dataset, then put them in the data directory

```sh tar -xvf timit.tar mv timit data/


b) Run the following scripts to pack the dataset for inference.

```sh
export PYTHONPATH=.
python datasets/lipgen/timit/gen_timit.py --config configs/lipgen/timit/lipgen_timit.yaml

We don't provide the full datasets of TCD-TIMIT because of the licence issue. You can download it by yourself if necessary.

2. Inference Example

CUDA_VISIBLE_DEVICES=0 python tasks/timit_lipgen_task.py --config configs/lipgen/timit/lipgen_timit.yaml --exp_name timit_2 --infer --reset        

We also provide: - the pre-trained model of ParaLip on TCD-TIMIT. Remember to put the pre-trained models in checkpoints/timit_2 directory respectively.

Citation

@misc{https://doi.org/10.48550/arxiv.2107.06831,
  doi = {10.48550/ARXIV.2107.06831},

  url = {https://arxiv.org/abs/2107.06831},

  author = {Liu, Jinglin and Zhu, Zhiying and Ren, Yi and Huang, Wencan and Huai, Baoxing and Yuan, Nicholas and Zhao, Zhou},

  keywords = {Multimedia (cs.MM), Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences, FOS: Computer and information sciences},

  title = {Parallel and High-Fidelity Text-to-Lip Generation},

  publisher = {arXiv},

  year = {2021},

  copyright = {arXiv.org perpetual, non-exclusive license}
}

Core symbols most depended-on inside this repo

Shape

Method 285
Class 57
Function 44

Languages

Python100%

Modules by API surface

modules/operations.py76 symbols
utils/pl_utils.py65 symbols
tasks/base_task.py48 symbols
utils/__init__.py38 symbols
utils/text_encoder.py32 symbols
modules/base_modules.py30 symbols
tasks/grid_lipgen_task.py25 symbols
modules/lip_modules/lip_utils.py12 symbols
modules/lip_modules/img_modules.py12 symbols
datasets/lipgen/grid/gen_grid_high.py12 symbols
utils/indexed_datasets.py10 symbols
datasets/lipgen/timit/gen_timit.py9 symbols

For agents

$ claude mcp add ParaLip \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page