New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gazeto3d #4
Comments
It seems that the size of gaze predictions is wrong, could you please check the above tensor "gaze" while testing? |
gazes= tensor([[ 8.2086e-02, -2.9102e-01], |
gts= tensor([[ 126.], |
It is correct the size of "gazes" is like what you've shown, but the labels are obviously wrong. I think you might read the wrong part of your mpii gaze label, probably editing your mpii label file or the reader.py, and making sure they suit well would help. |
how to get picture of gaze estimation in test? |
If you have any problems in preparing a dataset, please contact the authors of some common papers such as ETH, MPII, and Gaze360. By the way, the pre-processing method (normalization) is illustrated in "MPIIGaze: Real-World Dataset and Deep Appearance-Based Gaze Estimation". If you have no idea how to read images from your disks, please refer to the reader.py#L74, you can also use cv2.imshow during testing for visulization. |
thanks |
(pytorch3d) C:\Users\Admin\Desktop\GAZE\PnP-GA-main>python test.py --i -1 --p 0 --savepath path/to/save --target mpii
Test Set: cross-mpii
Read data
[Read Data]: Total num: 37652
Model building
Test 1
Traceback (most recent call last):
File "C:\Users\Admin\Desktop\GAZE\PnP-GA-main\test.py", line 118, in
accs += angular(gaze, gts.cpu().numpy()[k])
File "C:\Users\Admin\Desktop\GAZE\PnP-GA-main\test.py", line 31, in angular
label = gazeto3d(label)
File "C:\Users\Admin\Desktop\GAZE\PnP-GA-main\test.py", line 18, in gazeto3d
gaze_gt[0] = -np.cos(gaze[1]) * np.sin(gaze[0])
IndexError: index 1 is out of bounds for axis 0 with size 1
The text was updated successfully, but these errors were encountered: