datitran / face2face-demo

pix2pix demo that learns from facial landmarks and translates this into a face
https://medium.com/@datitran/face2face-a-pix2pix-demo-that-mimics-the-facial-expression-of-the-german-chancellor-b6771d65bf66
MIT License
1.44k stars 423 forks source link

compilation errors #12

Open noob8 opened 6 years ago

noob8 commented 6 years ago

While trying to train i get the following error: python face2face-demo/generate_train_data.py --file angela_merkel_speech.mp4 --num 400 --landmark-model shape_predictor_68_face_landmarks.dat

Traceback (most recent call last): File "face2face-demo/generate_train_data.py", line 96, in predictor = dlib.shape_predictor(args.face_landmark_shape_file) RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat

So i skipped training and used your validated model and got the following error: python face2face-demo/reduce_model.py --model-input Desktop/combined/val --model-output Desktop/combined 2018-01-08 13:50:50.597204: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA Traceback (most recent call last): File "face2face-demo/reduce_model.py", line 215, in saver.restore(sess, checkpoint) File "/home/oem/.virtualenvs/facecourse-py3/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1662, in restore raise ValueError("Can't load save_path when it is None.") ValueError: Can't load save_path when it is None.

how can i do?

noob8 commented 6 years ago

so i downloaded a shape_predictor_68_face_landmarks.dat file and added the path location to the command for training. But now i get this error instead? GStreamer: Error opening bin: Unrecoverable syntax error while parsing pipeline angela_merkel_speech.mp4 [INFO] elapsed time (total): 0.01 [INFO] approx. FPS: 0.00

downloaded dat file from Akshay: https://github.com/AKSHAYUBHAT/TensorFace/blob/master/openface/models/dlib/shape_predictor_68_face_landmarks.dat

new code with file location: python face2face-demo/generate_train_data.py --file angela_merkel_speech.mp4 --num 400 --landmark-model Desktop/combined/shape_predictor_68_face_landmarks.dat

Willianflower commented 5 years ago

I encountered the same problem, have you found way to solve it ?