mmdetection3d icon indicating copy to clipboard operation
mmdetection3d copied to clipboard

Lyft Test Fail with KeyErr

Open OrcunCanDeniz opened this issue 2 years ago • 1 comments

I was running test.py on lyft data. My folder struict is as;

├── lyft_infos_test.pkl
├── lyft_infos_train.pkl
├── lyft_infos_val.pkl
├── test.txt
├── train.txt
├── v1.01-test -> images  lidar  maps  v1.01-test
├── v1.01-train -> images  lidar  maps  v1.01-train
└── val.txt

With command;

python tools/test.py configs/centerpoint/centerpoint_02pillar_second_secfpn_4x8_cyclic_20e_lyft.py work_dirs/centerpoint_02pillar_second_secfpn_4x8_cyclic_20e_lyft/latest.pth  --eval bbox

I got ;

Traceback (most recent call last):        
  File "tools/test.py", line 260, in <module>
    main()                                
  File "tools/test.py", line 256, in main 
    print(dataset.evaluate(outputs, **eval_kwargs))
  File "/home/capoom/mmdetection3d/mmdet3d/datasets/lyft_dataset.py", line 410, in evaluate
    ret_dict = self._evaluate_single(result_files[name])
  File "/home/capoom/mmdetection3d/mmdet3d/datasets/lyft_dataset.py", line 302, in _evaluate_single
    eval_set_map[self.version], output_dir, logger)
KeyError: 'v1.01-test'

I'm suspecting this line

OrcunCanDeniz avatar Jul 26 '22 08:07 OrcunCanDeniz

We do not support centerpoint on the Lyft for now. Do you modify the config by yourself to make it compatible with Lyft?

Tai-Wang avatar Aug 03 '22 06:08 Tai-Wang