Emilio Marinone
commited on
Commit
•
9983b3e
1
Parent(s):
eb302ca
add count of annotations
Browse files
nst_sv.py
CHANGED
@@ -63,6 +63,7 @@ _BAD_ANNOTATIONS = [
|
|
63 |
'se14x012-07071999-1342_r4670012.json',
|
64 |
'se14x600-21022000-1038_r4670002.json',
|
65 |
'se12x387-05071999-1018_r4670387.json',
|
|
|
66 |
]
|
67 |
|
68 |
class NstSV(datasets.GeneratorBasedBuilder):
|
@@ -207,7 +208,9 @@ class NstSV(datasets.GeneratorBasedBuilder):
|
|
207 |
else:
|
208 |
channel_ext = "-2"
|
209 |
|
210 |
-
|
|
|
|
|
211 |
if annotation_filename not in _BAD_ANNOTATIONS:
|
212 |
annotations_filepath = os.path.join(annotations_dir, annotation_filename)
|
213 |
with open(annotations_filepath, "r") as f:
|
|
|
63 |
'se14x012-07071999-1342_r4670012.json',
|
64 |
'se14x600-21022000-1038_r4670002.json',
|
65 |
'se12x387-05071999-1018_r4670387.json',
|
66 |
+
'se13x379-06081999-1429_r4670380.json',
|
67 |
]
|
68 |
|
69 |
class NstSV(datasets.GeneratorBasedBuilder):
|
|
|
208 |
else:
|
209 |
channel_ext = "-2"
|
210 |
|
211 |
+
annotations_files = os.listdir(annotations_dir)
|
212 |
+
for i, annotation_filename in enumerate(annotations_files):
|
213 |
+
print(f"{i+1}/{len(annotations_files)}")
|
214 |
if annotation_filename not in _BAD_ANNOTATIONS:
|
215 |
annotations_filepath = os.path.join(annotations_dir, annotation_filename)
|
216 |
with open(annotations_filepath, "r") as f:
|