From 2705c287ec0bab49c8da06732851d22fcb21bac9 Mon Sep 17 00:00:00 2001 From: felix Date: Fri, 11 Oct 2019 20:22:08 +0800 Subject: [PATCH] fix(video-decoder): none chunk spliter --- gnes/preprocessor/video/video_decoder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnes/preprocessor/video/video_decoder.py b/gnes/preprocessor/video/video_decoder.py index e20a8a60..bf734bcf 100644 --- a/gnes/preprocessor/video/video_decoder.py +++ b/gnes/preprocessor/video/video_decoder.py @@ -60,6 +60,8 @@ def apply(self, doc: 'gnes_pb2.Document') -> None: c.blob.CopyFrom(array2blob(frame)) c.offset = i c.weight = 1.0 + elif self.chunk_spliter == 'none': + pass elif self.chunk_spliter == 'shot': raise NotImplementedError else: