FastDeploy icon indicating copy to clipboard operation
FastDeploy copied to clipboard

python版PPYOLOER模板程序返回数据不完整,格式不正确。

Open weiweijeff opened this issue 1 year ago • 4 comments


温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度


环境

  • 【FastDeploy版本】: develop
  • 【编译命令】按照GPU部署库编译文档执行
  • 【系统平台】: win11
  • 【硬件】: Nvidia GPU RTX4090移动版, CUDA 12.1 CUDNN 8.9
  • 【编译语言】: Python3.10

问题日志及出现问题的操作流程

  • 附上详细的问题日志有助于快速定位分析
  • PPYOLOER推理结果数据格式与PaddleDetection2.6数据格式不一样
    • 先执行examples下的部署示例,https://github.com/PaddlePaddle/FastDeploy/blob/develop/examples/vision/detection/paddledetection/python/infer_ppyoloe_r.py 结果是: DetectionResult: [xmin, ymin, xmax, ymax, score, label_id] 317.424927,414.574188, 290.774170, 238.207764, 0.970878, 0 457.598633,393.369568, 0.000000, 0.962562, 217.003098, 431

用PaddleDetection2.6的程序 https://github.com/PaddlePaddle/PaddleDetection/blob/release/2.6/deploy/python/infer.py 结果是 {'boxes': array([[ 0. , 0.95843047, 588.8065 , 354.3309 , 518.5979 , 189.9114 , 648.1887 , 134.57492 , 718.39734 , 298.99442 ], [ 0. , 0.93819976, 453.2648 , 422.79578 , 372.95996 , 262.75952 , 495.3757 , 201.33232 , 575.68054 , 361.36856 ]], dtype=float32), 'boxes_num': array([2])}

FastDeploy得到的结果明显不对,PPYOLOER的结果应该是4个点,不是两个对角点。 第三行的0.000000, 0.962562, 其实应该是第二个目标的label_id编号0,以及score得分0.962562 怎么才能得到完整且正确的数据?

weiweijeff avatar Jun 11 '23 13:06 weiweijeff