Daniellesry commited on
Commit
0760a54
·
1 Parent(s): 59412be
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -208,8 +208,12 @@ def process_video(
208
 
209
 
210
  for idx, pcd in enumerate(pcds):
 
211
  points = np.asarray(pcd.points)
212
  colors = np.asarray(pcd.colors) if pcd.has_colors() else None
 
 
 
213
  logger.info(f'points:{points.shape} ')
214
  print(f'points:{points.shape}')
215
 
 
208
 
209
 
210
  for idx, pcd in enumerate(pcds):
211
+
212
  points = np.asarray(pcd.points)
213
  colors = np.asarray(pcd.colors) if pcd.has_colors() else None
214
+
215
+ if points.shape[0] == 0:
216
+ continue
217
  logger.info(f'points:{points.shape} ')
218
  print(f'points:{points.shape}')
219