mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 06:40:35 +08:00
Deprecate so3_exponential_map
Summary: Deprecate the `so3_exponential_map()` function in favor of its alias `so3_exp_map()`: this aligns with the naming of `so3_log_map()` and the recently introduced `se3_exp_map()` / `se3_log_map()` pair. Reviewed By: bottler Differential Revision: D29329966 fbshipit-source-id: b6f60b9e86b2995f70b1fbeb16f9feea05c55de9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f593bfd3c2
commit
5284de6e97
@@ -29,7 +29,7 @@ from pytorch3d.renderer import (
|
||||
)
|
||||
from pytorch3d.renderer.cameras import get_world_to_view_transform
|
||||
from pytorch3d.transforms import Transform3d
|
||||
from pytorch3d.transforms.so3 import so3_exponential_map
|
||||
from pytorch3d.transforms.so3 import so3_exp_map
|
||||
from torch.utils.data import DataLoader
|
||||
|
||||
|
||||
@@ -316,7 +316,7 @@ class TestR2N2(TestCaseMixin, unittest.TestCase):
|
||||
"""
|
||||
# Test get_world_to_view_transform.
|
||||
T = torch.randn(10, 3)
|
||||
R = so3_exponential_map(torch.randn(10, 3) * 3.0)
|
||||
R = so3_exp_map(torch.randn(10, 3) * 3.0)
|
||||
RT = get_world_to_view_transform(R=R, T=T)
|
||||
cam = BlenderCamera(R=R, T=T)
|
||||
RT_class = cam.get_world_to_view_transform()
|
||||
|
||||
Reference in New Issue
Block a user