Using feature extraction layers #455
-
I am trying to use feat_extractor = lhotse.features.kaldi.layers.Wav2Spec()
x = feat_extractor.forward(x) What should be the shape of the input |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
As far as I can tell, the input shape of x should be
However, there is incorrect documentation in the code. You can find the correct shape for lhotse/lhotse/features/kaldi/layers.py Line 297 in 9b6e3e4 lhotse/lhotse/features/kaldi/layers.py Lines 135 to 151 in 9b6e3e4 You can see from line 143, lhotse/lhotse/features/kaldi/layers.py Lines 580 to 595 in 9b6e3e4 Line 594 and 595 give you the shape you wanted. BTW, the documentation at line 581 is incorrect. lhotse/lhotse/features/kaldi/layers.py Line 581 in 9b6e3e4 https://github.com/lhotse-speech/lhotse/blob/master/lhotse/features/kaldi/layers.py |
Beta Was this translation helpful? Give feedback.
As far as I can tell, the input shape of x should be
However, there is incorrect documentation in the code.
You can find the correct shape for
x
by reading the following code:lhotse/lhotse/features/kaldi/layers.py
Line 297 in 9b6e3e4
lhotse/lhotse/features/kaldi/layers.py
Lines 135 to 151 in 9b6e3e4