Skip to content

Commit 1ace19c

Browse files
authored
Merge pull request #111 from fastlabel/bugfix/1808-converter-erorr
[bugfix] SDK converter erorr
2 parents 9b0956e + 8caad74 commit 1ace19c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastlabel/converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def __get_yolo_annotation(data: dict) -> dict:
373373
dw = 1. / task["width"]
374374
dh = 1. / task["height"]
375375

376-
bbox = __to_bbox(points)
376+
bbox = __to_bbox(annotation_type, points)
377377
xmin = bbox[0]
378378
ymin = bbox[1]
379379
xmax = bbox[0] + bbox[2]
@@ -443,7 +443,7 @@ def __get_pascalvoc_obj(data: dict) -> dict:
443443
return None
444444
if annotation_type == AnnotationType.bbox.value and (int(points[0]) == int(points[2]) or int(points[1]) == int(points[3])):
445445
return None
446-
bbox = __to_bbox(points)
446+
bbox = __to_bbox(annotation_type, points)
447447
x = bbox[0]
448448
y = bbox[1]
449449
w = bbox[2]

0 commit comments

Comments
 (0)