Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem on the pub_test.py #368

Open
JimmyGea opened this issue Dec 3, 2022 · 5 comments
Open

problem on the pub_test.py #368

JimmyGea opened this issue Dec 3, 2022 · 5 comments

Comments

@JimmyGea
Copy link

JimmyGea commented Dec 3, 2022

Hi,thank you for your great work.
l try to follow your work on Getting Started with CenterPoint on nuScenes,when l running this command: python tools/nusc_tracking/pub_test.py --work_dir work_dirs/nusc_centerpoint_voxelnet_0075voxel_fix_bn_z/output/outputs --checkpoint work_dirs/nusc_centerpoint_voxelnet_0075voxel_fix_bn_z/output/infos_val_10sweeps_withvelo_filter_True.json
The following error occurred during the pub_test.

Traceback (most recent call last):
File "tools/nusc_tracking/pub_test.py", line 194, in
eval_tracking()
File "tools/nusc_tracking/pub_test.py", line 161, in eval_tracking
args.root
File "tools/nusc_tracking/pub_test.py", line 179, in eval
metrics_summary = nus_eval.main()
File "/home/xuejunming/CenterPoint/nuscenes-devkit/python-sdk/nuscenes/eval/tracking/evaluate.py", line 205, in main
metrics, metric_data_list = self.evaluate()
File "/home/xuejunming/CenterPoint/nuscenes-devkit/python-sdk/nuscenes/eval/tracking/evaluate.py", line 135, in evaluate
accumulate_class(class_name)
File "/home/xuejunming/CenterPoint/nuscenes-devkit/python-sdk/nuscenes/eval/tracking/evaluate.py", line 131, in accumulate_class
curr_md = curr_ev.accumulate()
File "/home/xuejunming/CenterPoint/nuscenes-devkit/python-sdk/nuscenes/eval/tracking/algo.py", line 156, in accumulate
assert unachieved_thresholds + duplicate_thresholds + len(thresh_metrics) == self.num_thresholds
AssertionError

error

Thanks for your kind attention and look forward your prompt reply.

@JimmyGea
Copy link
Author

JimmyGea commented Dec 5, 2022

If I may ask one more question, how to create infos_train_10sweeps_withvelo_filter_True.json? I can only create infos_val_10sweeps_withvelo_filter_True.json according to your instructions.

@tianweiy
Copy link
Owner

tianweiy commented Dec 7, 2022

for the first question, maybe related to #292 (comment) ?

@tianweiy
Copy link
Owner

tianweiy commented Dec 7, 2022

to generate detection on training set, modify val anno path to info_train

val_anno = "data/nuScenes/infos_val_10sweeps_withvelo_filter_True.pkl"

@tianweiy
Copy link
Owner

tianweiy commented Dec 7, 2022

you can also directly use prediction from #249

@JimmyGea
Copy link
Author

to generate detection on training set, modify val anno path to info_train

val_anno = "data/nuScenes/infos_val_10sweeps_withvelo_filter_True.pkl"

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants