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:
Glenn Jocher
2023-08-08 17:00:42 +02:00
committed by GitHub
parent f5fc807fa7
commit 7dfdb63cde
22 changed files with 95 additions and 59 deletions

View File

@ -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