pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

RotateAxisAngle: R is not a valid rotation matrix

Open fmocking opened this issue 1 year ago • 0 comments

If you do not know the root cause of the problem / bug, and wish someone to help you, please post according to this template:

🐛 Bugs / Unexpected behaviors

When using RotateAxisAngle function, I'm getting 'R is not a valid rotation matrix' error on first call. Any subsequent calls does not raise this warning. I'm using the latest version (0.7), I tested this behavior an various python version (3.8, 3.9, 3.10), PyTorch version is: 1.11.0

NOTE: Please look at the existing list of Issues tagged with the label 'bug`. Only open a new issue if this bug has not already been reported. If an issue already exists, please comment there instead..

Instructions To Reproduce the Issue:

from pytorch3d.transforms import RotateAxisAngle, Rotate, random_rotations
import torch
rot = RotateAxisAngle(angle=torch.randn(1, device='cuda')*360, degrees=True, axis='Z', device='cuda')
/python3.8/site-packages/pytorch3d/transforms/transform3d.py:802: UserWarning: R is not a valid rotation matrix
  warnings.warn(msg)

fmocking avatar Oct 15 '22 05:10 fmocking