Skip to content

Commit

Permalink
missing np.array / torch.tensor creation for base coords (#600)
Browse files Browse the repository at this point in the history
Signed-off-by: operel <operel@nvidia.com>

Co-authored-by: operel <operel@nvidia.com>
  • Loading branch information
orperel and operel committed Jul 28, 2022
1 parent d42b044 commit decc467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaolin/render/camera/extrinsics.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def change_coordinate_system(self, basis_change: Union[np.array, torch.Tensor]):
#
# = [ P @ Rt | P @ (-Rt @ t) ]
# [ 0 | 1 ]
basis_change = torch.tensor(basis_change, device=self.device, dtype=self.dtype)
basis_change = self._to_tensor_input(basis_change, device=self.device, dtype=self.dtype)

# Cache basis change matrix to be able to revert later if desired
self._base_change_matrix = self._base_change_matrix @ basis_change
Expand Down

0 comments on commit decc467

Please sign in to comment.