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值? #3765

Open lao-xu opened 3 years ago

lao-xu commented 3 years ago

加了classwise后可以输出每类的ap值,想输出precision和recall值,在ppdet/metrics/map_utils.py里多处添加print语句,却没有任何输出,难道map_utils.py没有被调用吗

yghstill commented 3 years ago

@lao-xu classwise后会绘制pr曲线,具体的值可以在这里打印:https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.1/ppdet/metrics/map_utils.py#L250-L251

lao-xu commented 3 years ago

@lao-xu classwise后会绘制pr曲线,具体的值可以在这里打印:https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.1/ppdet/metrics/map_utils.py#L250-L251

需要2.0版本还是develop版本?

yghstill commented 3 years ago

@lao-xu release/2.1或者develop版本都可以

lao-xu commented 3 years ago

@lao-xu release/2.1或者develop版本都可以

好,谢谢!再请教下,precision数组的最后一个值就是整体数据的precision吗

yghstill commented 3 years ago

@lao-xu 不是的,没有整体的precision。precision和recall数组是二者对应的阈值下的连续的值,二者是成反比的。

lao-xu commented 3 years ago

@lao-xu 不是的,没有整体的precision。precision和recall数组是二者对应的阈值下的连续的值,二者是成反比的。

谢谢!再请教下。一般论文里目标检测模型的precision和recall指f1最大时的precision和recall还是指平均值?