KeyError: 'sample_idx' when i prepare nuscenes
See original GitHub issuehi, it seems that i failed to prepare the nuScenes dataset.
i run the command
python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes
and the console output is
======
Loading NuScenes tables for version v1.0-trainval...
23 category,
8 attribute,
4 visibility,
64386 instance,
12 sensor,
10200 calibrated_sensor,
2631083 ego_pose,
68 log,
850 scene,
34149 sample,
2631083 sample_data,
1166187 sample_annotation,
4 map,
Done loading in 42.665 seconds.
======
Reverse indexing ...
Done reverse indexing in 10.8 seconds.
======
total scene num: 850
exist scene num: 850
train scene: 700, val scene: 150
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 34149/34149, 15.6 task/s, elapsed: 2194s, ETA: 0s
train sample: 28130, val sample: 6019
Create GT Database of NuScenesDataset
[ ] 0/28130, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/create_data.py", line 101, in <module>
nuscenes_data_prep(
File "tools/create_data.py", line 45, in nuscenes_data_prep
create_groundtruth_database(
File "/root/xxx/workspace/env_run/xxx05/repo/bevfusion/tools/data_converter/create_gt_database.py", line 274, in create_groundtruth_database
image_idx = example["sample_idx"]
KeyError: 'sample_idx'
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5
Top Results From Across the Web
KeyError: "NuScenesDataset: 'infos'" · Issue #769 - GitHub
MMDet3D requires generating .pkl info files to provide the input path and annotations. Please follow the doc to prepare nuScenes data. If you ......
Read more >nuImages devkit tutorial - nuScenes
A Gentle Introduction to nuImages¶. In this part of the tutorial, let us go through a top-down introduction of our database. Our dataset...
Read more >nuScenes devkit tutorial
A Gentle Introduction to nuScenes¶. In this part of the tutorial, let us go through a top-down introduction of our database. Our dataset...
Read more >nuImages - nuScenes
The strength of nuScenes is in the 1000 carefully curated scenes with 3d annotations, which cover many challenging driving situations.
Read more >nuScenes Map Expansion Tutorial
The NuScenesMap class makes it possible to render multiple map layers on a matplotlib figure. In [2]:. fig, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
When i debug to it, there is no key ‘sample_idx’ in the dist ‘example’. I don’t know why.
@freshman-zero You can refer to https://github.com/mit-han-lab/bevfusion/pull/156