Skip to main content

A PyPI port of the NVIDIA Tacotron2 model

Project description

tacotron2-model

A PyPI port of the NVIDIA Tacotron2 model

Source: https://github.com/NVIDIA/tacotron2 (model.py)

A pytorch install is required but is not added to requirements to avoid configuration issues.

The only change from the NVIDIA original is a replacement of hparams with individual arguments. This removes the dependency on tf.contrib.training.HParams (deprecated since tensorflow 1).

Model usage

from tacotron2_model import Tacotron2

model = Tacotron2().cuda()
print(model.eval())

Loss usage

from tacotron2_model import Tacotron2Loss

criterion = Tacotron2Loss()

Collate usage

from tacotron2_model import TextMelCollate

collate_fn = TextMelCollate()

STFT

from tacotron2_model import TacotronSTFT

stft = TacotronSTFT()

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

tacotron2-model-0.2.4.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

tacotron2_model-0.2.4-py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 3

Supported by

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