Skip to content
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

Question about the poses predicted by the posenet #153

Closed
AyonRRahman opened this issue Oct 17, 2023 · 2 comments
Closed

Question about the poses predicted by the posenet #153

AyonRRahman opened this issue Oct 17, 2023 · 2 comments

Comments

@AyonRRahman
Copy link

I have a confusion. What are the poses we are getting. Are these to go from the reference image frame to target image frame. So what i mean is,
lets say, we got the T=[R, t] from the one of the predictions. if I multiply a 3d point x with it like , Rx+t. Are going from the reference image frame to the target image frame? or the other way from target image frame to reference image frame.
Thank you.

@ClementPinard
Copy link
Owner

hi, it's the other way around, as it can be seen in the code : https://github.com/ClementPinard/SfmLearner-Pytorch/blob/master/inverse_warp.py#L183

if we have a point in the target frame coordinate system, we can get its coordinates in the reference frame system and thus know where it would be projected on the screen (and thus know its color)

so it's not pose per se, but rather the inverse pose.

If you are only interested in training depth, it does not matter, but if you are interested in odometry as well, then you will need to invert the transformation vectors, see how it's done in the evaluation : https://github.com/ClementPinard/SfmLearner-Pytorch/blob/master/test_pose.py#L75

@AyonRRahman
Copy link
Author

Thank you. Understood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants