Skip to content

Commit dcd5191

Browse files
fix(pre_commit): 🎨 auto format pre-commit hooks
1 parent bad8588 commit dcd5191

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

roboflow/util/folderparser.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@ def _build_image_and_annotation_maps(annotationFiles):
146146
stem = os.path.splitext(basename)[0]
147147

148148
# 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-
})
149+
imgRefMap.update(
150+
{
151+
f"{filename}/{file_name}": imageRef,
152+
f"{filename}/{basename}": imageRef,
153+
f"{filename}/{stem}": imageRef,
154+
}
155+
)
154156
for annotation in parsed["annotations"]:
155157
annotationMap[f"{dirname}/{annotation['image_id']}"].append(annotation)
156158
return imgRefMap, annotationMap

0 commit comments

Comments
 (0)