Skip to content

Commit

Permalink
Fix predictor bug on windows (PaddlePaddle#210)
Browse files Browse the repository at this point in the history
* update install docs

* fix windows bug

* fix download when in windows

* fix video2frames bug on windows platform
  • Loading branch information
LielinJiang authored Mar 4, 2021
1 parent 62ce17f commit 4183009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ppgan/apps/dain_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def run(self, video_path):

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')))

Expand Down
2 changes: 1 addition & 1 deletion ppgan/utils/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _dict2str(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):
Expand Down

0 comments on commit 4183009

Please sign in to comment.