question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in reading ground-truth labels while evaluating pre-trained model

See original GitHub issue

Thanks a lot for making your code open source, and for fostering further research in this field!

I downloaded the pre-trained model that is linked here, and I also used the ImageSets as described in the issue #3 and placed the same in both the training and testing data folders. On running only the evaluation on the pre-trained model, using the kitti eval folder provided here as referenced in issue #4 I got this error:-

ERROR: Couldn't read: 004627.txt of ground truth. Please write me an email! An error occurred while processing your results

Could you please tell me how this error came about? And how I can fix it?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:7

github_iconTop GitHub Comments

4reactions
ccerhancommented, Aug 14, 2020

Thanks a lot for making your code open source, and for fostering further research in this field! I downloaded the pre-trained model that is linked here, and I also used the ImageSets as described in the issue #3 and placed the same in both the training and testing data folders. On running only the evaluation on the pre-trained model, using the kitti eval folder provided here as referenced in issue #4 I got this error:- ERROR: Couldn't read: 004627.txt of ground truth. Please write me an email! An error occurred while processing your results Could you please tell me how this error came about? And how I can fix it?

The evaluation will run the command “./evaluate_object_3d_offline {} {}”.format(label_dir, output_dir)" in kitti_eval.py. But the default config “smoke_gn_vector.yaml” using " TEST: (“kitti_test”,) " and TEST_SPLIT: “test” . And the test dataset has no label file, thus causing this problem. So you need to replace it with “TEST: (“kitti_train”,)” and TEST_SPLIT: “val”. Note that you should make sure the label_dir is exists and “./evaluate_object_3d_offline” can find it.

To make label_dir that can be found by “./evaluate_object_3d_offline”, change the line where label_dir is set to label_dir = os.path.join('..', '..', '..', '..', '..', '..', getattr(dataset, 'label_dir')).

3reactions
EphChemcommented, Dec 23, 2020

Thanks a lot for making your code open source, and for fostering further research in this field! I downloaded the pre-trained model that is linked here, and I also used the ImageSets as described in the issue #3 and placed the same in both the training and testing data folders. On running only the evaluation on the pre-trained model, using the kitti eval folder provided here as referenced in issue #4 I got this error:- ERROR: Couldn't read: 004627.txt of ground truth. Please write me an email! An error occurred while processing your results Could you please tell me how this error came about? And how I can fix it?

The evaluation will run the command “./evaluate_object_3d_offline {} {}”.format(label_dir, output_dir)" in kitti_eval.py. But the default config “smoke_gn_vector.yaml” using " TEST: (“kitti_test”,) " and TEST_SPLIT: “test” . And the test dataset has no label file, thus causing this problem. So you need to replace it with “TEST: (“kitti_train”,)” and TEST_SPLIT: “val”. Note that you should make sure the label_dir is exists and “./evaluate_object_3d_offline” can find it.

To make label_dir that can be found by “./evaluate_object_3d_offline”, change the line where label_dir is set to label_dir = os.path.join('..', '..', '..', '..', '..', '..', getattr(dataset, 'label_dir')).

On top of what @ccerhan mentioned above, I had to:

change os.chdir('../smoke/data/datasets/evaluation/kitti/kitti_eval') to os.chdir('./smoke/data/datasets/evaluation/kitti/kitti_eval')

change os.chdir('../tools') to os.chdir('../../../../../../tools')

also make sure to have gnuplot, ghostscript, texlive-extra-utils installed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evaluation ERROR: Couldn't read: 006116.txt of ground truth ...
I run the following (adjust the paths to the label and the result folder): ./evaluate_object_3d_offline /KITTI/training/label_2 /avod/avod/data/ ...
Read more >
Detecting Label Errors using Pre-Trained Language Models
We show that large pre-trained language models are extremely capable of identifying label errors in datasets: simply verifying data points ...
Read more >
A SageMaker Ground Truth Demonstration for Object Detection
Train an object detector using Ground Truth labels (time: about 15min). Deploy the Model (time: about 20min). Create Model. Batch Transform.
Read more >
Output Data - Amazon SageMaker - AWS Documentation
This directory contains the input and output files used to train the automated data labeling model. Confidence Score. When you have more than...
Read more >
I performed Error Analysis on Google's Open Images dataset ...
I reassessed Open Images with a SOTA object detection model only to discover ... a model's prediction errors, identified during evaluation, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found