nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.2k stars 617 forks source link

Assert unachieved_thresholds + duplicate_thresholds + len(thresh_metrics) == self.num_thresholds #952

Closed LLLehom closed 12 months ago

LLLehom commented 12 months ago

Hi~I just try to val my tracking results, error like below: File "/home/L/anaconda3/envs/Lnet/lib/python3.8/site-packages/nuscenes/eval/tracking/algo.py", line 156, in accumulate assert unachieved_thresholds + duplicate_thresholds + len(thresh_metrics) == self.num_thresholds AssertionError Could you inform me about the problem?

LLLehom commented 12 months ago

Find a way to modify the numpy version: https://github.com/tianweiy/CenterPoint/issues/292 But is there no other way? I don't think numpy's version is the most critical.

whyekit-motional commented 12 months ago

@LLLehom do see if this helps you: https://github.com/nutonomy/nuscenes-devkit/issues/700

If not, pls provide a working code snippet to reproduce your issue

LLLehom commented 12 months ago

@whyekit-motional Thank you for your reply.

In #700 and #718 I found the answer and successfully tested it.