From ee9972a0d38f5d00f5ca062fc34745e329896654 Mon Sep 17 00:00:00 2001 From: KP <109694228@qq.com> Date: Thu, 28 Oct 2021 14:31:08 +0800 Subject: [PATCH] Rename to paddleaudio. --- {PaddleAudio => paddleaudio}/.gitignore | 0 {PaddleAudio => paddleaudio}/.pre-commit-config.yaml | 0 {PaddleAudio => paddleaudio}/.style.yapf | 0 {PaddleAudio => paddleaudio}/LICENSE | 0 {PaddleAudio => paddleaudio}/README.md | 0 {PaddleAudio => paddleaudio}/examples/panns/README.md | 0 .../examples/panns/assets/audioset_labels.txt | 0 {PaddleAudio => paddleaudio}/examples/panns/audio_tag.py | 1 + {PaddleAudio => paddleaudio}/examples/panns/parse_result.py | 1 + .../examples/sound_classification/README.md | 0 .../examples/sound_classification/deploy/python/predict.py | 3 ++- .../examples/sound_classification/export_model.py | 1 + .../examples/sound_classification/model.py | 0 .../examples/sound_classification/predict.py | 1 + .../examples/sound_classification/train.py | 1 + {PaddleAudio => paddleaudio}/paddleaudio/__init__.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/backends/__init__.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/backends/audio.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/__init__.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/aishell.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/dataset.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/dcase.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/esc50.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/gtzan.py | 0 .../paddleaudio/datasets/librispeech.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/ravdess.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/datasets/tess.py | 0 .../paddleaudio/datasets/urban_sound.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/features/__init__.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/features/augment.py | 1 + {PaddleAudio => paddleaudio}/paddleaudio/features/core.py | 3 ++- {PaddleAudio => paddleaudio}/paddleaudio/models/__init__.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/models/panns.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/utils/__init__.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/utils/download.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/utils/env.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/utils/error.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/utils/log.py | 0 {PaddleAudio => paddleaudio}/paddleaudio/utils/time.py | 0 {PaddleAudio => paddleaudio}/requirements.txt | 0 {PaddleAudio => paddleaudio}/setup.py | 0 {PaddleAudio => paddleaudio}/test/README.md | 0 {PaddleAudio => paddleaudio}/test/unit_test/test_backend.py | 3 ++- {PaddleAudio => paddleaudio}/test/unit_test/test_features.py | 3 ++- 44 files changed, 14 insertions(+), 4 deletions(-) rename {PaddleAudio => paddleaudio}/.gitignore (100%) rename {PaddleAudio => paddleaudio}/.pre-commit-config.yaml (100%) rename {PaddleAudio => paddleaudio}/.style.yapf (100%) rename {PaddleAudio => paddleaudio}/LICENSE (100%) rename {PaddleAudio => paddleaudio}/README.md (100%) rename {PaddleAudio => paddleaudio}/examples/panns/README.md (100%) rename {PaddleAudio => paddleaudio}/examples/panns/assets/audioset_labels.txt (100%) rename {PaddleAudio => paddleaudio}/examples/panns/audio_tag.py (99%) rename {PaddleAudio => paddleaudio}/examples/panns/parse_result.py (99%) rename {PaddleAudio => paddleaudio}/examples/sound_classification/README.md (100%) rename {PaddleAudio => paddleaudio}/examples/sound_classification/deploy/python/predict.py (99%) rename {PaddleAudio => paddleaudio}/examples/sound_classification/export_model.py (99%) rename {PaddleAudio => paddleaudio}/examples/sound_classification/model.py (100%) rename {PaddleAudio => paddleaudio}/examples/sound_classification/predict.py (99%) rename {PaddleAudio => paddleaudio}/examples/sound_classification/train.py (99%) rename {PaddleAudio => paddleaudio}/paddleaudio/__init__.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/backends/__init__.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/backends/audio.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/__init__.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/aishell.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/dataset.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/dcase.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/esc50.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/gtzan.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/librispeech.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/ravdess.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/tess.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/datasets/urban_sound.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/features/__init__.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/features/augment.py (99%) rename {PaddleAudio => paddleaudio}/paddleaudio/features/core.py (99%) rename {PaddleAudio => paddleaudio}/paddleaudio/models/__init__.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/models/panns.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/utils/__init__.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/utils/download.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/utils/env.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/utils/error.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/utils/log.py (100%) rename {PaddleAudio => paddleaudio}/paddleaudio/utils/time.py (100%) rename {PaddleAudio => paddleaudio}/requirements.txt (100%) rename {PaddleAudio => paddleaudio}/setup.py (100%) rename {PaddleAudio => paddleaudio}/test/README.md (100%) rename {PaddleAudio => paddleaudio}/test/unit_test/test_backend.py (99%) rename {PaddleAudio => paddleaudio}/test/unit_test/test_features.py (99%) diff --git a/PaddleAudio/.gitignore b/paddleaudio/.gitignore similarity index 100% rename from PaddleAudio/.gitignore rename to paddleaudio/.gitignore diff --git a/PaddleAudio/.pre-commit-config.yaml b/paddleaudio/.pre-commit-config.yaml similarity index 100% rename from PaddleAudio/.pre-commit-config.yaml rename to paddleaudio/.pre-commit-config.yaml diff --git a/PaddleAudio/.style.yapf b/paddleaudio/.style.yapf similarity index 100% rename from PaddleAudio/.style.yapf rename to paddleaudio/.style.yapf diff --git a/PaddleAudio/LICENSE b/paddleaudio/LICENSE similarity index 100% rename from PaddleAudio/LICENSE rename to paddleaudio/LICENSE diff --git a/PaddleAudio/README.md b/paddleaudio/README.md similarity index 100% rename from PaddleAudio/README.md rename to paddleaudio/README.md diff --git a/PaddleAudio/examples/panns/README.md b/paddleaudio/examples/panns/README.md similarity index 100% rename from PaddleAudio/examples/panns/README.md rename to paddleaudio/examples/panns/README.md diff --git a/PaddleAudio/examples/panns/assets/audioset_labels.txt b/paddleaudio/examples/panns/assets/audioset_labels.txt similarity index 100% rename from PaddleAudio/examples/panns/assets/audioset_labels.txt rename to paddleaudio/examples/panns/assets/audioset_labels.txt diff --git a/PaddleAudio/examples/panns/audio_tag.py b/paddleaudio/examples/panns/audio_tag.py similarity index 99% rename from PaddleAudio/examples/panns/audio_tag.py rename to paddleaudio/examples/panns/audio_tag.py index 6f08cd1c..eea14bba 100644 --- a/PaddleAudio/examples/panns/audio_tag.py +++ b/paddleaudio/examples/panns/audio_tag.py @@ -17,6 +17,7 @@ from typing import List import numpy as np import paddle + from paddleaudio.backends import load as load_audio from paddleaudio.features import melspectrogram from paddleaudio.models.panns import cnn14 diff --git a/PaddleAudio/examples/panns/parse_result.py b/paddleaudio/examples/panns/parse_result.py similarity index 99% rename from PaddleAudio/examples/panns/parse_result.py rename to paddleaudio/examples/panns/parse_result.py index 056c573f..667489dd 100644 --- a/PaddleAudio/examples/panns/parse_result.py +++ b/paddleaudio/examples/panns/parse_result.py @@ -17,6 +17,7 @@ import os from typing import Dict import numpy as np + from paddleaudio.utils import logger # yapf: disable diff --git a/PaddleAudio/examples/sound_classification/README.md b/paddleaudio/examples/sound_classification/README.md similarity index 100% rename from PaddleAudio/examples/sound_classification/README.md rename to paddleaudio/examples/sound_classification/README.md diff --git a/PaddleAudio/examples/sound_classification/deploy/python/predict.py b/paddleaudio/examples/sound_classification/deploy/python/predict.py similarity index 99% rename from PaddleAudio/examples/sound_classification/deploy/python/predict.py rename to paddleaudio/examples/sound_classification/deploy/python/predict.py index a99b8980..f41307c8 100644 --- a/PaddleAudio/examples/sound_classification/deploy/python/predict.py +++ b/paddleaudio/examples/sound_classification/deploy/python/predict.py @@ -16,10 +16,11 @@ import os import numpy as np from paddle import inference +from scipy.special import softmax + from paddleaudio.backends import load as load_audio from paddleaudio.datasets import ESC50 from paddleaudio.features import melspectrogram -from scipy.special import softmax # yapf: disable parser = argparse.ArgumentParser() diff --git a/PaddleAudio/examples/sound_classification/export_model.py b/paddleaudio/examples/sound_classification/export_model.py similarity index 99% rename from PaddleAudio/examples/sound_classification/export_model.py rename to paddleaudio/examples/sound_classification/export_model.py index 1be7b27a..f36ae305 100644 --- a/PaddleAudio/examples/sound_classification/export_model.py +++ b/paddleaudio/examples/sound_classification/export_model.py @@ -16,6 +16,7 @@ import os import paddle from model import SoundClassifier + from paddleaudio.datasets import ESC50 from paddleaudio.models.panns import cnn14 diff --git a/PaddleAudio/examples/sound_classification/model.py b/paddleaudio/examples/sound_classification/model.py similarity index 100% rename from PaddleAudio/examples/sound_classification/model.py rename to paddleaudio/examples/sound_classification/model.py diff --git a/PaddleAudio/examples/sound_classification/predict.py b/paddleaudio/examples/sound_classification/predict.py similarity index 99% rename from PaddleAudio/examples/sound_classification/predict.py rename to paddleaudio/examples/sound_classification/predict.py index 30d141cd..af15e804 100644 --- a/PaddleAudio/examples/sound_classification/predict.py +++ b/paddleaudio/examples/sound_classification/predict.py @@ -17,6 +17,7 @@ import numpy as np import paddle import paddle.nn.functional as F from model import SoundClassifier + from paddleaudio.backends import load as load_audio from paddleaudio.datasets import ESC50 from paddleaudio.features import melspectrogram diff --git a/PaddleAudio/examples/sound_classification/train.py b/paddleaudio/examples/sound_classification/train.py similarity index 99% rename from PaddleAudio/examples/sound_classification/train.py rename to paddleaudio/examples/sound_classification/train.py index e3b5e2ae..bd10bc9f 100644 --- a/PaddleAudio/examples/sound_classification/train.py +++ b/paddleaudio/examples/sound_classification/train.py @@ -16,6 +16,7 @@ import os import paddle from model import SoundClassifier + from paddleaudio.datasets import ESC50 from paddleaudio.models.panns import cnn14 from paddleaudio.utils import logger diff --git a/PaddleAudio/paddleaudio/__init__.py b/paddleaudio/paddleaudio/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/__init__.py rename to paddleaudio/paddleaudio/__init__.py diff --git a/PaddleAudio/paddleaudio/backends/__init__.py b/paddleaudio/paddleaudio/backends/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/backends/__init__.py rename to paddleaudio/paddleaudio/backends/__init__.py diff --git a/PaddleAudio/paddleaudio/backends/audio.py b/paddleaudio/paddleaudio/backends/audio.py similarity index 100% rename from PaddleAudio/paddleaudio/backends/audio.py rename to paddleaudio/paddleaudio/backends/audio.py diff --git a/PaddleAudio/paddleaudio/datasets/__init__.py b/paddleaudio/paddleaudio/datasets/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/__init__.py rename to paddleaudio/paddleaudio/datasets/__init__.py diff --git a/PaddleAudio/paddleaudio/datasets/aishell.py b/paddleaudio/paddleaudio/datasets/aishell.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/aishell.py rename to paddleaudio/paddleaudio/datasets/aishell.py diff --git a/PaddleAudio/paddleaudio/datasets/dataset.py b/paddleaudio/paddleaudio/datasets/dataset.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/dataset.py rename to paddleaudio/paddleaudio/datasets/dataset.py diff --git a/PaddleAudio/paddleaudio/datasets/dcase.py b/paddleaudio/paddleaudio/datasets/dcase.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/dcase.py rename to paddleaudio/paddleaudio/datasets/dcase.py diff --git a/PaddleAudio/paddleaudio/datasets/esc50.py b/paddleaudio/paddleaudio/datasets/esc50.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/esc50.py rename to paddleaudio/paddleaudio/datasets/esc50.py diff --git a/PaddleAudio/paddleaudio/datasets/gtzan.py b/paddleaudio/paddleaudio/datasets/gtzan.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/gtzan.py rename to paddleaudio/paddleaudio/datasets/gtzan.py diff --git a/PaddleAudio/paddleaudio/datasets/librispeech.py b/paddleaudio/paddleaudio/datasets/librispeech.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/librispeech.py rename to paddleaudio/paddleaudio/datasets/librispeech.py diff --git a/PaddleAudio/paddleaudio/datasets/ravdess.py b/paddleaudio/paddleaudio/datasets/ravdess.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/ravdess.py rename to paddleaudio/paddleaudio/datasets/ravdess.py diff --git a/PaddleAudio/paddleaudio/datasets/tess.py b/paddleaudio/paddleaudio/datasets/tess.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/tess.py rename to paddleaudio/paddleaudio/datasets/tess.py diff --git a/PaddleAudio/paddleaudio/datasets/urban_sound.py b/paddleaudio/paddleaudio/datasets/urban_sound.py similarity index 100% rename from PaddleAudio/paddleaudio/datasets/urban_sound.py rename to paddleaudio/paddleaudio/datasets/urban_sound.py diff --git a/PaddleAudio/paddleaudio/features/__init__.py b/paddleaudio/paddleaudio/features/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/features/__init__.py rename to paddleaudio/paddleaudio/features/__init__.py diff --git a/PaddleAudio/paddleaudio/features/augment.py b/paddleaudio/paddleaudio/features/augment.py similarity index 99% rename from PaddleAudio/paddleaudio/features/augment.py rename to paddleaudio/paddleaudio/features/augment.py index 7556bb3c..653e1807 100644 --- a/PaddleAudio/paddleaudio/features/augment.py +++ b/paddleaudio/paddleaudio/features/augment.py @@ -15,6 +15,7 @@ from typing import List import numpy as np from numpy import ndarray as array + from paddleaudio.backends import depth_convert from paddleaudio.utils import ParameterError diff --git a/PaddleAudio/paddleaudio/features/core.py b/paddleaudio/paddleaudio/features/core.py similarity index 99% rename from PaddleAudio/paddleaudio/features/core.py rename to paddleaudio/paddleaudio/features/core.py index f53f60f3..7b764797 100644 --- a/PaddleAudio/paddleaudio/features/core.py +++ b/paddleaudio/paddleaudio/features/core.py @@ -20,9 +20,10 @@ import numpy as np import scipy from numpy import ndarray as array from numpy.lib.stride_tricks import as_strided -from paddleaudio.utils import ParameterError from scipy.signal import get_window +from paddleaudio.utils import ParameterError + __all__ = [ 'stft', 'mfcc', diff --git a/PaddleAudio/paddleaudio/models/__init__.py b/paddleaudio/paddleaudio/models/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/models/__init__.py rename to paddleaudio/paddleaudio/models/__init__.py diff --git a/PaddleAudio/paddleaudio/models/panns.py b/paddleaudio/paddleaudio/models/panns.py similarity index 100% rename from PaddleAudio/paddleaudio/models/panns.py rename to paddleaudio/paddleaudio/models/panns.py diff --git a/PaddleAudio/paddleaudio/utils/__init__.py b/paddleaudio/paddleaudio/utils/__init__.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/__init__.py rename to paddleaudio/paddleaudio/utils/__init__.py diff --git a/PaddleAudio/paddleaudio/utils/download.py b/paddleaudio/paddleaudio/utils/download.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/download.py rename to paddleaudio/paddleaudio/utils/download.py diff --git a/PaddleAudio/paddleaudio/utils/env.py b/paddleaudio/paddleaudio/utils/env.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/env.py rename to paddleaudio/paddleaudio/utils/env.py diff --git a/PaddleAudio/paddleaudio/utils/error.py b/paddleaudio/paddleaudio/utils/error.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/error.py rename to paddleaudio/paddleaudio/utils/error.py diff --git a/PaddleAudio/paddleaudio/utils/log.py b/paddleaudio/paddleaudio/utils/log.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/log.py rename to paddleaudio/paddleaudio/utils/log.py diff --git a/PaddleAudio/paddleaudio/utils/time.py b/paddleaudio/paddleaudio/utils/time.py similarity index 100% rename from PaddleAudio/paddleaudio/utils/time.py rename to paddleaudio/paddleaudio/utils/time.py diff --git a/PaddleAudio/requirements.txt b/paddleaudio/requirements.txt similarity index 100% rename from PaddleAudio/requirements.txt rename to paddleaudio/requirements.txt diff --git a/PaddleAudio/setup.py b/paddleaudio/setup.py similarity index 100% rename from PaddleAudio/setup.py rename to paddleaudio/setup.py diff --git a/PaddleAudio/test/README.md b/paddleaudio/test/README.md similarity index 100% rename from PaddleAudio/test/README.md rename to paddleaudio/test/README.md diff --git a/PaddleAudio/test/unit_test/test_backend.py b/paddleaudio/test/unit_test/test_backend.py similarity index 99% rename from PaddleAudio/test/unit_test/test_backend.py rename to paddleaudio/test/unit_test/test_backend.py index 1bf1504e..a0d5d2db 100644 --- a/PaddleAudio/test/unit_test/test_backend.py +++ b/paddleaudio/test/unit_test/test_backend.py @@ -13,9 +13,10 @@ # limitations under the License. import librosa import numpy as np -import paddleaudio import pytest +import paddleaudio + TEST_FILE = './test/data/test_audio.wav' diff --git a/PaddleAudio/test/unit_test/test_features.py b/paddleaudio/test/unit_test/test_features.py similarity index 99% rename from PaddleAudio/test/unit_test/test_features.py rename to paddleaudio/test/unit_test/test_features.py index 9e4e29cb..4d68c1b5 100644 --- a/PaddleAudio/test/unit_test/test_features.py +++ b/paddleaudio/test/unit_test/test_features.py @@ -13,9 +13,10 @@ # limitations under the License. import librosa import numpy as np -import paddleaudio as pa import pytest +import paddleaudio as pa + @pytest.mark.filterwarnings("ignore::DeprecationWarning") def load_audio():