Update mmod2.py
Browse files
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 |
|