raw-data
Load and validate KITTI raw drives with pykitti.raw, including calibration, images, Velodyne scans, timestamps, and OXTS poses.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- raw-data
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Load and validate KITTI raw drives with pykitti.raw, including calibration, images, Velodyne scans, timestamps, and OXTS poses.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/api-reference.md6.0 KB
- 参考文档references/data-layout.md4.2 KB
- 参考文档references/opencv-stereo.md3.1 KB
- 参考文档references/troubleshooting.md6.3 KB
- 参考文档references/workflows.md5.7 KB
- 脚本scripts/raw_fixture_smoke.py8.6 KB
03 SKILL.md 正文
KITTI raw drives
Use this sub-skill when the input is an original KITTI raw date/drive tree
and the operation is pykitti.raw. It covers the raw directory layout,
calibration, timestamps, OXTS packets/poses, four camera streams, stereo pairs,
Velodyne scans, and positional frame subsets.
Route boundaries
- Use odometry for
pykitti.odometry,sequences/<sequence>,times.txt, and benchmark pose files. - Use tracking for tracking data and labels.
- Use the package-level troubleshooting guide for installation, package import, and workflow escalation.
- Use the local OpenCV/stereo guide only after raw images have been loaded as Pillow images.
Prerequisites and safety
The covered release is pykitti==0.3.1; install its declared dependencies
(numpy, Pillow, matplotlib, and pandas) in the execution environment.
The normal top-level import pykitti also imports tracking.py, which imports
cv2 eagerly. Therefore OpenCV is needed for a successful top-level import in
this release even though raw.py uses Pillow rather than OpenCV to decode raw
images. See troubleshooting.
Do not download or unpack KITTI data from a runtime workflow. Acquire and
extract archives separately, then validate the tree in
data layout. The constructor requires the three
date-level calibration files and oxts/timestamps.txt; it does not validate
sensor counts and an empty OXTS data directory can produce an empty oxts list.
Quick start
import pykitti
data = pykitti.raw(
base_path, "2011_09_26", "0019",
dataset="sync", # default
frames=[0, 5, 9], # positional indices; default None means all
imtype="png", # extension without the leading dot
)
print(len(data), data.timestamps[0])
left = data.get_cam0(0) # PIL.Image, mode L
left_rgb, right_rgb = data.get_rgb(0)
scan = data.get_velo(0) # float32, shape (N, 4)
base_path and date are joined, and the drive directory is
<date>_drive_<drive>_<dataset>. The constructor eagerly reads calibration,
timestamps, and the selected OXTS files; image and Velodyne bytes are lazy.
Use a reusable list or materialized range for frames, and validate every
stream before pairing it. frames selects positions in independently sorted
file lists, not filename IDs. A valid non-contiguous example is [2, 0].
Access and invariants
len(data)is the number of selected timestamps.cam0/cam1yield fresh PillowLimages;cam2/cam3yield fresh PillowRGBimages.grayandrgbare one-passzipgenerators. Indexedget_gray(i)andget_rgb(i)are preferable when a frame is needed repeatedly.velois a fresh generator of float32 arrays shaped(N, 4)with columns[x, y, z, reflectance];get_velo(i)reads one selected-list position.timestampscontains naivedatetime.datetimevalues. KITTI timestamp nanoseconds are truncated to microseconds by this release.oxtscontainsOxtsData(packet, T_w_imu)records. The first pose is origin-normalized but is not necessarily an identity rotation.calibis a named tuple with 3x4 projection matrices, 4x4 transforms, 3x3 intrinsics, andb_gray/b_rgbbaselines. The tuple structure is fixed, but its contained NumPy arrays remain mutable.T_camN_velomaps homogeneous Velodyne points to camera-N coordinates. For projection, computeP_rect_20 @ T_cam2_velo @ p_veloand divide by positive depth only.
Read API reference for exact fields and shapes, workflows for repeatable load recipes, and troubleshooting for recovery actions.
Verification
Run the self-contained fixture before using a real drive:
python scripts/raw_fixture_smoke.py --help
python scripts/raw_fixture_smoke.py
It creates and removes a tiny local raw tree by default, exercises non- contiguous selection, and asserts timestamp/OXTS, calibration, image, stereo, and Velodyne shapes. It performs no network or GUI operations. For real data, compare numeric frame IDs and counts across all four cameras, Velodyne files, OXTS files, and timestamp lines before consuming synchronized pairs.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).