Explorar o código

线程数改为1

zhangyong hai 9 meses
pai
achega
2c4f1e0276
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      video_rewriting/video_prep.py

+ 1 - 1
video_rewriting/video_prep.py

@@ -321,7 +321,7 @@ class getVideo:
                     cls.remove_files(video_path_url)
                     Common.logger("warning").warning(f"{name}的{task_mark}任务处理失败:{e}\n")
 
-        batch_size = 2
+        batch_size = 1
         with concurrent.futures.ThreadPoolExecutor(max_workers=batch_size) as executor:
             index = 0
             while index < len(task_data):