Model or dataset
nutonomy/nuscenes-devkit avatar
nutonomy/nuscenes-devkit

nuscenes-devkit: the Python SDK for reading nuScenes and nuImages data

The devkit of the nuScenes dataset.

2,822 stars713 forksPythonNOASSERTION

At a glance

What is it?
The nuscenes-devkit is the official Python package for loading, querying and evaluating the nuScenes and nuImages datasets. It gives you the dataset tables as Python objects, and it is the only supported way to reproduce the challenge metrics, but the data itself is a separate multi-archive download behind a login.
Who is it for?
Use nuscenes-devkit if you are working with nuScenes or nuImages data and need the official tables, splits and evaluation code; the pip package is the supported entry point and the tutorials are the fastest way to learn the schema.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 111 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • nutonomy/nuscenes-devkit2,822 ★ · +9
Star history
Repository2026-10-042026-11-24
nutonomy/nuscenes-devkit2.8k2.8k

9 Stars in the last 51 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What nuscenes-devkit is for, and who actually needs it

The nuScenes dataset is a set of sensor recordings from a driverless vehicle: cameras, lidar, radar, and map data, organised into scenes. The dataset itself ships as archives of JSON tables and sensor files. Reading those JSON files by hand is possible, but you would have to reconstruct the links between samples, annotations, calibrated sensors and ego poses yourself, and you would have to reimplement the official metrics if you want to compare against published numbers. nuscenes-devkit exists to remove both jobs. It is the Python package that turns those tables into queryable objects and provides the evaluation code used by the nuScenes challenges.

The package covers two datasets with one codebase. nuScenes is the 3D dataset, and nuImages is described in the README as a stand-alone large-scale image dataset that uses the same sensor setup as the 3D nuScenes dataset. The README states that the structure is similar and that both use the same devkit, which is why installation is one pip command rather than two.

The audience is narrow and specific. If you are training or evaluating perception, tracking or prediction models on this data, or if you are reproducing a published result, the devkit is the intended path. If you want a general loader for arbitrary autonomous-driving data, this is the wrong package, because it knows the nuScenes schema and little else.

How the devkit maps dataset tables onto Python objects

The repository is organised around a python-sdk directory, with docs and setup alongside it. The data flow is file-based and lazy. You download the archives and unpack them into a fixed directory tree, then construct a class such as NuScenes or NuImages with a dataroot parameter. The class reads the JSON tables for the split you name, builds in-memory indexes over them, and exposes methods for the common traversals: getting a sample, getting its annotations, getting the sensor data for a sample, and moving between keyframes and intermediate frames.

The directory layout is part of the contract, not an implementation detail. For nuScenes the README expects samples, sweeps, maps and v1.0-* folders under /data/sets/nuscenes, where samples holds keyframe sensor data, sweeps holds intermediate frames, maps holds rasterized .png images and vectorized .json files, and the v1.0-* folders hold the JSON tables with metadata and annotations, one folder per split. The README is explicit that you should unpack without overwriting folders that occur in multiple archives, which is a warning that the archives are split by content and expect to be merged into one tree.

For nuImages the tree is smaller: samples, sweeps and v1.0-* under /data/sets/nuimages. Here the README notes that sweeps are optional and that you need at least the metadata and samples for the devkit to work. That asymmetry is worth remembering, because it means a nuImages setup can be much smaller than a nuScenes one while still being valid.

If the default paths do not suit you, the dataroot parameter of the NuScenes or NuImages class is the override. The README points to the tutorial for the details, which is the honest answer: the constructor signature is documented in code rather than in the README prose.

Installing nuscenes-devkit with pip and running the first tutorial

The README gives one install command for the whole devkit. It is published on pip, so no repository clone is required for the library itself:

bash
pip install nuscenes-devkit

The README states the devkit is tested for Python 3.9 and Python 3.12, and that the changelog entry for Aug. 28, 2025 records devkit v1.2.0 as the change to supporting those two versions. If your environment runs something else, that is the first thing to reconcile, because the changelog shows the project moved its supported interpreters deliberately rather than tracking every release.

Installing the package does not give you data. You have to go to the nuScenes download page, create an account and agree to the Terms of Use, then unpack the archives into the expected folder. For nuScenes the README says you need to download all archives; for nuImages, at least the metadata and samples. The resulting tree is what the classes expect to find:

bash
/data/sets/nuscenes
    samples
    sweeps
    maps
    v1.0-*

The fastest way to see whether your setup is correct is the tutorial notebook. The README gives the command for the nuImages tutorial, and it runs against a cloned copy of the repository rather than the pip package:

bash
jupyter notebook $HOME/nuscenes-devkit/python-sdk/tutorials/nuimages_tutorial.ipynb

If the notebook opens and the first cells construct the dataset object without raising, your dataroot and folder layout are right. If it fails, the failure is almost always in the tree rather than in the Python code, which is why the README spends more space on the folder structure than on the API.

For anything beyond the default paths, the dataroot parameter is the hook. The README does not reproduce the constructor in prose; it defers to the tutorial, so expect to read the notebook or the class source to see the full set of arguments.

Where the devkit gets in your way

The largest constraint is not technical. The data sits behind an account and a Terms of Use, and the README repeats that requirement for both nuScenes and nuImages. You cannot pip install your way to a working environment; the package and the data are separate downloads with separate gates. That matters for CI, for shared machines and for anyone evaluating the project before committing to an account.

The second constraint is versioning. The releases listed for this repository stop at 1.1.3 on 2021-04-05, while the changelog records devkit v1.2.0 on 2025-08-28. So the changelog is the reliable record of what changed, and the release tags are not. If your workflow pins a version, check which of the two you are reading before you assume a feature is or is not present.

The third constraint is scope. The devkit is a reader and an evaluator for a specific schema. It is not a data pipeline, not a training framework, and not a converter. If your dataset is not nuScenes or nuImages, none of the table logic applies, and the evaluation code is tied to the challenge definitions rather than being a general metric library. Teams that want one loader for several datasets will end up writing an adapter layer, and at that point the devkit is one dependency among several rather than the foundation.

Finally, the README does not document rollback, migration between devkit versions, or what happens to code written against older table versions. The changelog is a list of dated entries, not a compatibility policy, so treat upgrades as something to test rather than something to assume.

Alternatives, and the real difference in approach

The obvious alternative is to skip the devkit and read the JSON tables directly. That is a legitimate choice and it is not as unreasonable as it sounds: the tables are plain JSON, and if all you need is a list of sample tokens or a count of annotations, a few lines of json.load will do it. The difference is what you give up. The devkit encodes the relationships between tables and the conventions of the splits, and it provides the evaluation code that the challenges use. Reimplementing the metrics from the paper is the part that usually goes wrong, because small differences in matching or thresholding change the numbers.

A second alternative is to use the dataset through a framework-specific adapter rather than the devkit directly. That can be the right call if you are already inside a training stack that has its own loader format, but the adapter still has to read the same archives, and it will typically depend on the devkit or reimplement it. The difference in approach is where the schema knowledge lives: in the devkit, in the adapter, or in your own code. Putting it in your own code is the option with the highest maintenance cost, because the schema is defined by the dataset release, not by you.

A third option is to use nuImages instead of nuScenes if your work is image-centric. The README presents it as a stand-alone image dataset with the same sensor setup, and the smaller download requirement (metadata and samples, with sweeps optional) makes it a cheaper starting point. The trade-off is that you lose the 3D annotations that make nuScenes interesting for detection and tracking.

Maintenance, licence and what to check before adopting

The repository is not archived, and the last push was on 2026-08-06. The changelog shows a long history of dated entries, from the initial evaluation code in Dec. 2018 through dataset releases, map expansions, prediction and tracking code, and the Python 3.9 and 3.12 support change recorded for Aug. 28, 2025. The pattern is release-driven: the devkit changes when the dataset or the challenge changes, not on a schedule. That means upgrade cost is lumpy. Long stretches pass with only pip requirement pinning, as the entries for Sep. 25, 2023 and Feb. 13, 2023 show, and then a version moves the supported interpreters.

On licensing, the repository contains a LICENSE.txt file, but the metadata reports the licence as NOASSERTION and the README does not state a licence. The README does require you to agree to the nuScenes Terms of Use before downloading data, which is a separate agreement from whatever governs the code. Those are two different questions and they should be answered separately: read LICENSE.txt for the code, and read the Terms of Use for the data. Nothing here is legal advice, and the practical point is simply that the code licence and the data terms are not the same document.

Before adopting, the things worth verifying are concrete. Confirm your Python version is 3.9 or 3.12, since those are the tested versions. Confirm you can create an account and accept the Terms of Use, because without that the package is inert. Confirm the folder tree matches what the README expects, since the archives are meant to be merged rather than unpacked in isolation. And check whether the feature you need appears in the changelog, because the release tags and the changelog do not line up.

Editorial conclusion

Use nuscenes-devkit if you are working with nuScenes or nuImages data and need the official tables, splits and evaluation code; the pip package is the supported entry point and the tutorials are the fastest way to learn the schema. Do not adopt it if you want a general-purpose dataset loader, if you need a maintained release cadence (the last tagged release listed is 1.1.3 from 2021-04-05, while the changelog records devkit v1.2.0 on 2025-08-28), or if you cannot accept the Terms of Use that gate the download. Before you commit, verify that your Python version matches the tested 3.9 and 3.12, confirm you can obtain the archives, and check the LICENSE.txt file in the repository root, because the metadata field reports NOASSERTION and the README does not state a licence.

Frequently asked questions

What are nuScenes?

nuScenes is a driverless vehicle dataset from Motional and nuTonomy, distributed as archives of sensor data and JSON tables. The devkit in this repository is the Python package that reads those tables and provides the challenge evaluation code.

What is the structure of the nuScenes dataset?

The README shows the expected layout under /data/sets/nuscenes: samples for keyframe sensor data, sweeps for intermediate frames, maps for rasterized .png images and vectorized .json files, and v1.0-* folders holding the JSON metadata and annotations, one per split.

How many scenes are in nuScenes?

The README does not state a scene count. It mentions approximately 40,000 keyframes in the Panoptic nuScenes description, which is a different figure and should not be read as the number of scenes.

Official sources

  1. Issues
  2. nutonomy/nuscenes-devkit on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/nutonomy-nuscenes-devkit.svg)](https://hysenlabs.com/projects/nutonomy-nuscenes-devkit)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/nutonomy-nuscenes-devkit.svg)](https://hysenlabs.com/projects/nutonomy-nuscenes-devkit)

Was this useful?