Skip to main content

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


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.1.0.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

x4d_devkit-0.1.0-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file x4d_devkit-0.1.0.tar.gz.

File metadata

  • Download URL: x4d_devkit-0.1.0.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for x4d_devkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d6b9b0e0379245c8aeb36c42bae40fd4de72ebfa6c2eca2566fdb9c2d604068
MD5 913877894cfa20fe2ff786c553027207
BLAKE2b-256 c9e563c3f59fe196cc1afb91ddcf091117b58ea5df33a558e55b249202ec8306

See more details on using hashes here.

File details

Details for the file x4d_devkit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: x4d_devkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for x4d_devkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d2223bf97119f2c0a46038d260f109f27fae2e72651c4820397b799a1805715
MD5 8d17ce7627806b8d067013cac53fab6d
BLAKE2b-256 03b2f6ad0c48740548c436103d97b724c376cb0cdf83694772f9fd0bced221b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page