From 7de2513d8332cdeb2b70e273ebcecc3253fbb447 Mon Sep 17 00:00:00 2001 From: drryanhuang Date: Mon, 30 Dec 2024 05:40:19 +0000 Subject: [PATCH] add audiotools path --- audio/tests/audiotools/core/test_audio_signal✅.py | 2 +- audio/tests/audiotools/core/test_bands✅.py | 2 +- audio/tests/audiotools/core/test_display✅.py | 2 +- audio/tests/audiotools/core/test_dsp✅.py | 2 +- audio/tests/audiotools/core/test_effects✅.py | 2 +- audio/tests/audiotools/core/test_fftconv✅.py | 2 +- audio/tests/audiotools/core/test_grad✅.py | 2 +- audio/tests/audiotools/core/test_highpass✅.py | 2 +- audio/tests/audiotools/core/test_loudness✅.py | 2 +- audio/tests/audiotools/core/test_lowpass✅.py | 2 +- audio/tests/audiotools/core/test_util✅.py | 2 +- audio/tests/audiotools/data/test_datasets✅.py | 2 +- audio/tests/audiotools/data/test_preprocess✅.py | 2 +- audio/tests/audiotools/data/test_transforms✅.py | 2 +- audio/tests/audiotools/ml/test_decorators✅.py | 2 +- audio/tests/audiotools/ml/test_model✅.py | 2 +- audio/tests/audiotools/test_post✅.py | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/audio/tests/audiotools/core/test_audio_signal✅.py b/audio/tests/audiotools/core/test_audio_signal✅.py index 4aa998bb1..fd470d7e8 100644 --- a/audio/tests/audiotools/core/test_audio_signal✅.py +++ b/audio/tests/audiotools/core/test_audio_signal✅.py @@ -7,7 +7,7 @@ import numpy as np import paddle import pytest import rich -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") import audiotools from audiotools import AudioSignal diff --git a/audio/tests/audiotools/core/test_bands✅.py b/audio/tests/audiotools/core/test_bands✅.py index c5d098c12..55162708c 100644 --- a/audio/tests/audiotools/core/test_bands✅.py +++ b/audio/tests/audiotools/core/test_bands✅.py @@ -5,7 +5,7 @@ import sys import unittest import paddle -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools.core import pure_tone, SplitBands, split_bands diff --git a/audio/tests/audiotools/core/test_display✅.py b/audio/tests/audiotools/core/test_display✅.py index a0feb34b1..9b196bc39 100644 --- a/audio/tests/audiotools/core/test_display✅.py +++ b/audio/tests/audiotools/core/test_display✅.py @@ -2,7 +2,7 @@ import sys from pathlib import Path import numpy as np -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import AudioSignal from visualdl import LogWriter diff --git a/audio/tests/audiotools/core/test_dsp✅.py b/audio/tests/audiotools/core/test_dsp✅.py index b8219c342..9d1c36d6b 100644 --- a/audio/tests/audiotools/core/test_dsp✅.py +++ b/audio/tests/audiotools/core/test_dsp✅.py @@ -3,7 +3,7 @@ import sys import numpy as np import paddle import pytest -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import AudioSignal from audiotools.core.util import sample_from_dist diff --git a/audio/tests/audiotools/core/test_effects✅.py b/audio/tests/audiotools/core/test_effects✅.py index e15622a23..586e25cb2 100644 --- a/audio/tests/audiotools/core/test_effects✅.py +++ b/audio/tests/audiotools/core/test_effects✅.py @@ -3,7 +3,7 @@ import sys import numpy as np import paddle import pytest -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import AudioSignal diff --git a/audio/tests/audiotools/core/test_fftconv✅.py b/audio/tests/audiotools/core/test_fftconv✅.py index 43877cbf2..0fe332258 100644 --- a/audio/tests/audiotools/core/test_fftconv✅.py +++ b/audio/tests/audiotools/core/test_fftconv✅.py @@ -6,7 +6,7 @@ import unittest import paddle import paddle.nn.functional as F -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools.core import fft_conv1d, FFTConv1d TOLERANCE = 1e-4 # as relative delta in percentage diff --git a/audio/tests/audiotools/core/test_grad✅.py b/audio/tests/audiotools/core/test_grad✅.py index 57d4df646..fde4817e3 100644 --- a/audio/tests/audiotools/core/test_grad✅.py +++ b/audio/tests/audiotools/core/test_grad✅.py @@ -4,7 +4,7 @@ from typing import Callable import numpy as np import paddle import pytest -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import AudioSignal diff --git a/audio/tests/audiotools/core/test_highpass✅.py b/audio/tests/audiotools/core/test_highpass✅.py index acea78330..50485b393 100644 --- a/audio/tests/audiotools/core/test_highpass✅.py +++ b/audio/tests/audiotools/core/test_highpass✅.py @@ -6,7 +6,7 @@ import sys import unittest import paddle -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools.core import highpass_filter, highpass_filters diff --git a/audio/tests/audiotools/core/test_loudness✅.py b/audio/tests/audiotools/core/test_loudness✅.py index 308406652..ebfd7cf83 100644 --- a/audio/tests/audiotools/core/test_loudness✅.py +++ b/audio/tests/audiotools/core/test_loudness✅.py @@ -3,7 +3,7 @@ import sys import numpy as np import pyloudnorm import soundfile as sf -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import AudioSignal from audiotools import datasets from audiotools import Meter diff --git a/audio/tests/audiotools/core/test_lowpass✅.py b/audio/tests/audiotools/core/test_lowpass✅.py index 94d612f26..61f56a6dc 100644 --- a/audio/tests/audiotools/core/test_lowpass✅.py +++ b/audio/tests/audiotools/core/test_lowpass✅.py @@ -7,7 +7,7 @@ import unittest import numpy as np import paddle -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools.core import LowPassFilter, LowPassFilters, lowpass_filter, resample_frac diff --git a/audio/tests/audiotools/core/test_util✅.py b/audio/tests/audiotools/core/test_util✅.py index e442a16c0..64702fa2e 100644 --- a/audio/tests/audiotools/core/test_util✅.py +++ b/audio/tests/audiotools/core/test_util✅.py @@ -7,7 +7,7 @@ import numpy as np import paddle import pytest -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import util from audiotools.core.audio_signal import AudioSignal diff --git a/audio/tests/audiotools/data/test_datasets✅.py b/audio/tests/audiotools/data/test_datasets✅.py index 61ca94170..1d03bbfb2 100644 --- a/audio/tests/audiotools/data/test_datasets✅.py +++ b/audio/tests/audiotools/data/test_datasets✅.py @@ -5,7 +5,7 @@ from pathlib import Path import numpy as np import pytest -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") import paddle import audiotools from audiotools.data import transforms as tfm diff --git a/audio/tests/audiotools/data/test_preprocess✅.py b/audio/tests/audiotools/data/test_preprocess✅.py index d283f3712..0049232e1 100644 --- a/audio/tests/audiotools/data/test_preprocess✅.py +++ b/audio/tests/audiotools/data/test_preprocess✅.py @@ -3,7 +3,7 @@ import tempfile from pathlib import Path import paddle -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools.core.util import find_audio from audiotools.core.util import read_sources from audiotools.data import preprocess diff --git a/audio/tests/audiotools/data/test_transforms✅.py b/audio/tests/audiotools/data/test_transforms✅.py index 34d6021c2..aaa656ca5 100644 --- a/audio/tests/audiotools/data/test_transforms✅.py +++ b/audio/tests/audiotools/data/test_transforms✅.py @@ -7,7 +7,7 @@ import numpy as np import paddle import pytest -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") import audiotools from audiotools import AudioSignal from audiotools import util diff --git a/audio/tests/audiotools/ml/test_decorators✅.py b/audio/tests/audiotools/ml/test_decorators✅.py index e7880eea2..806949af7 100644 --- a/audio/tests/audiotools/ml/test_decorators✅.py +++ b/audio/tests/audiotools/ml/test_decorators✅.py @@ -1,6 +1,6 @@ import sys import time -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") import paddle from visualdl import LogWriter diff --git a/audio/tests/audiotools/ml/test_model✅.py b/audio/tests/audiotools/ml/test_model✅.py index 09b34dac4..3facdf364 100644 --- a/audio/tests/audiotools/ml/test_model✅.py +++ b/audio/tests/audiotools/ml/test_model✅.py @@ -3,7 +3,7 @@ import tempfile import paddle from paddle import nn -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import ml from audiotools import util diff --git a/audio/tests/audiotools/test_post✅.py b/audio/tests/audiotools/test_post✅.py index f02f18e83..70c93dab2 100644 --- a/audio/tests/audiotools/test_post✅.py +++ b/audio/tests/audiotools/test_post✅.py @@ -1,7 +1,7 @@ import sys from pathlib import Path -sys.path.append("/home/aistudio/PaddleSpeech/audio") +sys.path.append("../..") from audiotools import AudioSignal from audiotools import post from audiotools import transforms