From 979595c5fbc93937614c668b96b93e72b2720ebe Mon Sep 17 00:00:00 2001 From: YaoFANGUK Date: Tue, 26 Dec 2023 19:28:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 91011d6..843806a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -671,6 +671,7 @@ class SubtitleRemover: if current_frame_index not in start_end_map.keys(): self.video_writer.write(frame) print(f'write frame: {current_frame_index}') + self.update_progress(tbar, increment=1) if self.gui_mode: self.preview_frame = cv2.hconcat([frame, frame]) # 如果是区间开始,则找到尾巴 @@ -709,7 +710,6 @@ class SubtitleRemover: if self.gui_mode: self.preview_frame = cv2.hconcat([batch[i], inpainted_frame]) self.update_progress(tbar, increment=len(batch)) - self.update_progress(tbar, increment=len(batch)) def lama_mode(self, sub_list, tbar): print('use lama mode')