跑通Det3D遇到的问题:
1.AssertionError: Requested unknown configuration cvpr_2019。问题是 cfg_path = os.path.join(this_dir, ‘configs’, ‘%s.json’ % configuration_name) configuration_name不知道哪个文件里面的,全面了解文件后再解答
File "/home/zz/.conda/envs/CenterTrack/lib/python3.6/site-packages/nuscenes/eval/detection/config.py", line 25, in config_factory
'Requested unknown configuration {}'.format(configuration_name)
原代码
File "/home/zz/.conda/envs/CenterTrack/lib/python3.6/site-packages/nuscenes/eval/detection/config.py", line 25, in config_factory
'Requested unknown configuration {}'.format(configuration_name)
改后代码
this_dir = os.path.dirname(os.path.abspath(__file__))
#cfg_path = os.path.join(this_dir, 'configs', '%s.json' % configuration_name)
cfg_path = os.path.join(this_dir, 'configs', 'detection_cvpr_2019.json')
2.AssertionError: Samples in split doesn’t match samples in predictions.使用v1.0_mini数据跑。
报错:
File "/home/zz/.conda/envs/CenterTrack/lib/python3.6/site-packages/nuscenes/eval/detection/evaluate.py", line 85, in __init__
"Samples in split doesn't match samples in predictions."
AssertionError: Samples in split doesn't match samples in predictions
报错代码:
assert set(self.pred_boxes.sample_tokens) == set(self.gt_boxes.sample_tokens), \
"Samples in split doesn't match samples in predictions."