-
Notifications
You must be signed in to change notification settings - Fork 12
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
方向向量计算问题 #14
Comments
Hi @Eurususu, thank you for pointing that out. I believe it's a case of variable name mismatches, but it does not impact the overall model functionality. Below are the results I obtained when performing inference on the image above using the ResNet34 model from this repository*: The naming mismatch issue likely originates from the dataset. While parsing it, I couldn't find explicit details specifying whether the labels followed a pitch-then-yaw order. I opted for pitch and yaw, and the rest of the code was adjusted accordingly. Let me know if you have any questions or need further improvements for the code or its explanations! *yellow line shows direction of gaze |
你好,根据现在提供的方向向量计算, utils/helpers.py中
我发现并不准确。例子如下:
![图片](https://private-user-images.githubusercontent.com/62414599/399222488-99a1c1ab-2ca5-4812-a680-c8ca40bfde19.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjAzMzEsIm5iZiI6MTczOTIyMDAzMSwicGF0aCI6Ii82MjQxNDU5OS8zOTkyMjI0ODgtOTlhMWMxYWItMmNhNS00ODEyLWE2ODAtYzhjYTQwYmZkZTE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDIwNDAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiYTkwM2QzOTZiMWNlODBkYmMyOGZiNGNhN2UzZGFmMmQ0NTFjZmI1ZWYwNzQ3MzgzMTU5ZDMzMDBiNDQ5OWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MxKpKhWCdf8P-YvNik8tdMImp3M2bnb3psOKBZJVNbI)
根据这这里提供的俯仰角和偏航角,如果通过draw_gaze得到的结果如下:
可以发现视线方向明显不对。
如果将pitch和yaw位置互换得到的结果:
可以看到结果和预设的差不多。
考虑到俯仰角和偏航角确实分别是-58.69和-15.04,那么可能就是计算公式出错,经过修改为如下
这样输入正确的角度也能得到合理的可视化效果。
望作者审视一下这个问题,如果确实这个是有问题的,那么模型推理过程是否就有问题了?
The text was updated successfully, but these errors were encountered: