未验证 提交 41830097 编写于 作者: L LielinJiang 提交者: GitHub

Fix predictor bug on windows (#210)

* update install docs

* fix windows bug

* fix download when in windows

* fix video2frames bug on windows platform
上级 62ce17fc
......@@ -78,7 +78,7 @@ class DAINPredictor(BasePredictor):
out_path = video2frames(video_path, frame_path_input)
vidname = video_path.split(os.sep)[-1].split('.')[0]
vidname = os.path.basename(video_path).split('.')[0]
frames = sorted(glob.glob(os.path.join(out_path, '*.png')))
......
......@@ -24,7 +24,7 @@ def video2frames(video_path, outpath, **kargs):
return cmd_str
ffmpeg = ['ffmpeg ', ' -y -loglevel ', ' error ']
vid_name = video_path.split(os.sep)[-1].split('.')[0]
vid_name = os.path.basename(video_path).split('.')[0]
out_full_path = os.path.join(outpath, vid_name)
if not os.path.exists(out_full_path):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册