mmdetection3d icon indicating copy to clipboard operation
mmdetection3d copied to clipboard

KeyError: "NuScenesDataset: 'infos'"

Open SMSajadi99 opened this issue 2 years ago • 10 comments

Hi @Wuziyi616 && @sunjiahao1999 && @lijain

I encountered a problem during execution, but I don't know what to do. Thank you for your help

image image(1) image(2) image(3) image(4) image(5) image(6) image(7) image(8) image(9) image(10)

SMSajadi99 avatar May 13 '23 14:05 SMSajadi99

Now the problem is that it does not understand the word infos in the last line of the above message, why? What should I do to solve this problem?

SMSajadi99 avatar May 13 '23 15:05 SMSajadi99

I have 5 pkl which are as follows: (I test in mini data v1.0-mini)

image

SMSajadi99 avatar May 13 '23 15:05 SMSajadi99

This looks like a version issue, make sure the mmdet3d version of bevfusion is the same as the corresponding annotation file. By the way, we now highly recommend using mmdetection3d version 1.1, which fully supports the Openmmlab 2.0 ecosystem and is much simpler to use.

sunjiahao1999 avatar May 17 '23 05:05 sunjiahao1999

BEVFusion training will support in next version (to be released next week). Welcome to follow.

sunjiahao1999 avatar May 17 '23 05:05 sunjiahao1999

Hi @sunjiahao1999 I made some changes to the code to work with mini data. The following photo is my changes:

image

I tried to change its version to mini, and after that, we don't have infos in the data keys, it only had data_list and metainfo, which I changed in the circled part so that it can understand it, in addition to that, gcc I upgraded it as if above 5 was intended, the numba library was also necessary, I installed it, then I typed the following code for evaluation: (from this link https://github.com/mit-han-lab/bevfusion#evaluation)

torchpack dist-run -np 8 python tools/test.py configs/nuscenes/det/transfusion/secfpn/camera+lidar/swint_v0p075/convfuser.yaml pretrained/bevfusion-det.pth --eval bbox

After downloading a cache for Torch still remains in this section:

image

What needs to be done?

SMSajadi99 avatar May 18 '23 07:05 SMSajadi99

I got the pkls from this link that I asked one of your friends and I am working with them https://github.com/open-mmlab/mmdetection3d/issues/2454#issuecomment-1517743436

SMSajadi99 avatar May 18 '23 07:05 SMSajadi99

Hi @sunjiahao1999 Based on the question I asked, the problem was solved: https://github.com/mit-han-lab/bevfusion/issues/409

But I ran into another problem: image

Now I checked the code, there is a problem in this part: image image

As you can see, we don't have lidar_path or location or sweeps at all.

what should I do ?

SMSajadi99 avatar May 19 '23 06:05 SMSajadi99

BEVFusion training will support in next version (to be released next week). Welcome to follow.

Hello again, can you send me the link if it is published?

SMSajadi99 avatar Jun 13 '23 20:06 SMSajadi99

hi ,Does the issue KeyError: 'lidar_path' solve?

sunpian1 avatar May 09 '24 06:05 sunpian1

please use nuscenes_converter.py

sunpian1 avatar May 10 '24 01:05 sunpian1