Muhammad Taqi Raza commited on
Commit
d871da0
·
1 Parent(s): e66051f

embeddings

Browse files
inference/cli_demo_camera_i2v_pcd.py CHANGED
@@ -77,7 +77,7 @@ def maxpool_mask_tensor(mask_tensor):
77
  torch.Tensor: shape (12, 30, 45), pooled binary mask
78
  """
79
  T, H, W = mask_tensor.shape
80
- assert T % 12 == 0, "T must be divisible by 12 (e.g., 48)"
81
  # assert H % 30 == 0 and W % 45 == 0, "H and W must be divisible by 30 and 45"
82
  assert H % 8 == 0 and W % 8 == 0, "H and W must be divisible by 8 for spatial pooling"
83
 
@@ -111,7 +111,7 @@ def avgpool_mask_tensor(mask_tensor):
111
  torch.Tensor: shape (13, 30, 45), pooled binary mask with first frame zeroed
112
  """
113
  T, H, W = mask_tensor.shape
114
- assert T % 12 == 0, "T must be divisible by 12 (e.g., 48)"
115
  # assert H % 30 == 0 and W % 45 == 0, "H and W must be divisible by 30 and 45"
116
  assert H % 8 == 0 and W % 8 == 0, "H and W must be divisible by 8 for spatial pooling"
117
 
 
77
  torch.Tensor: shape (12, 30, 45), pooled binary mask
78
  """
79
  T, H, W = mask_tensor.shape
80
+ # assert T % 12 == 0, "T must be divisible by 12 (e.g., 48)"
81
  # assert H % 30 == 0 and W % 45 == 0, "H and W must be divisible by 30 and 45"
82
  assert H % 8 == 0 and W % 8 == 0, "H and W must be divisible by 8 for spatial pooling"
83
 
 
111
  torch.Tensor: shape (13, 30, 45), pooled binary mask with first frame zeroed
112
  """
113
  T, H, W = mask_tensor.shape
114
+ # assert T % 12 == 0, "T must be divisible by 12 (e.g., 48)"
115
  # assert H % 30 == 0 and W % 45 == 0, "H and W must be divisible by 30 and 45"
116
  assert H % 8 == 0 and W % 8 == 0, "H and W must be divisible by 8 for spatial pooling"
117