You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backward compatibility for the Wav2Vec2 ASR model (OpenNMT#1810)
* update description for the wav2vec2 model
* the backward compatiability support for the wav2vec2 ASR model
* dummy
* dummy push
* dummy push
* dummy push
* header update
* dummpy push
---------
Co-authored-by: hkwon <homin.kwon@sri.com>
Copy file name to clipboardExpand all lines: python/cpp/wav2vec2.cc
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,9 @@ namespace ctranslate2 {
86
86
Encodes the input features.
87
87
88
88
Arguments:
89
-
features: Mel spectogram of the audio, as a float array with shape
90
-
``[batch_size, 80, 3000]``.
89
+
features: hidden_states (up to v.4.3.1, https://github.com/OpenNMT/CTranslate2/blob/59c7dda738892df7a064aa360d0e45a4c3840b07/python/tests/test_transformers.py#L1028) or
90
+
raw audio, as a float array with shape (followed by VAD)
91
+
``[batch_size, 409, 1024]`` or ``[batch_size, 1, 131200]``
91
92
to_cpu: Copy the encoder output to the CPU before returning the value.
0 commit comments