Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made few changes to the code files. #4000

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions TTS/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def inference(self, input: torch.Tensor, aux_input={}) -> Dict:
"""Forward pass for inference.

It must return a dictionary with the main model output and all the auxiliary outputs. The key ```model_outputs```
is considered to be the main output and you can add any other auxiliary outputs as you want.
is considered to be the main output and you can add any other auxiliary outputs if you want.

We don't use `*kwargs` since it is problematic with the TorchScript API.

Expand All @@ -54,6 +54,7 @@ def load_checkpoint(
checkpoint_path (str): Path to the model checkpoint file.
eval (bool, optional): If true, init model for inference else for training. Defaults to False.
strict (bool, optional): Match all checkpoint keys to model's keys. Defaults to True.
cache (bool, optional): If True, cache the file locally for subsequent calls. It is cached under `get_user_data_dir()/tts_cache`. Defaults to False.
cache (bool, optional): If True, cache the file locally for subsequent calls. It is cached under `get_user_data_dir()/tts_cache`.
Defaults to False.
"""
...
2 changes: 1 addition & 1 deletion hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def tts(model_name='tts_models/en/ljspeech/tacotron2-DCA',
vocoder_name=None,
use_cuda=False):
"""TTS entry point for PyTorch Hub that provides a Synthesizer object to synthesize speech from a give text.
"""TTS entry point for PyTorch Hub that provides a Synthesizer object to synthesize speech from a given text.

Example:
>>> synthesizer = torch.hub.load('coqui-ai/TTS', 'tts', source='github')
Expand Down
Loading