LipNet icon indicating copy to clipboard operation
LipNet copied to clipboard

Runtime Error during prediction

Open WrathofBhuvan11 opened this issue 6 years ago • 2 comments

Loading data from disk... Traceback (most recent call last): File "/home/...../LipNet/predict.py", line 60, in video, result = predict(sys.argv[1], sys.argv[2]) File "/home/...../LipNet/predict.py", line 27, in predict video.from_video(video_path) File "/home/...../LipNet/lipnet/videos.py", line 174, in from_video self.handle_type(frames) File "/home/...../LipNet/lipnet/videos.py", line 185, in handle_type self.process_frames_face(frames) File "/home/..../LipNet/lipnet/videos.py", line 191, in process_frames_face predictor = dlib.shape_predictor(self.face_predictor_path) RuntimeError: Unable to open /home/...../LipNet/../common/predictors/shape_predictor_68_face_landmarks.dat

WrathofBhuvan11 avatar Dec 13 '18 12:12 WrathofBhuvan11

Put the path value of face_predictor_path = r"PATH/to/shape_predictor_68_face_landmarks.dat" in videos.py. It will work

JaxSulav avatar Mar 12 '19 05:03 JaxSulav

Loading data from disk... Traceback (most recent call last): File "/home/...../LipNet/predict.py", line 60, in video, result = predict(sys.argv[1], sys.argv[2]) File "/home/...../LipNet/predict.py", line 27, in predict video.from_video(video_path) File "/home/...../LipNet/lipnet/videos.py", line 174, in from_video self.handle_type(frames) File "/home/...../LipNet/lipnet/videos.py", line 185, in handle_type self.process_frames_face(frames) File "/home/..../LipNet/lipnet/videos.py", line 191, in process_frames_face predictor = dlib.shape_predictor(self.face_predictor_path) RuntimeError: Unable to open /home/...../LipNet/../common/predictors/shape_predictor_68_face_landmarks.dat

Remove ".." from the path of face predictor variable in predict.py script

chahatagarwal avatar Apr 21 '20 08:04 chahatagarwal