20246688
Committed by GitHub

Update test.py (#560)

@@ -259,7 +259,7 @@ def compute_features(filename: str) -> torch.Tensor: @@ -259,7 +259,7 @@ def compute_features(filename: str) -> torch.Tensor:
259 259
260 # We pad 50 frames at the end so that it is able to detect eot 260 # We pad 50 frames at the end so that it is able to detect eot
261 # You can use another value instead of 50. 261 # 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)
263 # Note that if it throws for a multilingual model, 263 # Note that if it throws for a multilingual model,
264 # please use a larger value, say 300 264 # please use a larger value, say 300
265 265