Registry / data / lyft-dataset-sdk

lyft-dataset-sdk

JSON →
library0.0.8pypypi✓ verified 80d ago

Python SDK for interacting with the Lyft Level 5 Prediction Dataset, providing tools for loading, visualizing, and analyzing autonomous vehicle sensor data (LIDAR, images, maps) and prediction/planning scenarios. Version 0.0.8 is the latest release; the library is in maintenance mode as Lyft has shifted focus to other projects.

pip install lyft-dataset-sdk
INSTALL
IMPORT
SIG · LYFT-DATASET-SDK
L
lyft-dataset-sdk
datapythonv0.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LyftDataset
import lyft_dataset_sdk
from lyft_dataset_sdk import LyftDataset

Initialize the LyftDataset and print first two scenes.

from lyft_dataset_sdk import LyftDataset import os data_path = os.environ.get('LYFT_DATA_PATH', '/path/to/dataset') lyft_ds = LyftDataset(data_path=data_path, json_path=os.path.join(data_path, 'data'), verbose=True) # List scenes print(lyft_ds.scene[:2])
Debug
Known issues
breakingIn version >=0.0.6, the map API changed: `get_map` now requires a `map_name` parameter and returns a `NuScenesMap` object. Old code calling `get_map()` without arguments will break.
fix
Update calls to `lyft_ds.get_map('map_name')`.
affects: <0.0.6
gotchaThe Lyft dataset is large (hundreds of GB). Ensure sufficient disk space and memory. Loading the entire dataset may cause memory issues on machines with <16GB RAM.
fix
Use `LyftDataset` with `verbose=False` and load only necessary scenes or samples.
affects: all
deprecatedThe `get_sample_data` method for LIDAR point clouds is deprecated in favor of `get_sample_lidar`. It still works but may be removed in future.
fix
Prefer `lyft_ds.get_sample_lidar(sample_token)`.
affects: 0.0.8
Upgrade
Version history
0.0.8latest on PyPI · released Sep 24, 2019
Audit
Dependencies
nuscenes-devkitrequiredLyft fork of nuScenes devkit, core dependency for data classes and map API.
pyquaternionrequiredUsed for quaternion rotations in sensor geometry.
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
lyft-dataset-sdk — pip install lyft-dataset-sdk · libregistry