/ Модель

Характеристики

Библиотека
pytorch
Опубликована
20 окт 2026

mcqueen-driving-model

Сегментация изображенийИзображение → mask3 профессии

DriveNet drive-v5 по кадру камеры оценивает покрытие трассы, гоночную линию и целевую скорость для автономного карта в симуляторе.

0скачиваний за 30 дней0лайковвеса обновлены20 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

McQueen driving model drive-v5 — модель DriveNet для автономного карта на трассе Purdue Grand Prix, разработанная авторами проекта. Она принимает один кадр RGB размером 240 × 135 и выдаёт маску покрытия, гоночную траекторию из 12 точек на расстоянии 2–24 м и целевую скорость для каждой точки. Модель содержит 3,9 млн параметров; в README указана скорость около 7 мс на кадр на одном потоке CPU. Внешний контроллер преобразует траекторию в команды руления и газа, сама модель эти команды не выдаёт.

Модель предназначена для экспериментов с автономным вождением карта и оценена в симуляторе: в описанном испытании она прошла круг за 64,6 с. Маска покрытия также проверялась на реальных видео с других картов и трасс, но обучалась на автоматически созданных метках без проверки человеком. Гоночная линия и скорость обучались только на симуляторе; их поведение на реальных изображениях не проверено. Модель не испытывалась на реальном карте и предполагает заданное положение и наклон камеры, а также поле зрения около 100 градусов. Условия лицензии в предоставленных материалах не описаны.

Сценарии применения

  • построение гоночной линии карта по кадру камеры
  • оценка целевой скорости вдоль траектории
  • выделение покрытия трассы на изображении
  • эксперименты с автономным вождением карта в симуляторе

Ограничения

Модель оценивалась в симуляторе и не испытывалась на собственном реальном карте; гоночная линия и скорости обучены только на симуляторе. Маска обучалась в том числе на автоматически размеченных сторонних видео без проверки человеком, а результат зависит от положения и наклона камеры.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

McQueen driving model (drive-v5)

A small camera-only driving model for an autonomous go-kart on the Purdue Grand Prix track. One RGB frame goes in; three things come out: a pavement mask, a racing line (12 waypoints, 2 to 24 m ahead, in the kart's frame) and a target speed at each waypoint. It does not output steering or throttle. Controllers outside the model turn the line into commands from measured state, and a safety layer keeps the line inside the pavement the camera can see.

Status: a simulator result, not a road-tested model. It has never seen the kart's own camera and has never driven a real kart. See What this does not show.

drive-v5 driving a full lap of the simulated Purdue track from the camera alone

drive-v5 driving a full lap (64.6 s) of the simulated track from the camera alone. The path is coloured by speed; the thin orange lines are the lines the model chose along the way.

Code, training scripts, the simulator and the full version history are in the project repository: https://github.com/ExplodingCB/mcqueen-vip (branch training-perception, see docs/13-driving-model-versions.md).

Files

FileWhat it is
drive-v5.ptThe recommended model. Real-footage mask training and a clean simulated lap
checkpoints/drive-v3.ptBest simulated lap time (63.8 s); weaker on real footage
checkpoints/drive-v4.ptdrive-v3 plus real helmet-cam footage for the mask
checkpoints/drive-v6.ptTrained on a faster teacher line. Best open-loop numbers, but does not complete laps; included as a research result
model.py, driver.py, example.pyEverything needed to load a checkpoint and run it on an image
images/The pictures on this page
laptime-v2-best.jsonThe searched expert line (racing line offsets and speed limits) the faster teacher uses

Checksums (SHA-256)

FileSHA-256Size
checkpoints/drive-v3.ptce23623f702185460a999e423af3ac36670f49dfd3e08d41c65285bb1132ac5c15.7 MB
checkpoints/drive-v4.pt3d995f317eb3467ac0ca801500d060651d1ea6b3f68cea60bd9050f40043167715.7 MB
checkpoints/drive-v6.ptb1a7813b21b4e79b55e7c2f1c3f9a244fb7641a0550674d96e9f4e3058e057b515.7 MB
drive-v5.pt0d6ba0f1a4e45fd28c4f609fbfb0cb7256a9feaf2071bab200498a0fcc12ddcc15.7 MB

Use

# pip install torch numpy pillow
import numpy as np
from PIL import Image
from driver import Driver  # driver.py and model.py sit beside it

driver = Driver("drive-v5.pt")  # CPU by default
frame = np.asarray(Image.open("frame.jpg").convert("RGB").resize((480, 270)))  # uint8, 270 x 480 x 3
mask, line, speed = driver.predict_drive(frame)
# mask : (270, 480) pavement probability
# line : (12, 2) metres in the kart frame, x forward and y left, from 2 m to 24 m ahead
# speed: (12,)   metres per second the model wants at each waypoint

The model assumes a camera about 0.7 m above the ground, pitched about 8 degrees down, with a 100 degree horizontal field of view. A different mount shifts the line, because it is in metres. python example.py frame.jpg prints the same thing.

Pictures

What the model learned from. The simulator camera drapes the real 2023 aerial photo of the track over the ground (right), instead of the flat grey and green it started with (left). It is still a flat ground with no buildings and one day's lighting, so it is a harder test, not a photograph.

Simulator camera: flat render on the left, the aerial photo draped over the ground on the right

The labels. Each training frame carries the expert's racing line (magenta dots) and the speed it wants at each point (yellow, m/s). The camera mount and the image's appearance are randomized so the model does not depend on one exact mount.

Training frames with the expert's racing line and speeds drawn on them

Real footage, for the pavement mask. drive-v5's pavement mask on frames from three real nose-cam videos it was never trained on, against automatic SegFormer labels. Magenta: the model and the label agree. Red: the model says pavement and the label does not. Blue: the label says pavement and the model missed it. Each tile shows its own score. The first sheet is frames near the median; the second is the lowest-scoring frames, so you can see what it gets wrong. Across the 404 frames of these three clips the mean IoU is 0.91 (median 0.95, worst tenth 0.78), against 0.67 for a fixed "the lower part of the picture is road" guess. That guess is already strong on easy clips (0.90 on one of them), so the clip-by-clip numbers matter: 0.97, 0.93 and 0.82, against 0.90, 0.76 and 0.32.

drive-v5 pavement mask on held-out real frames, near the median

drive-v5 pavement mask on the lowest-scoring held-out real frames

Progress across versions. Open-loop errors on unseen simulator frames, the real-footage mask score, and the simulated lap-time search. drive-v6 has the best open-loop numbers but does not complete laps in the closed loop, which is why those numbers alone are not the measure that matters.

Progress across model versions

Model

DriveNet: a 3.9 M parameter encoder-decoder (a dilated bottleneck, all standard convolutions) with a mask head, plus a driving head that reads the bottleneck and the quarter-resolution decoder features (with pixel-coordinate channels) and regresses the line and speeds. Input is the 240 x 135 half-resolution frame. About 7 ms per frame on one CPU thread.

Training data

  • Simulator frames: the Purdue track with the 2023 Indiana orthophoto draped over a flat ground plane (Indiana's imagery service, marked CC0), camera mount and image appearance randomized, labeled with an expert's minimum-curvature racing line and the speed along it.
  • DAgger frames: frames from states the model itself reaches in closed loop (with steering bumps), labeled by the expert from where the kart actually is.
  • Real kart footage, for the mask only: about 2,300 frames from about 30 YouTube kart onboard videos (helmet cams and nose or bumper cams), pavement labeled automatically by SegFormer (ADE20K classes road, runway, sidewalk, path). These are pseudo-labels with no human review. The videos are third-party, so check their terms before redistributing or using this commercially.

Results (all in the simulator unless stated)

Measuredrive-v5
Closed-loop lap, camera only, default limits, no speed cap, 3 seeds64.6 s, 0.39 m closest to an edge
Racing-line error on unseen simulator frames, 2 to 10 m / 12 to 24 m ahead0.27 m / 0.54 m
Target-speed error0.34 m/s
Pavement mask IoU on unseen simulator frames0.979
Pavement mask IoU on 575 held-out real kart frames, against auto-labels0.84
Pavement mask IoU on 404 frames from three held-out real nose-cam videos0.91 (a fixed guess: 0.67)

For reference: a simulator-only model scores 0.39 on the real frames, below a fixed "the lower part of the picture is road" guess (0.47). Models trained on the faster teacher (drive-v6) fail to complete laps.

What this does not show

  • No version has seen the kart's own camera or driven a real kart. The held-out real frames are other people's cameras on other tracks, scored against automatic labels.
  • The racing line and speed were trained only on simulator frames. The mask is the only output that has been trained on real images, so how the line and speed behave on real frames is untested.
  • The track file is hand-traced from aerial imagery, and the simulated tyres, brakes and steering servo are placeholders. A 64.6 s simulated lap is not a prediction of the real kart.
  • The driving path (safety filter, corridor tracker) exists only in the Python simulator and is not yet ported to the kart's software or timed on the Jetson.

The intended use today is research, the simulator, and shadow mode (a person drives while the model only watches).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch · image-segmentation

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
26b26ef

0 моделей