waymo-open-dataset icon indicating copy to clipboard operation
waymo-open-dataset copied to clipboard

Why cann't I get AP/APH=1 when submitting ground truth to validation leaderboard?

Open peisun1115 opened this issue 4 years ago • 18 comments

Several people have asked this. So I am just creating this issue as a FAQ.

Possible causes:

  1. You did not use 1.2 ground truth. Note that if you train with 1.0 and eval on 1.2. It should be almost the same. But 1.0 does not have this populated. So you cannot do possible cause 2 below.

  2. This is very likely because you did not filter boxes with 0 points as we do not classify boxes with 0 points as ground truth.

I have uploaded the ground truth as a serialized proto of open_dataset.Objects in gs://waymo_open_dataset_v_1_2_0/validation/ground_truth_objects/gt.bin . You can directly feed it to create_submission tool to create a submission. You can also compare it with your submission if you still see any problem.

You should see something like this if you directly submit that. https://waymo.com/open/challenges/entry/?timestamp=1585853480160909&challenge=DETECTION_3D&[email protected]&submissionType=VALIDATION

peisun1115 avatar Apr 02 '20 19:04 peisun1115

Can you be so kind to provide a gt.bin example for 2D detection submission as well? I have made my own to submit to the website but it returned "No submission information". I have no idea about what happened.

xbjxh avatar Apr 10 '20 16:04 xbjxh

did you run the create_submission tool? did you point the submission_file to a valid file?

peisun1115 avatar Apr 10 '20 17:04 peisun1115

Yes, I run the C++ create_submission tool. It creates 4 files under the output dir. Then I use those two codes in the Quick Start to generate a .tar.gz file and then I submit it to the website.

tar cvf /tmp/my_model.tar /tmp/my_model/
gzip /tmp/my_model.tar

Am I doing anything wrong?

xbjxh avatar Apr 10 '20 17:04 xbjxh

make sure --submission_file is passed properly
https://github.com/waymo-research/waymo-open-dataset/blob/master/waymo_open_dataset/metrics/tools/create_submission.cc#L22

This usually happens when this file is missing. The tool does not fail if the file is missing for now... that should be fixed.

peisun1115 avatar Apr 10 '20 17:04 peisun1115

Yes, I provide the submission.txtpb. By the way, for 2D detection, the box.center_z, box.height and box.heading should be set to 0 or I should delete them in create_prediction_file_example.py?

xbjxh avatar Apr 10 '20 17:04 xbjxh

Hello, I also would like to enquire which attributes of these should be used for 2D detection: grafik My guess would be to only provide values for the center_x, center_y, length, and width attributes.

ChipsSpectre avatar Apr 11 '20 04:04 ChipsSpectre

@xbjxh make sure the file exists. I've seen that many times. All were caused by the file passed is missing. Try to use absolute path.

I checked this commit to fail if the required info is missing (https://github.com/waymo-research/waymo-open-dataset/commit/fc98afd0ed221e6549a27c28d5ffefb696ba6e3e).

@ChipsSpectre yeah, you are right. but it is ok if you populate other stuff. they won't be used even if you populate.

peisun1115 avatar Apr 11 '20 05:04 peisun1115

Can you upload the ground truth file to github? I can't get access to gs://waymo_open_dataset_v_1_2_0/validation/ground_truth_objects/gt.bin image

pyy799 avatar Apr 23 '20 05:04 pyy799

@pyy799 The file is too big to be uploaded here.

To access, make sure:

  1. You are registered in waymo/open and have access to gs://waymo_open_dataset_v_1_2_0 (try gsutil ls)
  2. Make sure your gsutil is setup. Follow https://cloud.google.com/storage/docs/gsutil_install

peisun1115 avatar Apr 23 '20 21:04 peisun1115

While trying to exclude boxes with zero points, i am getting this error AttributeError: 'Label' object has no attribute 'num_lidar_points_in_box'

I am using v1.2

bilalsattar avatar Apr 24 '20 23:04 bilalsattar

@bilalsattar You can read a little more about protobuf here. For a label object a, you can do something like a.num_lidar_points_in_box

peisun1115 avatar Apr 24 '20 23:04 peisun1115

        for obj in frame.laser_labels:
            if obj.num_lidar_points_in_box == 0:
                continue

this is my code. I don't see any problem here.

bilalsattar avatar Apr 24 '20 23:04 bilalsattar

Did you install one of the 1.2 packages? https://github.com/waymo-research/waymo-open-dataset/blob/master/docs/quick_start.md#use-pre-compiled-pippip3-packages

If yes, this should not happen.

peisun1115 avatar Apr 24 '20 23:04 peisun1115

Can you be so kind to provide a gt.bin example for 2D detection submission as well? I have made my own to submit to the website but it returned "No submission information". I have no idea about what happened.

Did you ever get this? The validation ground truth still seems to be in 3D for us.

harish-kamath avatar May 16 '20 02:05 harish-kamath

The validation ground truth for 2d is in 2d. We just store it with the same proto as 3d. we only populate center_x (along image width), center_y (along image height), length (along image width), width (along image height).

https://github.com/waymo-research/waymo-open-dataset/blob/master/waymo_open_dataset/label.proto#L23-L46

peisun1115 avatar May 16 '20 04:05 peisun1115

Hello, how to evaluate on the train set? Is there a gt.bin file for the train set? @peisun1115

yinjunbo avatar Jul 23 '20 02:07 yinjunbo

Hello,

Following your comments, if I use the gt.bin file that you have uploaded, can I use it directly with create_submission even if my predictions don't cover the entire val set? i.e., I am predicting only on a subset of the val set. Will I still get correct results if I use your gt.bin file to create a submission? Will it automatically just consider frames for which there is a prediction?

Best Regards Sambit

SM1991CODES avatar Dec 19 '20 10:12 SM1991CODES

Hello, how to evaluate on the train set? Is there a gt.bin file for the train set? @peisun1115

During my exploration across all versions of WOD, I found that gt.bin is only available in the validation set of the WOD v1.2.0 archived_files.

ly3106 avatar Mar 07 '24 09:03 ly3106