X-4D dataset format SDK — load, validate, evaluate, and convert autonomous driving datasets
Project description
x4d-devkit
X-4D dataset format SDK for autonomous driving — load, validate, evaluate, and convert datasets.
Installation
pip install x4d-devkit
With optional dependencies:
# NuScenes format converter
pip install x4d-devkit[converters]
# Platform API client
pip install x4d-devkit[client]
Quick Start
Load a clip
from x4d_devkit import ClipLoader
clip = ClipLoader("/path/to/clip")
print(clip.meta)
for sample in clip.samples:
# Access sensor data
for sd in clip.sample_data_by_sample(sample.token):
print(sd.channel, sd.filename)
Validate a clip
x4d validate /path/to/clip
from x4d_devkit import validate_clip
report = validate_clip("/path/to/clip")
print(report)
Detection evaluation
from x4d_devkit import DetectionEval, DetectionConfig
config = DetectionConfig(
class_names=["car", "pedestrian", "bicycle"],
dist_thresholds=[0.5, 1.0, 2.0, 4.0],
)
evaluator = DetectionEval(config, gt_clips=[...], pred_clips=[...])
result = evaluator.evaluate()
print(f"mAP: {result.mAP:.3f}, NDS: {result.NDS:.3f}")
Convert from NuScenes
from x4d_devkit.converters import NuScenesConverter
converter = NuScenesConverter("/path/to/nuscenes")
converter.convert_scene("scene-0001", output_dir="/path/to/output")
Modules
| Module | Description |
|---|---|
core |
Data models, token generation, coordinate transforms, clip loader |
eval |
Detection evaluation (mAP, TP metrics, NDS) |
converters |
Format converters (NuScenes → X4D) |
validation |
Clip structure and data validation |
client |
X-4D platform API client |
License
Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
x4d_devkit-0.2.0.tar.gz
(44.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file x4d_devkit-0.2.0.tar.gz.
File metadata
- Download URL: x4d_devkit-0.2.0.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b256519349ba45f2fb27ef5ee6d75fbe34105b33242e71a85f475c91e2905da
|
|
| MD5 |
e1df2cf1d31c643f103d1f20a5c41de7
|
|
| BLAKE2b-256 |
0777da0c8cd30f6a5d880f33db8fab681a61559941b2e777174cc96c24b1c2cd
|
File details
Details for the file x4d_devkit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: x4d_devkit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bfeaf22943ece36383f37622cba952aacc73e3b7a44c62d8640d97abc8bcfa7
|
|
| MD5 |
49b88b33196e63ddbd00bba61f4d8b2a
|
|
| BLAKE2b-256 |
d527c68766364dd410e593ac23fcea50f10519db161279487aa3a11c6c4df1ba
|