RF-DETR-Seg reports negative [email protected] for OV/ONNX variants
Steps to reproduce
- Train a RF-DETR-S segmentation model
- Check the mAP of all model variants
Expected
All variants achieve a similar mAP value
Actual
The Pytorch variant has 100% mAP, while the OpenVINO and ONNX variants score -100% (negative).
The problem is not in the OV model itself, because the predictions returned by media:predict are qualitatively very good.
Instead, I believe the root cause could be connected to this comment: evaluation uses the wrong ModelAPI class for this model (MaskRCNN instead of DETRInstSeg), thus the predictions are post-processed wrongly and jeopardize the mAP computation. We should also check why it's -100% instead of 0%.
For Mask-RCNN-ResNet50 and Mask-EfficientNet-B2 I noticed a similar behavior - for OpenVINO and ONNX models [email protected] is 0 - for Pytorch - 100%. In general "Model metrics" it is also 100%.
It will be fixed by this PR: https://github.com/open-edge-platform/training_extensions/pull/6614