Unverified Commit b4998409 authored by moto's avatar moto Committed by GitHub
Browse files

Reduce tolerance for MFCC (#608)

parent 79eecb0f
......@@ -207,7 +207,6 @@ class TestTransforms(unittest.TestCase):
computed = torchaudio.transforms.MelSpectrogram()(waveform.repeat(3, 1, 1))
torch.testing.assert_allclose(computed, expected)
@unittest.skipIf(platform.system() == "Windows", "Test is known to fail on Windows.")
def test_batch_mfcc(self):
test_filepath = common_utils.get_asset_path('steam-train-whistle-daniel_simon.wav')
waveform, _ = torchaudio.load(test_filepath)
......@@ -217,7 +216,7 @@ class TestTransforms(unittest.TestCase):
# Batch then transform
computed = torchaudio.transforms.MFCC()(waveform.repeat(3, 1, 1))
torch.testing.assert_allclose(computed, expected, atol=1e-5, rtol=1e-5)
torch.testing.assert_allclose(computed, expected, atol=1e-4, rtol=1e-5)
def test_batch_TimeStretch(self):
test_filepath = common_utils.get_asset_path('steam-train-whistle-daniel_simon.wav')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment