-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Error in class transforms.Translate #58
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
Comments
@hfutcgncas this just depends on whether you are using row-major or column-major ordering. As explained in the See this guide for a more detailed explanation. |
Thank you very much for the explanation. |
@nikhilaravi I still have a problem here. In the case of using row-major, I suppose the matrix of RotateAxisAngle(a, axis="X") should be like
but in the code of RotateAxisAngle it is write like
Is there something wrong or I got some mistake about the Coordinate Systems? |
@hfutcgncas you're right, thanks for pointing this out. If we assume row-major ordering, a right hand coordinate system and that positive angles result in counter clockwise rotation then we need to transpose the rotation matrix as you mentioned. I will make the fix ASAP. |
@hfutcgncas This fix has now been landed. |
🐛 Error in class pytorch3d.transforms.Translate
I suppose the “translate” part should be in the last column of matrix, not in the last row.
Instructions To Reproduce the Issue:
when I wrote the code like this:
I got
while I suppose the correct response should be
I suppose chang the
mat[:, :3, 3]
tomat[:, 3, :3]
in line 388 and 394 of pytorch3d.transforms would fix it.The text was updated successfully, but these errors were encountered: