hysts / pytorch_mpiigaze

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

Head pose normalization #39

Closed rafikg closed 3 years ago

rafikg commented 3 years ago

Hi @hysts, Why the head pose normalization is applied only during test. I did not seeany call for HeadPoseNormalizer anywhere in the training ?

hysts commented 3 years ago

Hi, @rafikg

That's because we are using the normalized images contained in the dataset during training.

rafikg commented 3 years ago

@hysts Yes, indeed. Thanks

rafikg commented 3 years ago

@hysts I tried to play the config.gaze_estimator.normalized_camera_distance. The only vlaue that works is 1.0. Is the value that you used to normalize data for training?

hysts commented 3 years ago

@rafikg

The parameters for MPIIFaceGaze are from this repo. I'm not the author of the MPIIGaze/MPIIFaceGaze paper, but the repo seems to be created by the authors, so I assume those are the values used to normalize the training data. FYI, the parameters for MPIIGaze are written in section 4.2 of the MPIIGaze paper.

See also #34