Currently, MATLAB export support is limited to opset version 9, but the parameters used in the 'resize2Dlayer '(featureResize2) of 'yolov3ObjectDetector' requires export support of opset >=10. As a workaround, you can replace the 'featureResize2' with a new 'resize2Dlayer' that can be exported even with opset version 9. Here is an example:
lgraph= layerGraph(detector.Network);
layer = resize2dLayer('OutputSize',[28,28],'Name','resize2DLayer','GeometricTransformMode','asymmetric','NearestRoundingMode','onnx-10');
lgraph = replaceLayer(lgraph,'featureResize2',layer);
net = dlnetwork(lgraph);
The above net is a yolov3 network that can be exported without warnings.
To verify the mAP, you can create a detector as below and follow the steps mentioned in Evaluate Model section of the "Object Detection Using YOLO v3 Deep Learning" example. yolov3Detector = yolov3ObjectDetector(net, detector.ClassNames, detector.AnchorBoxes);
Best Answer