Instructions to use facebook/fastspeech2-en-ljspeech with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Fairseq
How to use facebook/fastspeech2-en-ljspeech with Fairseq:
from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub models, cfg, task = load_model_ensemble_and_task_from_hf_hub( "facebook/fastspeech2-en-ljspeech" ) - Notebooks
- Google Colab
- Kaggle
Fixed error that caused: TypeError: 'FastSpeech2Model' object is not subscriptable
#7
by knoriy - opened
No description provided.
That didn't really fix it. This change is also required:
From:
generator = task.build_generator(model, cfg)
to:
generator = task.build_generator([model], cfg)