I have trained an ultralytics/yolov8 segmentation model (yolov8m-seg.pt) in PyTorch on a custom dataset. An iPhone app is required to be built using this model, for which the best.pt model is exported to CoreML format.
However, in xcode, the output tab in best.mlpackage does not show class labels and segmentation polygons, but as two MultiArray type objects p and var_1279. Upon some searching, I changed the coremltools version from 7.1 to 6.0.0 and also used nms=True while exporting the model. But then end up with the warning message 'nms=True' is only available for Detect models like 'yolov8n.pt'.
It would be great if anyone can tell me how to (properly) export the PyTorch yolov8m-seg model to CoreML in order to obtain class labels and polygons as inference results.