"src/diffusers/utils/testing_utils.py" did not exist on "2d97544dc70b4869ab9b5b85a35d7a09856d0c54"
Commit 50531423 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

typing for unproject_points

Summary: Fix the base class annotation for unproject_points.

Reviewed By: patricklabatut

Differential Revision: D33281586

fbshipit-source-id: 1c34e8c4b30b359fcb9307507bc778ad3fecf290
parent 67778cae
......@@ -98,7 +98,7 @@ class CamerasBase(TensorProperties):
"""
raise NotImplementedError()
def unproject_points(self):
def unproject_points(self, xy_depth: torch.Tensor, **kwargs):
"""
Transform input points from camera coodinates (NDC or screen)
to the world / camera coordinates.
......
......@@ -549,7 +549,7 @@ def _xy_to_ray_bundle(
)
# unproject the points
unprojected = cameras.unproject_points(to_unproject, from_ndc=True) # pyre-ignore
unprojected = cameras.unproject_points(to_unproject, from_ndc=True)
# split the two planes back
rays_plane_1_world = unprojected[:, :n_rays_per_image]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment