提交 4aaa8eff 编写于 作者: K KP

Refactor paddleaudio to paddlespeech.audio

上级 bf056c01
...@@ -16,8 +16,8 @@ import os ...@@ -16,8 +16,8 @@ import os
from typing import List from typing import List
from typing import Tuple from typing import Tuple
from ..utils import DATA_HOME
from ..utils.download import download_and_decompress from ..utils.download import download_and_decompress
from ..utils.env import DATA_HOME
from .dataset import AudioClassificationDataset from .dataset import AudioClassificationDataset
__all__ = ['ESC50'] __all__ = ['ESC50']
......
...@@ -17,8 +17,8 @@ import random ...@@ -17,8 +17,8 @@ import random
from typing import List from typing import List
from typing import Tuple from typing import Tuple
from ..utils import DATA_HOME
from ..utils.download import download_and_decompress from ..utils.download import download_and_decompress
from ..utils.env import DATA_HOME
from .dataset import AudioClassificationDataset from .dataset import AudioClassificationDataset
__all__ = ['GTZAN'] __all__ = ['GTZAN']
......
...@@ -17,8 +17,8 @@ import random ...@@ -17,8 +17,8 @@ import random
from typing import List from typing import List
from typing import Tuple from typing import Tuple
from ..utils import DATA_HOME
from ..utils.download import download_and_decompress from ..utils.download import download_and_decompress
from ..utils.env import DATA_HOME
from .dataset import AudioClassificationDataset from .dataset import AudioClassificationDataset
__all__ = ['TESS'] __all__ = ['TESS']
......
...@@ -16,8 +16,8 @@ import os ...@@ -16,8 +16,8 @@ import os
from typing import List from typing import List
from typing import Tuple from typing import Tuple
from ..utils import DATA_HOME
from ..utils.download import download_and_decompress from ..utils.download import download_and_decompress
from ..utils.env import DATA_HOME
from .dataset import AudioClassificationDataset from .dataset import AudioClassificationDataset
__all__ = ['UrbanSound8K'] __all__ = ['UrbanSound8K']
......
...@@ -21,8 +21,6 @@ from typing import Union ...@@ -21,8 +21,6 @@ from typing import Union
import numpy as np import numpy as np
import paddle import paddle
import yaml import yaml
from paddleaudio import load
from paddleaudio.features import LogMelSpectrogram
from ..executor import BaseExecutor from ..executor import BaseExecutor
from ..log import logger from ..log import logger
......
...@@ -22,8 +22,6 @@ from typing import Union ...@@ -22,8 +22,6 @@ from typing import Union
import paddle import paddle
import soundfile import soundfile
from paddleaudio.backends import load as load_audio
from paddleaudio.compliance.librosa import melspectrogram
from yacs.config import CfgNode from yacs.config import CfgNode
from ..executor import BaseExecutor from ..executor import BaseExecutor
......
...@@ -16,8 +16,8 @@ import os ...@@ -16,8 +16,8 @@ import os
import paddle.nn as nn import paddle.nn as nn
import paddle.nn.functional as F import paddle.nn.functional as F
from paddlespeech.audio.utils import MODEL_HOME
from paddlespeech.audio.utils.download import load_state_dict_from_url from paddlespeech.audio.utils.download import load_state_dict_from_url
from paddlespeech.audio.utils.env import MODEL_HOME
__all__ = ['CNN14', 'CNN10', 'CNN6', 'cnn14', 'cnn10', 'cnn6'] __all__ = ['CNN14', 'CNN10', 'CNN6', 'cnn14', 'cnn10', 'cnn6']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册