Closed tucan9389 closed 2 years ago
Note that you should clone mshamash/yolov5 repo and checkout fix/coreml_export_nms_layer branch, instead of the original repo (ultralytics/yolov5) because the PR wasn't merged.
mshamash/yolov5
fix/coreml_export_nms_layer
ultralytics/yolov5
git clone https://github.com/mshamash/yolov5 cd yolov5 git checkout fix/coreml_export_nms_layer pip install -qr requirements.txt # install
python export.py --weights yolov5n.pt --include coreml python export.py --weights yolov5s.pt --include coreml python export.py --weights yolov5m.pt --include coreml python export.py --weights yolov5l.pt --include coreml python export.py --weights yolov5x.pt --include coreml python export.py --weights yolov5n6.pt --include coreml python export.py --weights yolov5s6.pt --include coreml python export.py --weights yolov5m6.pt --include coreml python export.py --weights yolov5l6.pt --include coreml python export.py --weights yolov5x6.pt --include coreml
yolov5s.mlmodel example
Convert pre-trained YOLOv5 pt to Core ML
Clone and install pre-requirements
Export to Core ML model
Check the model input/output with https://netron.app
Check the model with Xcode
Related Issue and PR