question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: 'sample_idx' when i prepare nuscenes

See original GitHub issue

hi, 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
hollow-503commented, Oct 1, 2022

When i debug to it, there is no key ‘sample_idx’ in the dist ‘example’. I don’t know why.

0reactions
hehualin-tutcommented, Oct 14, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found