E2-TTS in Pytorch
Project description
E2 TTS - Pytorch
Implementation of E2-TTS, Embarrassingly Easy Fully Non-Autoregressive Zero-Shot TTS, in Pytorch
Appreciation
- Manmay for contributing working end-to-end training code!
Install
$ pip install e2-tts-pytorch
Usage
import torch
from e2_tts_pytorch import (
E2TTS,
DurationPredictor
)
duration_predictor = DurationPredictor(
transformer = dict(
dim = 512,
depth = 8,
)
)
mel = torch.randn(2, 1024, 100)
text = ['Hello', 'Goodbye']
loss = duration_predictor(mel, text = text)
loss.backward()
e2tts = E2TTS(
duration_predictor = duration_predictor,
transformer = dict(
dim = 512,
depth = 8,
skip_connect_type = 'concat'
),
)
loss = e2tts(mel, text = text)
loss.backward()
sampled = e2tts.sample(mel[:, :5], text = text)
Citations
@inproceedings{Eskimez2024E2TE,
title = {E2 TTS: Embarrassingly Easy Fully Non-Autoregressive Zero-Shot TTS},
author = {Sefik Emre Eskimez and Xiaofei Wang and Manthan Thakker and Canrun Li and Chung-Hsien Tsai and Zhen Xiao and Hemin Yang and Zirun Zhu and Min Tang and Xu Tan and Yanqing Liu and Sheng Zhao and Naoyuki Kanda},
year = {2024},
url = {https://api.semanticscholar.org/CorpusID:270738197}
}
@inproceedings{Li2024ImmiscibleDA,
title = {Immiscible Diffusion: Accelerating Diffusion Training with Noise Assignment},
author = {Yiheng Li and Heyang Jiang and Akio Kodaira and Masayoshi Tomizuka and Kurt Keutzer and Chenfeng Xu},
year = {2024},
url = {https://api.semanticscholar.org/CorpusID:270562607}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
e2_tts_pytorch-0.1.9.tar.gz
(180.1 kB
view hashes)
Built Distribution
Close
Hashes for e2_tts_pytorch-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6afc459e666feec94f46c932d57232d321e05aac9c6e1b6812ff913e3ad84991 |
|
MD5 | da2baf3f053a0d89c6c97a8a5facb1f6 |
|
BLAKE2b-256 | 3ab10880a92d4d653f744e00c8f300292e049e8aef19af1270f74f45c69e2da9 |