Open mehulmodihb opened 6 years ago
Hi, thank you for your reminder. I implemented DeepWarp just for practicing deep learning framework and for fun, so the code is very ugly. Sorry for that.
Hi Again,
When I tried to run your code. I got following error. can you please help me with it?
Using TensorFlow backend.
Traceback (most recent call last):
File "_call_me_by_php---lasdF8wer2aLsdkfj.py", line 47, in
Hi,
I found you used "FaceLandmarkImg.exe" but how can i use this project on linux or Mac OS?
Hi, I will create a new branch for Linux version, thx.
Hi, I have just uploaded the Linux version. If you have any error about "FaceLandmarkImg", you may checkout the Unix Installation of OpenFace to install the dependencies.
By the way, this code were written in Python3, the errors you got above seems that you were using Python2.7.
Hi,
Thank you for your positive response. I tried the Linux branch with Python 3 but getting following error.
Exception in thread looking_thread: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run self.target(self._args, self._kwargs) File "gaze_manipulation_thread.py", line 93, in look_new_images eyes_array = get_feature_points(img_path) File "gaze_manipulation_thread.py", line 157, in get_feature_points eyes_params = subprocess.check_output(['./openface/bin/FaceLandmarkImg', '-f', img_path, '-gaze'], universal_newlines=True) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 336, in check_output kwargs).stdout File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 403, in run with Popen(popenargs, **kwargs) as process: File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 707, in __init restore_signals, start_new_session) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1333, in _execute_child raise child_exception_type(errno_num, err_msg) PermissionError: [Errno 13] Permission denied
Hi, go to the path with FaceLandmarkImg.
Simply type cd openface/bin
from the root, and then type chmod 777 FaceLandmarkImg
.
I think it will solve the PermissionError.
Also, you can check out the demo on http://140.109.22.211/gaze/.
Make sure to upload the picture with clear face and eye, or it might not be able to detect the location of eyes.
Hi,
I changed permission and I am getting following error now.
OSError: [Errno 8] Exec format error: './openface/bin/FaceLandmarkImg'
Also, Please find attached file which i am using now.
Okay...I think I can replace the FaceLandmarkImg part by other eye detection API. On the other hand, the author of DeepWarp did not release their training image dataset. As the result, it is really difficult to reproduce the performance which showed on the paper. The picture with the eyes on the same horizontal will have the better performance. Something like this http://amsterdam-ftv-blog.com/wp-content/uploads/2013/10/20131024-220300.jpg
Hi, I was trying your code but unfortunately "DeepWarp.py" file is missing. can you please provide me DeepWarp.py?