Skip to content

Commit

Permalink
Fix some Transform3D -> Transform3d
Browse files Browse the repository at this point in the history
Summary: Fix some typos in comments.

Reviewed By: patricklabatut

Differential Revision: D32596645

fbshipit-source-id: 09b6d8c49f4f0301b80df626c6f9a2d5b5d9b1a7
  • Loading branch information
bottler authored and facebook-github-bot committed Nov 23, 2021
1 parent a0247ea commit 7fa333f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions pytorch3d/renderer/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def transform_points(
eps: If eps!=None, the argument is used to clamp the
divisor in the homogeneous normalization of the points
transformed to the ndc space. Please see
`transforms.Transform3D.transform_points` for details.
`transforms.Transform3d.transform_points` for details.
For `CamerasBase.transform_points`, setting `eps > 0`
stabilizes gradients since it leads to avoiding division
Expand Down Expand Up @@ -283,7 +283,7 @@ def transform_points_ndc(
eps: If eps!=None, the argument is used to clamp the
divisor in the homogeneous normalization of the points
transformed to the ndc space. Please see
`transforms.Transform3D.transform_points` for details.
`transforms.Transform3d.transform_points` for details.
For `CamerasBase.transform_points`, setting `eps > 0`
stabilizes gradients since it leads to avoiding division
Expand Down Expand Up @@ -313,7 +313,7 @@ def transform_points_screen(
eps: If eps!=None, the argument is used to clamp the
divisor in the homogeneous normalization of the points
transformed to the ndc space. Please see
`transforms.Transform3D.transform_points` for details.
`transforms.Transform3d.transform_points` for details.
For `CamerasBase.transform_points`, setting `eps > 0`
stabilizes gradients since it leads to avoiding division
Expand Down
4 changes: 2 additions & 2 deletions pytorch3d/structures/volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class Volumes:
appropriate `world_coordinates` argument.
Internally, the mapping between `x_local` and `x_world` is represented
as a `Transform3D` object `Volumes._local_to_world_transform`.
as a `Transform3d` object `Volumes._local_to_world_transform`.
Users can access the relevant transformations with the
`Volumes.get_world_to_local_coords_transform()` and
`Volumes.get_local_to_world_coords_transform()`
Expand Down Expand Up @@ -260,7 +260,7 @@ def _voxel_size_translation_to_transform(
) -> Transform3d:
"""
Converts the `voxel_size` and `volume_translation` constructor arguments
to the internal `Transform3D` object `local_to_world_transform`.
to the internal `Transform3d` object `local_to_world_transform`.
"""
volume_size_zyx = self.get_grid_sizes().float()
volume_size_xyz = volume_size_zyx[:, [2, 1, 0]]
Expand Down
6 changes: 3 additions & 3 deletions pytorch3d/transforms/transform3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Transform3d:
BROADCASTING
Transform3d objects supports broadcasting. Suppose that t1 and tN are
Transform3D objects with len(t1) == 1 and len(tN) == N respectively. Then we
Transform3d objects with len(t1) == 1 and len(tN) == N respectively. Then we
can broadcast transforms like this:
.. code-block:: python
Expand Down Expand Up @@ -248,7 +248,7 @@ def _get_matrix_inverse(self):

def inverse(self, invert_composed: bool = False):
"""
Returns a new Transform3D object that represents an inverse of the
Returns a new Transform3d object that represents an inverse of the
current transformation.
Args:
Expand All @@ -262,7 +262,7 @@ def inverse(self, invert_composed: bool = False):
independently without composing them.
Returns:
A new Transform3D object containing the inverse of the original
A new Transform3d object containing the inverse of the original
transformation.
"""

Expand Down

0 comments on commit 7fa333f

Please sign in to comment.