Skip to content

Commit cd561f4

Browse files
authored
Update test.py (k2-fsa#560)
1 parent 70990a0 commit cd561f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/whisper/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def compute_features(filename: str) -> torch.Tensor:
259259

260260
# We pad 50 frames at the end so that it is able to detect eot
261261
# You can use another value instead of 50.
262-
mel = torch.nn.functional.pad(mel, (0, 0, 0, 50), "constant", 0)
262+
mel = torch.nn.functional.pad(mel, (0, 0, 0, 1000), "constant", 0)
263263
# Note that if it throws for a multilingual model,
264264
# please use a larger value, say 300
265265

0 commit comments

Comments
 (0)