From 642f5140bc1c23bf4e449b53639f692a822e9e8d Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Wed, 17 Apr 2019 08:15:39 +0000 Subject: [PATCH] fix yolo python3 compatible. --- PaddleCV/yolov3/eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PaddleCV/yolov3/eval.py b/PaddleCV/yolov3/eval.py index 9a0ceae2..0381ec44 100644 --- a/PaddleCV/yolov3/eval.py +++ b/PaddleCV/yolov3/eval.py @@ -68,7 +68,7 @@ def eval(): res = { 'image_id': im_id, 'category_id': label_ids[int(label)], - 'bbox': map(float, bbox), + 'bbox': list(map(float, bbox)), 'score': float(score) } result.append(res) -- GitLab