training_extensions icon indicating copy to clipboard operation
training_extensions copied to clipboard

RF-DETR-Seg reports negative [email protected] for OV/ONNX variants

Open leoll2 opened this issue 6 months ago • 3 comments

Steps to reproduce

  1. Train a RF-DETR-S segmentation model
  2. 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).

Image Image Image

leoll2 avatar May 22 '26 10:05 leoll2

The problem is not in the OV model itself, because the predictions returned by media:predict are qualitatively very good.

Image

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%.

leoll2 avatar May 22 '26 10:05 leoll2

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%.

jcchr avatar Jun 03 '26 13:06 jcchr

It will be fixed by this PR: https://github.com/open-edge-platform/training_extensions/pull/6614

kprokofi avatar Jun 03 '26 13:06 kprokofi