0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

yolo(ptファイル)をcoreMLに変換してもラベルが追加されない場合や検知しない場合について

Posted at

原因

YOLOの学習の結果では分類・枠線表示などが出来ているが、coreMLの変換はできるが上手くモデルが働いてくれない人向けです。

まずはxcodeなどでcoreMLを除いてclass labelsが設定されているか確認しよう

スクリーンショット 2024-12-18 6.25.44.png

対処法

nms = True を付けよう 以上

model.export(format='coreml', nms=True)

変換するコードの全文

from ultralytics import YOLO
model = YOLO("your_model.pt") 
model.export(format='coreml', nms=True)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?