Open gustavofuhr opened 4 months ago
Hello again, I found that a bunch of my problems were due to inconsistencies between the requirements of all the libs involved (coreml, mmdeploy, mmcv, mmdetection, torch, etc.).
To help you guys to improve the documentation and to provide a sample of a model conversion to CoreML (I used rtmdet, since it's one of the best :-)) I did the following ipython notebook: https://github.com/gustavofuhr/ios_object_detection/blob/main/mmdetection_to_coreml/export_mmdetection_coreml.ipynb
I really hope that that helps.
Checklist
Describe the bug
I'm trying to reproduce the tutorial for converting detectors from mmdetection to coreML: https://mmdeploy.readthedocs.io/en/latest/05-supported-backends/coreml.html
I did build lib-torch (I took an hour) but when I'm trying to convert the sample model it still give me an error:
Reproduction
python tools/deploy.py \ configs/mmdet/detection/detection_coreml_static-800x1344.py \ /mmdetection_dir/configs/retinanet/retinanet_r18_fpn_1x_coco.py \ /checkpoint/retinanet_r18_fpn_1x_coco_20220407_171055-614fd399.pth \ /mmdetection_dir/demo/demo.jpg \ --work-dir work_dir/retinanet \ --device cpu \ --dump-info
Environment
Error traceback