Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5053142

Browse files
bottlerfacebook-github-bot
authored andcommitted
typing for unproject_points
Summary: Fix the base class annotation for unproject_points.Reviewed By: patricklabatutDifferential Revision: D33281586fbshipit-source-id: 1c34e8c4b30b359fcb9307507bc778ad3fecf290
1 parent67778ca commit5053142

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
raiseNotImplementedError()
100100

101-
defunproject_points(self):
101+
defunproject_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)

[8]ページ先頭

©2009-2025 Movatter.jp