ultralytics 8.0.150
new Apple *.mlpackage
export format (#4043)
Co-authored-by: MLBoy_DaisukeMajima <rockyshikoku@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Louis Lac <lac.louis5@gmail.com>
This commit is contained in:
@ -72,7 +72,7 @@ download: |
|
||||
xmlbox = obj.find('bndbox')
|
||||
bb = convert_box((w, h), [float(xmlbox.find(x).text) for x in ('xmin', 'xmax', 'ymin', 'ymax')])
|
||||
cls_id = names.index(cls) # class id
|
||||
out_file.write(" ".join([str(a) for a in (cls_id, *bb)]) + '\n')
|
||||
out_file.write(" ".join(str(a) for a in (cls_id, *bb)) + '\n')
|
||||
|
||||
|
||||
# Download
|
||||
|
Reference in New Issue
Block a user