Code Monkey home page Code Monkey logo

t2a's Introduction

T2A: Robust Text-to-Animation

Demos

Acknowledgement

  • Thanks to Shanghai Media Tech(SMT) for providing the data set and rendering service, the copyright of digital human presented in our demo is reserved by SMT.
  • We use pre-trained HuBERT model from this repository.
  • We use implementation of soft-DTW loss from this repository.

Text-to Animation

org

org_A1_softdtw_org_30min.mp4

TTS

org_A1_softdtw_Xiaomo_30min_ValByXiaomo.mp4

TTS Data Augmentation

org

Yunyang_B1_softdtw_org_2min.mp4

TTS Augmentation

Yunyang_B1_softdtw_aug14_2min.mp4

Different Features

MFCC

A1_softdtw_10min_mfcc.mp4

PPGs

A1_ppg_10min.mp4

HuBERT

A1_softdtw_10min.mp4

Different Loss Functions

L1

A1_speaker0_L1.mp4

L2

A1_speaker0_mse.mp4

soft-DTW

A1_speaker0_softdtw.mp4

Pre-trained model and tools preparation

Download pre-trained HuBERT model

The pre-trained HuBERT model is obtained from this repository.

Please download Chinese HuBERT model and put it on directory ./data/pretrained_models/ by executing the following command:

wget -P ./data/pretrained_models/ https://huggingface.co/TencentGameMate/chinese-hubert-large/resolve/main/chinese-hubert-large-fairseq-ckpt.pt

Download fairseq tool

git clone [email protected]:facebookresearch/fairseq.git
cd fairseq
git checkout acd9a53
pip install --editable ./

Feature extraction

Extract HuBERT feature

python utils/generate_hubert.py --input_dir ./data/wavs/[speaker name] --output_dir ./data/wav_features/[speaker name]

Extract MFCC feature

python utils/generate_mfcc.py --input_dir ./data/wavs/[speaker name] --output_dir ./data/wav_features/[speaker name]

Train

run bash train.sh to train

important arguments for main.py

  • arch: chinese_hubert_large | mfcc | pgg
  • feature_combine: True if you want to use weighted sum of hubert feature
  • output_path: "result" if you want to generate output of test set | [other name] if you want to generate other data
  • test_input_path: you should explicitly assign path of test_input_path if output_path != "result", test_input_path is the dir of csv files
  • test_epoch: do not need to explicitly assign, will find the model with best
  • root_dir: dir of dataset root
  • feature_dir: hubert_large | wav2vec2_large | mfcc | ppg
  • train_speaker_list: assign several speaker names for training
  • train_json: used to change data resource, path of json file which includes list of audio name in training set
  • freq: 50 if feature is chinese_hubert_large or ppg , 100 if feature is mfcc
  • input_dim: 39 for mfcc, 128 for ppg

Test

run bash test.sh to test

Validate

run bash validate.sh to pick the best model by validating on validation set of certain speaker, change --val_speaker to decide speaker for validation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.