einsafutdinov commited on
Commit
139825e
Β·
1 Parent(s): bef90ea

type cast to int

Browse files
flash3d/unidepth/utils/geometric.py CHANGED
@@ -124,6 +124,8 @@ def unproject_points(
124
  torch.Tensor: Batch of 3D point clouds of shape (B, 3, H, W).
125
  """
126
  batch_size, _, height, width = depth.shape
 
 
127
  device = depth.device
128
 
129
  # Create pixel grid
 
124
  torch.Tensor: Batch of 3D point clouds of shape (B, 3, H, W).
125
  """
126
  batch_size, _, height, width = depth.shape
127
+ height = int(height)
128
+ width = int(width)
129
  device = depth.device
130
 
131
  # Create pixel grid