Skip to content

Commit 7fa333f

Browse files
bottlerfacebook-github-bot
authored andcommitted
Fix some Transform3D -> Transform3d
Summary: Fix some typos in comments. Reviewed By: patricklabatut Differential Revision: D32596645 fbshipit-source-id: 09b6d8c49f4f0301b80df626c6f9a2d5b5d9b1a7
1 parent a0247ea commit 7fa333f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pytorch3d/renderer/cameras.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def transform_points(
227227
eps: If eps!=None, the argument is used to clamp the
228228
divisor in the homogeneous normalization of the points
229229
transformed to the ndc space. Please see
230-
`transforms.Transform3D.transform_points` for details.
230+
`transforms.Transform3d.transform_points` for details.
231231
232232
For `CamerasBase.transform_points`, setting `eps > 0`
233233
stabilizes gradients since it leads to avoiding division
@@ -283,7 +283,7 @@ def transform_points_ndc(
283283
eps: If eps!=None, the argument is used to clamp the
284284
divisor in the homogeneous normalization of the points
285285
transformed to the ndc space. Please see
286-
`transforms.Transform3D.transform_points` for details.
286+
`transforms.Transform3d.transform_points` for details.
287287
288288
For `CamerasBase.transform_points`, setting `eps > 0`
289289
stabilizes gradients since it leads to avoiding division
@@ -313,7 +313,7 @@ def transform_points_screen(
313313
eps: If eps!=None, the argument is used to clamp the
314314
divisor in the homogeneous normalization of the points
315315
transformed to the ndc space. Please see
316-
`transforms.Transform3D.transform_points` for details.
316+
`transforms.Transform3d.transform_points` for details.
317317
318318
For `CamerasBase.transform_points`, setting `eps > 0`
319319
stabilizes gradients since it leads to avoiding division

pytorch3d/structures/volumes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class Volumes:
124124
appropriate `world_coordinates` argument.
125125
126126
Internally, the mapping between `x_local` and `x_world` is represented
127-
as a `Transform3D` object `Volumes._local_to_world_transform`.
127+
as a `Transform3d` object `Volumes._local_to_world_transform`.
128128
Users can access the relevant transformations with the
129129
`Volumes.get_world_to_local_coords_transform()` and
130130
`Volumes.get_local_to_world_coords_transform()`
@@ -260,7 +260,7 @@ def _voxel_size_translation_to_transform(
260260
) -> Transform3d:
261261
"""
262262
Converts the `voxel_size` and `volume_translation` constructor arguments
263-
to the internal `Transform3D` object `local_to_world_transform`.
263+
to the internal `Transform3d` object `local_to_world_transform`.
264264
"""
265265
volume_size_zyx = self.get_grid_sizes().float()
266266
volume_size_xyz = volume_size_zyx[:, [2, 1, 0]]

pytorch3d/transforms/transform3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Transform3d:
3232
3333
BROADCASTING
3434
Transform3d objects supports broadcasting. Suppose that t1 and tN are
35-
Transform3D objects with len(t1) == 1 and len(tN) == N respectively. Then we
35+
Transform3d objects with len(t1) == 1 and len(tN) == N respectively. Then we
3636
can broadcast transforms like this:
3737
3838
.. code-block:: python
@@ -248,7 +248,7 @@ def _get_matrix_inverse(self):
248248

249249
def inverse(self, invert_composed: bool = False):
250250
"""
251-
Returns a new Transform3D object that represents an inverse of the
251+
Returns a new Transform3d object that represents an inverse of the
252252
current transformation.
253253
254254
Args:
@@ -262,7 +262,7 @@ def inverse(self, invert_composed: bool = False):
262262
independently without composing them.
263263
264264
Returns:
265-
A new Transform3D object containing the inverse of the original
265+
A new Transform3d object containing the inverse of the original
266266
transformation.
267267
"""
268268

0 commit comments

Comments
 (0)