siavava commited on
Commit
1880f4a
1 Parent(s): cbdbaff

Update mmod2.py

Browse files
Files changed (1) hide show
  1. mmod2.py +2 -2
mmod2.py CHANGED
@@ -95,8 +95,8 @@ class Mmod2(datasets.GeneratorBasedBuilder):
95
 
96
  # if file_basename in files_to_keep:
97
 
98
- raw_image_file = f"{self.data_dir}/{_IMAGES_DIR}/{file_name}.jpg"
99
- annotation = scipy.io.loadmat(f"{self.data_dir}/{_ANNOTATIONS_DIR}/{file_name}.mat")["annotations"][0][0][0]
100
  print(f"{annotation = }")
101
 
102
 
 
95
 
96
  # if file_basename in files_to_keep:
97
 
98
+ raw_image_file = f"{self.data_dir}/data/{_IMAGES_DIR}/{file_name}.jpg"
99
+ annotation = scipy.io.loadmat(f"{self.data_dir}/data/{_ANNOTATIONS_DIR}/{file_name}.mat")["annotations"][0][0][0]
100
  print(f"{annotation = }")
101
 
102