Update test.py (#560)
This commit is contained in:
@@ -259,7 +259,7 @@ def compute_features(filename: str) -> torch.Tensor:
|
|||||||
|
|
||||||
# We pad 50 frames at the end so that it is able to detect eot
|
# We pad 50 frames at the end so that it is able to detect eot
|
||||||
# You can use another value instead of 50.
|
# You can use another value instead of 50.
|
||||||
mel = torch.nn.functional.pad(mel, (0, 0, 0, 50), "constant", 0)
|
mel = torch.nn.functional.pad(mel, (0, 0, 0, 1000), "constant", 0)
|
||||||
# Note that if it throws for a multilingual model,
|
# Note that if it throws for a multilingual model,
|
||||||
# please use a larger value, say 300
|
# please use a larger value, say 300
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user