hysts / pytorch_mpiigaze

An unofficial PyTorch implementation of MPIIGaze and MPIIFaceGaze
MIT License
346 stars 85 forks source link

Test error for myself. #52

Closed gdww97 closed 2 years ago

gdww97 commented 2 years ago

Hi, Thank you so much for your work. It is beneficial for us to learn the gaze estimation area. Did you test the error use your own dataset? I mean use yourself. I test myself but the gaze angle or vector error is so big. I do not know the reason why the error is so big. I guess that the face model 68 3D points is the major reason, and I use the standard face model. If I use my own face model, the gaze accuracy will be higher? Thanks!

hysts commented 2 years ago

Hi, @gdww97

Yes, I tested the model with my own face using webcam. The 3D face model could be the reason, but before that, are you sure you calibrated your camera correctly? If the error is very large, you might want to check that first.

gdww97 commented 2 years ago

Yes, I calib my camera first. Next, I will test the results again using my own 3D face model. Thanks!

gdww97 commented 2 years ago

Another problem, the origin of face is set the midpoint of right eye in the paper. However, in code face_model.py, the origin is at the tip of the nose. If the results will be different between the two coordinate system? And if I use my own 3D face model, which coordinate should I use? Thanks!

hysts commented 2 years ago

@gdww97

The center of the eye is computed here and the image normalization is done here using it, so I think you don't have to worry about it.

gdww97 commented 2 years ago

OK, many thanks!