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
@@ -15,7 +15,7 @@ from pytorch3d.ops.sample_points_from_meshes import sample_points_from_meshes
|
||||
from pytorch3d.structures.meshes import Meshes
|
||||
from pytorch3d.structures.pointclouds import Pointclouds
|
||||
from pytorch3d.structures.volumes import Volumes
|
||||
from pytorch3d.transforms.so3 import so3_exponential_map
|
||||
from pytorch3d.transforms.so3 import so3_exp_map
|
||||
|
||||
|
||||
DEBUG = False
|
||||
@@ -138,7 +138,7 @@ def init_uniform_y_rotations(batch_size: int = 10):
|
||||
angles = torch.linspace(0, 2.0 * np.pi, batch_size + 1, device=device)
|
||||
angles = angles[:batch_size]
|
||||
log_rots = axis[None, :] * angles[:, None]
|
||||
R = so3_exponential_map(log_rots)
|
||||
R = so3_exp_map(log_rots)
|
||||
return R
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user