models.rst 2.82 KB
Newer Older
Tomás Osório's avatar
Tomás Osório committed
1
2
3
4
.. role:: hidden
    :class: hidden-section

torchaudio.models
moto's avatar
moto committed
5
=================
Tomás Osório's avatar
Tomás Osório committed
6

moto's avatar
moto committed
7
8
.. py:module:: torchaudio.models

Tomás Osório's avatar
Tomás Osório committed
9
10
11
12
.. currentmodule:: torchaudio.models

The models subpackage contains definitions of models for addressing common audio tasks.

13
14
15
16
17
18
Conformer
~~~~~~~~~

.. autoclass:: Conformer

  .. automethod:: forward
Tomás Osório's avatar
Tomás Osório committed
19

moto's avatar
moto committed
20
21
ConvTasNet
~~~~~~~~~~
moto's avatar
moto committed
22
23
24
25
26
27

.. autoclass:: ConvTasNet

  .. automethod:: forward


moto's avatar
moto committed
28
29
DeepSpeech
~~~~~~~~~~
discort's avatar
discort committed
30
31
32
33
34

.. autoclass:: DeepSpeech

  .. automethod:: forward

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Emformer
~~~~~~~~

.. autoclass:: Emformer

  .. automethod:: forward

  .. automethod:: infer

RNN-T
~~~~~

Model
-----

RNNT
^^^^

.. autoclass:: RNNT

  .. automethod:: forward

  .. automethod:: transcribe_streaming

  .. automethod:: transcribe

  .. automethod:: predict

  .. automethod:: join

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

emformer_rnnt_model
^^^^^^^^^^^^^^^^^^^

.. autofunction:: emformer_rnnt_model

emformer_rnnt_base
^^^^^^^^^^^^^^^^^^

.. autofunction:: emformer_rnnt_base


Decoder
-------

RNNTBeamSearch
^^^^^^^^^^^^^^

.. autoclass:: RNNTBeamSearch

  .. automethod:: forward

  .. automethod:: infer

Hypothesis
^^^^^^^^^^

.. autoclass:: Hypothesis

discort's avatar
discort committed
96

97
98
99
100
101
102
103
104
105
Tacotron2
~~~~~~~~~

.. autoclass:: Tacotron2

  .. automethod:: forward

  .. automethod:: infer

moto's avatar
moto committed
106
107
Wav2Letter
~~~~~~~~~~
Tomás Osório's avatar
Tomás Osório committed
108
109
110
111

.. autoclass:: Wav2Letter

  .. automethod:: forward
jimchen90's avatar
jimchen90 committed
112
113


moto's avatar
moto committed
114
115
Wav2Vec2.0 / HuBERT
~~~~~~~~~~~~~~~~~~~
moto's avatar
moto committed
116

moto's avatar
moto committed
117
118
119
Model
-----

moto's avatar
moto committed
120
Wav2Vec2Model
moto's avatar
moto committed
121
^^^^^^^^^^^^^
moto's avatar
moto committed
122
123
124
125
126
127
128

.. autoclass:: Wav2Vec2Model

  .. automethod:: extract_features

  .. automethod:: forward

129
130
131
132
133
134
135
HuBERTPretrainModel
^^^^^^^^^^^^^^^^^^^

.. autoclass:: HuBERTPretrainModel

  .. automethod:: forward

moto's avatar
moto committed
136
137
138
Factory Functions
-----------------

139
140
141
142
143
144
wav2vec2_model
^^^^^^^^^^^^^^

.. autofunction:: wav2vec2_model


moto's avatar
moto committed
145
wav2vec2_base
moto's avatar
moto committed
146
^^^^^^^^^^^^^
moto's avatar
moto committed
147

moto's avatar
moto committed
148
149
.. autofunction:: wav2vec2_base

moto's avatar
moto committed
150
wav2vec2_large
moto's avatar
moto committed
151
^^^^^^^^^^^^^^
moto's avatar
moto committed
152

moto's avatar
moto committed
153
154
.. autofunction:: wav2vec2_large

moto's avatar
moto committed
155
wav2vec2_large_lv60k
moto's avatar
moto committed
156
^^^^^^^^^^^^^^^^^^^^
moto's avatar
moto committed
157

moto's avatar
moto committed
158
159
.. autofunction:: wav2vec2_large_lv60k

moto's avatar
moto committed
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
hubert_base
^^^^^^^^^^^

.. autofunction:: hubert_base

hubert_large
^^^^^^^^^^^^

.. autofunction:: hubert_large

hubert_xlarge
^^^^^^^^^^^^^

.. autofunction:: hubert_xlarge

175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
hubert_pretrain_model
^^^^^^^^^^^^^^^^^^^^^

.. autofunction:: hubert_pretrain_model

hubert_pretrain_base
^^^^^^^^^^^^^^^^^^^^

.. autofunction:: hubert_pretrain_base

hubert_pretrain_large
^^^^^^^^^^^^^^^^^^^^^

.. autofunction:: hubert_pretrain_large

hubert_pretrain_xlarge
^^^^^^^^^^^^^^^^^^^^^^

.. autofunction:: hubert_pretrain_xlarge

195
196
197
Utility Functions
-----------------

198
199
.. currentmodule:: torchaudio.models.wav2vec2.utils

moto's avatar
moto committed
200
import_huggingface_model
moto's avatar
moto committed
201
^^^^^^^^^^^^^^^^^^^^^^^^
moto's avatar
moto committed
202

203
204
.. autofunction:: import_huggingface_model

moto's avatar
moto committed
205
import_fairseq_model
moto's avatar
moto committed
206
^^^^^^^^^^^^^^^^^^^^
moto's avatar
moto committed
207

moto's avatar
moto committed
208
209
.. autofunction:: import_fairseq_model

210
.. currentmodule:: torchaudio.models
moto's avatar
moto committed
211

moto's avatar
moto committed
212
213
WaveRNN
~~~~~~~
jimchen90's avatar
jimchen90 committed
214
215
216
217

.. autoclass:: WaveRNN

  .. automethod:: forward
moto's avatar
moto committed
218

219
220
  .. automethod:: infer

moto's avatar
moto committed
221
222
223
224
References
~~~~~~~~~~

.. footbibliography::