{"id":27125,"library":"lyft-dataset-sdk","title":"Lyft Dataset SDK","description":"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.","status":"maintenance","version":"0.0.8","language":"python","source_language":"en","source_url":"https://github.com/lyft/nuscenes-devkit","tags":["lyft","autonomous-vehicles","dataset","sdk","lidar","prediction"],"install":[{"cmd":"pip install lyft-dataset-sdk","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Lyft fork of nuScenes devkit, core dependency for data classes and map API.","package":"nuscenes-devkit","optional":false},{"reason":"Used for quaternion rotations in sensor geometry.","package":"pyquaternion","optional":false}],"imports":[{"note":"Correct import for the main dataset class.","wrong":"","symbol":"LyftDataset","correct":"from lyft_dataset_sdk import LyftDataset"}],"quickstart":{"code":"from lyft_dataset_sdk import LyftDataset\nimport os\n\ndata_path = os.environ.get('LYFT_DATA_PATH', '/path/to/dataset')\nlyft_ds = LyftDataset(data_path=data_path, json_path=os.path.join(data_path, 'data'), verbose=True)\n# List scenes\nprint(lyft_ds.scene[:2])","lang":"python","description":"Initialize the LyftDataset and print first two scenes."},"warnings":[{"fix":"Update calls to `lyft_ds.get_map('map_name')`.","message":"In 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.","severity":"breaking","affected_versions":"<0.0.6"},{"fix":"Use `LyftDataset` with `verbose=False` and load only necessary scenes or samples.","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Prefer `lyft_ds.get_sample_lidar(sample_token)`.","message":"The `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.","severity":"deprecated","affected_versions":"0.0.8"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install lyft-dataset-sdk` in the correct Python environment.","cause":"Library not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'lyft_dataset_sdk'"},{"fix":"Download the Lyft Level 5 dataset from https://level5.lyft.com/dataset/ and set `data_path` to the root directory containing e.g. 'v1.0-trainval'.","cause":"The dataset path is incorrect or the dataset is not downloaded.","error":"FileNotFoundError: [Errno 2] No such file or directory: '/path/to/dataset/v1.0-trainval'"},{"fix":"Use `data_path` only and ensure the JSON files are in a 'data' subdirectory as per expected structure.","cause":"The constructor signature changed in later versions; 'json_path' was renamed or removed.","error":"TypeError: __init__() got an unexpected keyword argument 'json_path'","affected_versions":">=0.0.6"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}