Centernet: kitti test: Couldn't read: 006042.txt of ground truth.

Created on 7 May 2019  路  3Comments  路  Source: xingyizhou/CenterNet

When I run test.py on kitti, I encountered this error.

d3dop |################################| [3768/3769]|Tot: 0:02:40 |ETA: 0:00:01 |tot 0.038s (0.042s) |load 0.000s (0.000s) |pre 0.001s (0.001s) |net 0.033s (0.033s) |dec 0.001s (0.002s) |post 0.004s (0.006s) |merge 0.000s (0.000s) 
Thank you for participating in our evaluation!
Loading detections...
number of files for evaluation: 3769
ERROR: Couldn't read: 006042.txt of ground truth. Please write me an email!
An error occured while processing your results.

I know in prclibo's test code, I may encounter this error because the test file cannot access the original labels files always due to wrong label file path.
However, in this case, we use convert_kitti_to_coco.py to convert kitti form label files to coco form label files and do not need to access original kitti label files. So I don't know what went wrong.
Do you know the reason? Thanks!

Most helpful comment

The solution is quite simple.
cd data/kitti
mv label_2 label_val

Or,
https://github.com/xingyizhou/CenterNet/blob/b328816ecf16c65ee43ba14c6edd2a6e8dcdacff/src/lib/datasets/dataset/kitti.py#L87
change label_val to label_2

All 3 comments

Hi,
We do access to the original kitti labels for testing (See here). Can you provide your script? Also, make sure you are running evaluate_object_3d_offline.cpp, not evaluate_object_3d.cpp.

The solution is quite simple.
cd data/kitti
mv label_2 label_val

Or,
https://github.com/xingyizhou/CenterNet/blob/b328816ecf16c65ee43ba14c6edd2a6e8dcdacff/src/lib/datasets/dataset/kitti.py#L87
change label_val to label_2

@lhyfst it works, thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lih627 picture lih627  路  7Comments

ycxxn picture ycxxn  路  3Comments

deandiakov picture deandiakov  路  5Comments

li980432131 picture li980432131  路  6Comments

VRCMF picture VRCMF  路  6Comments