To load a KITTI raw dataset, use pykitti.raw(basedir, date, drive, frames=None).
Arguments
basedir: The base directory containing the dataset.date: The date string (e.g., '2011_09_26').drive: The drive identifier (e.g., '0019').frames (optional): A range or list of frame indices to load. If None (default), the entire dataset is loaded.
Assumptions
- You must have downloaded the calibration data associated with the sequences.
- The directory structure must remain unchanged from the original KITTI zip file structure.
import pykitti
basedir = '/your/dataset/dir'
date = '2011_09_26'
drive = '0019'
# Loads specific frames; use frames=None for the whole dataset
data = pykitti.raw(basedir, date, drive, frames=range(0, 50, 5))