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.
2 parents 9b0956e + 8caad74 commit 1ace19cCopy full SHA for 1ace19c
fastlabel/converters.py
@@ -373,7 +373,7 @@ def __get_yolo_annotation(data: dict) -> dict:
373
dw = 1. / task["width"]
374
dh = 1. / task["height"]
375
376
- bbox = __to_bbox(points)
+ bbox = __to_bbox(annotation_type, points)
377
xmin = bbox[0]
378
ymin = bbox[1]
379
xmax = bbox[0] + bbox[2]
@@ -443,7 +443,7 @@ def __get_pascalvoc_obj(data: dict) -> dict:
443
return None
444
if annotation_type == AnnotationType.bbox.value and (int(points[0]) == int(points[2]) or int(points[1]) == int(points[3])):
445
446
447
x = bbox[0]
448
y = bbox[1]
449
w = bbox[2]
0 commit comments