We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad8588 commit dcd5191Copy full SHA for dcd5191
roboflow/util/folderparser.py
@@ -146,11 +146,13 @@ def _build_image_and_annotation_maps(annotationFiles):
146
stem = os.path.splitext(basename)[0]
147
148
# Prefer full relative path, but also allow basename and stem
149
- imgRefMap.update({
150
- f"{filename}/{file_name}": imageRef,
151
- f"{filename}/{basename}": imageRef,
152
- f"{filename}/{stem}": imageRef,
153
- })
+ imgRefMap.update(
+ {
+ f"{filename}/{file_name}": imageRef,
+ f"{filename}/{basename}": imageRef,
+ f"{filename}/{stem}": imageRef,
154
+ }
155
+ )
156
for annotation in parsed["annotations"]:
157
annotationMap[f"{dirname}/{annotation['image_id']}"].append(annotation)
158
return imgRefMap, annotationMap
0 commit comments