Commit bcb9d628 authored by zhangwenwei's avatar zhangwenwei
Browse files

reformat eval scripts

parent 852295ce
...@@ -687,21 +687,18 @@ def kitti_eval(gt_annos, ...@@ -687,21 +687,18 @@ def kitti_eval(gt_annos,
result += ('{} AP@{:.2f}, {:.2f}, {:.2f}:\n'.format( result += ('{} AP@{:.2f}, {:.2f}, {:.2f}:\n'.format(
curcls_name, *min_overlaps[i, :, j])) curcls_name, *min_overlaps[i, :, j]))
if mAPbbox is not None: if mAPbbox is not None:
result += ( result += 'bbox AP:{:.4f}, {:.4f}, {:.4f}\n'.format(
'bbox AP:{:.4f}, {:.4f}, {:.4f}\n'.format(*mAPbbox[j, :, *mAPbbox[j, :, i])
i]))
if mAPbev is not None: if mAPbev is not None:
result += ( result += 'bev AP:{:.4f}, {:.4f}, {:.4f}\n'.format(
'bev AP:{:.4f}, {:.4f}, {:.4f}\n'.format(*mAPbev[j, :, *mAPbev[j, :, i])
i]))
if mAP3d is not None: if mAP3d is not None:
result += ( result += '3d AP:{:.4f}, {:.4f}, {:.4f}\n'.format(
'3d AP:{:.4f}, {:.4f}, {:.4f}\n'.format(*mAP3d[j, :, i])) *mAP3d[j, :, i])
if compute_aos: if compute_aos:
result += ( result += 'aos AP:{:.2f}, {:.2f}, {:.2f}\n'.format(
'aos AP:{:.2f}, {:.2f}, {:.2f}\n'.format(*mAPaos[j, :, *mAPaos[j, :, i])
i]))
# prepare results for logger # prepare results for logger
for idx in range(3): for idx in range(3):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment