From 2647b8481a46d3fd1e5550b4a7b9e2855e058121 Mon Sep 17 00:00:00 2001 From: Jem Date: Wed, 7 Aug 2019 17:51:59 +0800 Subject: [PATCH] feat(audio): add preprocess and mfcc encoder for audio --- gnes/preprocessor/audio/audio_vanilla.py | 2 +- gnes/preprocessor/audio/base.py | 1 - gnes/preprocessor/video/ffmpeg.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gnes/preprocessor/audio/audio_vanilla.py b/gnes/preprocessor/audio/audio_vanilla.py index 32ab56da..d40e7ca3 100644 --- a/gnes/preprocessor/audio/audio_vanilla.py +++ b/gnes/preprocessor/audio/audio_vanilla.py @@ -16,7 +16,7 @@ from .base import BaseAudioPreprocessor import numpy as np from ..helper import get_video_length_from_raw, get_audio -from ...proto import gnes_pb2, array2blob +from ...proto import array2blob class AudioVanilla(BaseAudioPreprocessor): diff --git a/gnes/preprocessor/audio/base.py b/gnes/preprocessor/audio/base.py index 701aeb83..c0cb79e4 100644 --- a/gnes/preprocessor/audio/base.py +++ b/gnes/preprocessor/audio/base.py @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from typing import List from ..base import BasePreprocessor from ...proto import gnes_pb2 diff --git a/gnes/preprocessor/video/ffmpeg.py b/gnes/preprocessor/video/ffmpeg.py index e53df27f..8dc7a07d 100644 --- a/gnes/preprocessor/video/ffmpeg.py +++ b/gnes/preprocessor/video/ffmpeg.py @@ -18,7 +18,7 @@ import numpy as np from .base import BaseVideoPreprocessor -from ..helper import get_video_frames, get_audio, phash_descriptor, get_video_length_from_raw +from ..helper import get_video_frames, phash_descriptor from ...proto import gnes_pb2, array2blob