Skip to content

Commit 5053142

Browse files
bottlerfacebook-github-bot
authored andcommitted
typing for unproject_points
Summary: Fix the base class annotation for unproject_points. Reviewed By: patricklabatut Differential Revision: D33281586 fbshipit-source-id: 1c34e8c4b30b359fcb9307507bc778ad3fecf290
1 parent 67778ca commit 5053142

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytorch3d/renderer/cameras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_projection_transform(self):
9898
"""
9999
raise NotImplementedError()
100100

101-
def unproject_points(self):
101+
def unproject_points(self, xy_depth: torch.Tensor, **kwargs):
102102
"""
103103
Transform input points from camera coodinates (NDC or screen)
104104
to the world / camera coordinates.

pytorch3d/renderer/implicit/raysampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def _xy_to_ray_bundle(
549549
)
550550

551551
# unproject the points
552-
unprojected = cameras.unproject_points(to_unproject, from_ndc=True) # pyre-ignore
552+
unprojected = cameras.unproject_points(to_unproject, from_ndc=True)
553553

554554
# split the two planes back
555555
rays_plane_1_world = unprojected[:, :n_rays_per_image]

0 commit comments

Comments
 (0)