From c582b19115189aa41fc755dd670b973267be67ac Mon Sep 17 00:00:00 2001 From: "james.wjg" Date: Thu, 20 Oct 2022 21:13:19 +0800 Subject: [PATCH] [to #42322933]cv/video_summarization fix a code bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复一行错误代码 Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10477534 * fix a code bug --- modelscope/models/cv/video_summarization/summarizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscope/models/cv/video_summarization/summarizer.py b/modelscope/models/cv/video_summarization/summarizer.py index 75251989..c9987670 100644 --- a/modelscope/models/cv/video_summarization/summarizer.py +++ b/modelscope/models/cv/video_summarization/summarizer.py @@ -161,7 +161,7 @@ def summary_format(summary, fps): is_summary_frame = False if is_summary_frame and summary[-1] == 1: - end_frame = len(frame_idxes) - 1 + end_frame = len(summary) - 1 frames_list.append([start_frame, end_frame]) output = []