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

Move Tacotron2 out of prototype #1714

Merged
merged 1 commit into from
Aug 18, 2021
Merged
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
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ The :mod:`torchaudio` package consists of I/O, popular datasets and common audio
kaldi_io
utils
rnnt_loss
tacotron2


.. toctree::
Expand Down
18 changes: 18 additions & 0 deletions docs/source/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@ DeepSpeech
.. automethod:: forward


Tacotron2
~~~~~~~~~

.. autoclass:: Tacotron2

.. automethod:: forward

.. automethod:: infer

Factory Functions
-----------------

tacotron2
---------

.. autofunction:: tacotron2


Wav2Letter
~~~~~~~~~~

Expand Down
37 changes: 0 additions & 37 deletions docs/source/tacotron2.rst

This file was deleted.

6 changes: 3 additions & 3 deletions examples/pipeline_tacotron2/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import torch
import torchaudio
import numpy as np
from torchaudio.prototype.tacotron2 import Tacotron2
from torchaudio.prototype.tacotron2 import tacotron2 as pretrained_tacotron2
from torchaudio.models import Tacotron2
from torchaudio.models import tacotron2 as pretrained_tacotron2

from utils import prepare_input_sequence
from datasets import InverseSpectralNormalization
Expand All @@ -28,7 +28,7 @@ def parse_args():
r"""
Parse commandline arguments.
"""
from torchaudio.prototype.tacotron2 import _MODEL_CONFIG_AND_URLS as tacotron2_config_and_urls
from torchaudio.models.tacotron2 import _MODEL_CONFIG_AND_URLS as tacotron2_config_and_urls
from torchaudio.models.wavernn import _MODEL_CONFIG_AND_URLS as wavernn_config_and_urls

parser = argparse.ArgumentParser(description=__doc__)
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline_tacotron2/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from torch.utils.tensorboard import SummaryWriter
from torch.utils.data import DataLoader
from torch.optim import Adam
from torchaudio.prototype.tacotron2 import Tacotron2
from torchaudio.models import Tacotron2
from tqdm import tqdm
import matplotlib.pyplot as plt
plt.switch_backend('agg')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import Tuple
import torch
from torch import Tensor
from torchaudio.prototype.tacotron2 import Tacotron2, _Encoder, _Decoder
from torchaudio.models import Tacotron2
from torchaudio.models.tacotron2 import _Encoder, _Decoder
from torchaudio_unittest.common_utils import (
TestBaseMixin,
TempDirMixin,
Expand Down
3 changes: 3 additions & 0 deletions torchaudio/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from .wavernn import WaveRNN, wavernn
from .conv_tasnet import ConvTasNet
from .deepspeech import DeepSpeech
from .tacotron2 import Tacotron2, tacotron2
from .wav2vec2 import (
Wav2Vec2Model,
wav2vec2_base,
Expand All @@ -20,4 +21,6 @@
'wav2vec2_base',
'wav2vec2_large',
'wav2vec2_large_lv60k',
'Tacotron2',
'tacotron2',
]
File renamed without changes.