/ Модель

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

Лицензия
AGPL 3.0
Библиотека
ultralytics
Опубликована
3 окт 2026

traffic-monitor-yolov8s-visdrone

Поиск объектовИзображение → bounding_boxes

YOLOv8s, дообученная на VisDrone для обнаружения автомобилей, пешеходов и других участников движения на кадрах с приподнятых камер.

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

Бенчмарки

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

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

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

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

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

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

Это модель обнаружения объектов YOLOv8s, дообученная для поиска участников дорожного движения на кадрах с дронов и других приподнятых или стационарных камер. Её разработчик обучил её на VisDrone2019-DET и объединил исходные классы в шесть дорожных категорий: пешеходы, велосипеды, автомобили, автобусы, грузовики и мотоциклы. В репозитории доступны веса PyTorch; модель использует библиотеку Ultralytics.

Модель предназначена для обнаружения транспортных средств и пешеходов на изображениях или кадрах видео и может служить детектором в системах мониторинга дорожной обстановки. На валидационной выборке VisDrone она показала более высокие метрики, чем стандартная YOLOv8s на тех же классах, однако эта выборка использовалась при выборе эпохи обучения, а отдельной оценки на test-dev не проводилось.

Качество зависит от ракурса и условий съёмки: обучение проводилось только на видео с дронов, поэтому на автомобильных регистраторах модель может находить меньше объектов, чем стандартный детектор. Она хуже распознаёт велосипеды, мотоциклы, грузовики, автобусы и людей, путает некоторые категории и пропускает мелкие объекты при низком разрешении. Модель не предназначена для систем, критичных к безопасности. Лицензия AGPL-3.0.

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

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

Ограничения

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

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

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

Открыть на Hugging Face

YOLOv8s fine-tuned for elevated-camera traffic scenes (VisDrone)

A YOLOv8s detector fine-tuned on VisDrone2019-DET and remapped to six traffic classes. It is the optional detector of the Traffic-Monitor project, a pipeline that reports jams, crashes, stopped vehicles and pedestrian conflicts from video.

Short version: much better than the stock COCO model on drone / elevated views of vehicles, but it learned from drone footage, so check it on your own footage — on one dashcam clip it found fewer vehicles than the stock model.

Classes

The classes keep the COCO ids, so the model is a drop-in replacement wherever yolov8s.pt is used with a class filter:

idclassbuilt from (VisDrone)
0personpedestrian, people
1bicyclebicycle
2carcar, van, tricycle, awning-tricycle
3motorcyclemotor
5busbus
7trucktruck

Ids 4 and 6 (unused4, unused6) exist only to keep the other ids aligned with COCO and are never predicted.

Results

Evaluated on VisDrone2019-DET validation (548 images, 38,759 boxes), imgsz 960. The same split was used to pick the best epoch, so these numbers are slightly optimistic; no test-dev evaluation was run.

modelmAP50mAP50-95
stock YOLOv8s (COCO), same classes0.2580.151
this model0.5530.333

Per class, mAP50-95: car 0.598 · bus 0.462 · truck 0.310 · motorcycle 0.259 · person 0.256 · bicycle 0.113.

normalised confusion matrix

The matrix is computed at Ultralytics' validation confidence of 0.001, which inflates cross-class confusion and the "background" column. It still shows the real weak spots: motorcycles, bicycles and people are mixed up with each other (only about a third of motorcycles and bicycles are labelled correctly) and 40% of trucks are called cars.

Training log

Validation metrics during training (VisDrone validation set, full per-epoch log in training/results.csv):

epochmAP50mAP50-95precisionrecall
10.3760.2090.5030.375
50.4510.2580.5930.418
100.4840.2810.5660.463
150.5170.3050.6150.488
200.5380.3190.6530.498
260.5600.3350.6620.511
300.5570.3330.6620.507

Improvement was steady and had flattened by epoch 25-26; Ultralytics keeps the best epoch (26 by mAP50-95) as the shipped weights. The final re-validation above (0.553 / 0.333) differs slightly from the in-training log because it re-runs validation with the maximum detections raised to match the densest image (up to 902 objects).

Demo videos

demos/ has an annotated demo of the Traffic-Monitor pipeline on a scripted synthetic scene, with its event log. It was made with the stock YOLOv8s detector, not with these weights, and shows the decision rules rather than this model. Details and caveats: demos/README.md.

Limitations — please read

  • Domain: trained only on drone footage. In a small spot check on 24 frames, it found about twice as many vehicles as the stock model on elevated or fixed cameras, but fewer on a dashcam clip (1.8 vs 5.2 per frame). Detection counts are not accuracy; that was not measured on real traffic-camera footage.
  • Weak on bicycles, trucks, buses and riders (see above). Class merges (pedestrian + people, car + van) lose information.
  • Small objects at low resolution are still missed; training and evaluation used imgsz 960.
  • Not intended for safety-critical use.

Usage

from ultralytics import YOLO
model = YOLO("yolov8s_traffic_best.pt")
results = model.predict("road.jpg", imgsz=960, conf=0.4, classes=[0, 1, 2, 3, 5, 7])

With the Traffic-Monitor pipeline:

python -m traffic_watch --source clip.mp4 --weights yolov8s_traffic_best.pt --imgsz 960

Training

Base yolov8s.pt; 30 epochs, imgsz 960, batch 8, AdamW (Ultralytics auto), cosine LR, mosaic off for the last 3 epochs, AMP, one Tesla T4 (1.75 h), Ultralytics 8.4.171. Training set: VisDrone2019-DET train (6,471 images, 343,205 boxes after remapping). Reproduce with notebooks/01_yolo_finetune_traffic.ipynb in the GitHub repository.

License and data

  • Weights: AGPL-3.0, inherited from Ultralytics YOLOv8.
  • Training data: VisDrone (Tianjin University, AISKYEYE). It ships without a licence file and is intended for research use; check its terms before any commercial use. Cite: Du et al., "Detection and Tracking Meet Drones Challenge", IEEE TPAMI 2022.

Files in this repository

filewhat
yolov8s_traffic_best.ptthe fine-tuned weights
training/args.yamlthe exact training hyperparameters (paths are those of the Kaggle machine)
training/data.yamlthe class mapping used for training
training/results.csvper-epoch losses and validation metrics
training/curves/F1, precision and recall curves against confidence
training/samples/validation images with the true boxes (*_labels) and this model's predictions (*_pred)
training/labels.jpgdistribution of the remapped training labels
demos/an annotated pipeline demo (synthetic scene) made with the stock detector, plus its event log
assets/confusion matrix, training curves, PR curve and results used on this page

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

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

GPU в ailist

Универсальный рантайм · ultralytics

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

Модели Ultralytics YOLO требуют отдельного рантайма.

Ревизия весов
602a65e

0 моделей