Imitation Learning for Autonomous Driving in CARLA

Paper: arXiv 2609.17757 Code: GitHub Models: Hugging Face Datasets: Hugging Face Demo: YouTube

More research: The Legend of PPO: Learning to Fight in Hyrule · Learning in Dreams, Winning in Reality · Neural Simulators for Interactive Environments · all research ↗

A compact multimodal driving policy trained by behavioral cloning on CARLA autopilot demonstrations. It drives closed-loop in CARLA from a short history of camera, LiDAR, telemetry and route waypoints.

Files

File Contents
policy.keras the released policy (run barzksni, epoch 10), 1,358,211 parameters
policy.onnx the same network in ONNX (max output difference vs. Keras ≈ 3e-7)

Model

Inputs (5-frame stacks) vision (5,96,96,3) RGB / 255, lidar (5,64,64,1) BEV histogram, telemetry (5,5), waypoints (5,25,3)
Output controls (3,) = throttle, brake, steer (clip to [0,1], [0,1], [-1,1])
Architecture per-timestep CNN / MLP encoders, 2 Transformer blocks over time
Control rate 20 Hz (CARLA synchronous mode)
Training data 236,882 windows (≈3.3 h) from 448 autopilot recordings on Town01/Town02

Usage

import numpy as np, onnxruntime as ort
from huggingface_hub import hf_hub_download

session = ort.InferenceSession(hf_hub_download("jordykieto/carla-imitation-learning", "policy.onnx"))
feeds = {
    "vision":    np.zeros((1, 5, 96, 96, 3), np.float32),
    "lidar":     np.zeros((1, 5, 64, 64, 1), np.float32),
    "telemetry": np.zeros((1, 5, 5), np.float32),
    "waypoints": np.zeros((1, 5, 25, 3), np.float32),
}
throttle, brake, steer = session.run(["controls"], feeds)[0][0]

To drive in CARLA 0.9.16: python drive.py Town01 policy.keras from the GitHub repository, then press K. The observation definitions (sensor rig, telemetry scaling, waypoint format) are in its README.

Limitations

Validation is a temporal hold-out within the training recordings, not held-out routes or maps. Route waypoints come from privileged HD-map information. No other vehicles or pedestrians were present in the demonstrations. See the paper's claim audit (paper/CLAIMS.md) for what is measured versus observed.

Citation

@techreport{kieto2026imitation,
  title  = {Imitation Learning for Autonomous Driving in {CARLA}},
  author = {Kieto, Jordy},
  year   = {2026},
  type   = {Technical Report},
  url    = {https://github.com/JordyKieto/carla-imitation-learning}
}
Downloads last month
35
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train jordykieto/carla-imitation-learning

Paper for jordykieto/carla-imitation-learning