From f85450c445d17ed34ec4d45923cc40b6f11fac9b Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 10 Jan 2025 15:21:43 +0800 Subject: [PATCH] Update test_transforms.py --- audio/tests/audiotools/data/test_transforms.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/audio/tests/audiotools/data/test_transforms.py b/audio/tests/audiotools/data/test_transforms.py index 0a0b55f5d..67e5deac4 100644 --- a/audio/tests/audiotools/data/test_transforms.py +++ b/audio/tests/audiotools/data/test_transforms.py @@ -28,7 +28,7 @@ for x in dir(tfm): "Choose", "Repeat", "RepeatUpTo", - # the above 4 transforms may have problems with precision + # The above 4 transforms are currently excluded from testing at 1e-4 precision due to potential accuracy issues "BackgroundNoise", "Equalizer", "FrequencyNoise", @@ -122,6 +122,8 @@ def test_compose_basic(): kwargs = transform.instantiate(seed, signal) output = transform(signal, **kwargs) + # Due to precision issues with RoomImpulseResponse and BackgroundNoise used in the Compose test, + # we only perform logical testing for Compose and skip precision testing of the final output # _compare_transform("Compose", output) assert isinstance(transform[0], tfm.RoomImpulseResponse) @@ -233,6 +235,8 @@ def test_choose_basic(): kwargs = transform.instantiate(seed, signal) output = transform(signal.clone(), **kwargs) + # Due to precision issues with RoomImpulseResponse and BackgroundNoise used in the Choose test, + # we only perform logical testing for Choose and skip precision testing of the final output # _compare_transform("Choose", output) transform = tfm.Choose([