Open sukun1045 opened 3 years ago
length = 10 # hyper-parameters.
origin = (x, y) # e.g. face center.
gaze = gaze/np.linalg.norm(gaze) * length cv2.line(face_img, origin, (x+gaze[0], y+gaze[1])).
How to convert 2D gaze into 3D gaze vector?
- You can check our code "gtools.py".
2. You could follow our data pre-processing step. You can also directly crop face images and resize them to (224, 224), this is a simple and fast method for test.
Any problem please contact me with email. I usually do not check the issues.
Hi, I see from your question that you use the code on your own images, but the reader.py file only gives some methods for public data sets. Can you give me some advice on what I should do if I want to use this code on my own data set? Or how do you process the data?
Hi, thanks for the nice and clean repo. I have two questions here.
1. I am trying to use your code on my own images for other purposes. Since there is no ground truth available, I am wondering whether you could provide the code to draw the red line as you show in the paper figure so that I could approximately evaluate the performance.
2. For my own images, what is the preprocessing in addition to resizing the face image to 224 x 224?