Skip to content

Commit

Permalink
Update pointcloudfunc.py
Browse files Browse the repository at this point in the history
Signed-off-by: nirmal <[email protected]>
  • Loading branch information
nirmal-suthar committed May 8, 2020
1 parent c3ec548 commit a61f4eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kaolin/transforms/pointcloudfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ def normalize(cloud: Union[torch.Tensor, PointCloud],

if isinstance(cloud, np.ndarray):
cloud = torch.from_numpy(cloud)
if isinstance(cloud, PointCloud):
cloud = cloud.points

helpers._assert_tensor(cloud)
helpers._assert_dim_ge(cloud, 2)
Expand Down

0 comments on commit a61f4eb

Please sign in to comment.