From 8e6dc4c648e592cdb2e5dcb7e2d1cd0a890ac0df Mon Sep 17 00:00:00 2001 From: Larry Yan Date: Mon, 5 Aug 2019 12:43:59 +0800 Subject: [PATCH] fix(encoder): add func for preprocessor --- gnes/preprocessor/helper.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gnes/preprocessor/helper.py b/gnes/preprocessor/helper.py index d2008fc0..7cb33af6 100644 --- a/gnes/preprocessor/helper.py +++ b/gnes/preprocessor/helper.py @@ -44,7 +44,6 @@ def get_video_length(video_path): def split_mp4_random(video_path, avg_length, max_clip_second=10): import random - l = get_video_length(video_path) s = [] num_part = max(int(l / avg_length), 2)