diff --git a/PaddleCV/yolov3/eval.py b/PaddleCV/yolov3/eval.py index 9a0ceae2fd1c0e3b10c3ebd88ce205abe2f2b157..0381ec44a1f319dec0c7ad4e8eac103e53dfb2cc 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)