PaddlePaddle / PaddleDetection

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
Apache License 2.0
12.65k stars 2.87k forks source link

评估如何打印precision和recall #7258

Open zcswdt opened 1 year ago

zcswdt commented 1 year ago

问题确认 Search before asking

请提出你的问题 Please ask your question

您好,我在训练voc格式的数据集的时候,我看在评估模型的时候只打印了map的值,请问如何打印出来precision和recall的值呢?谢谢了。

lyuwenyu commented 1 year ago

voc: https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.5/ppdet/metrics/map_utils.py#L316 coco: https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.5/ppdet/metrics/coco_utils.py#L143

zcswdt commented 1 year ago

voc: https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.5/ppdet/metrics/map_utils.py#L316 coco: https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.5/ppdet/metrics/coco_utils.py#L143

您好,请问我的数据集是1个类别的目标检测,这个可以用来绘制P和R的曲线嘛?我看eval.py里面说是每个类别的, 貌似是多个类别的目标检测绘制出P和R的曲线,请问单个类别的目标检测也可以绘制嘛?谢谢了。 image