apal commited on
Commit
32dc5a6
·
1 Parent(s): cc4f6d1

len(os.listdir)

Browse files
Files changed (1) hide show
  1. SkyScenes.py +1 -1
SkyScenes.py CHANGED
@@ -358,7 +358,7 @@ class SKYSCENES(datasets.GeneratorBasedBuilder):
358
  filepath_depth = os.listdir(depth[j])
359
  except:
360
  pass
361
- for i in range(os.listdir(images[j])):
362
  # filepath = os.path.join(images, filename)
363
  try:
364
  with open(os.path.join(images[j], filepath_img[i]), "rb") as f:
 
358
  filepath_depth = os.listdir(depth[j])
359
  except:
360
  pass
361
+ for i in range(len(os.listdir(images[j]))):
362
  # filepath = os.path.join(images, filename)
363
  try:
364
  with open(os.path.join(images[j], filepath_img[i]), "rb") as f: