Downloads · 30 days
75
36% of all-time downloads
visaitech/vehicle-mixed-traffic-yolo26n
vehicle-mixed-traffic-yolo26n is a object detection model from visaitech. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as agpl-3.0.
A YOLO26n fine-tune that detects pedestrian / 2-wheeler / 3-wheeler / 4-wheeler in South Asian mixed traffic, trained on the Visaitech Mixed-Traffic Vehicle Detection dataset (v0.1). The class taxonomy covers what gen…
Downloads · 30 days
75
36% of all-time downloads
All-time downloads
207
Public
Repo size
12.1 MB
Likes
0
Public
Click a slice to open those files.
.pt5.4 MB · 44%
From the Hugging Face model README
A YOLO26n fine-tune that detects pedestrian / 2-wheeler / 3-wheeler / 4-wheeler in South Asian mixed traffic, trained on the Visaitech Mixed-Traffic Vehicle Detection dataset (v0.1). The class taxonomy covers what general-purpose COCO detectors don't: an auto-rickshaw class, and a single 2-wheeler class for how motorcycles and bicycles actually mix in this traffic.
This is an early v0.1 baseline trained on 239 images: a working proof of concept, not a production-grade detector. Expect it to improve as the dataset grows.
pedestrian (0), 2-wheeler (1), 3-wheeler (2), 4-wheeler (3)
The model wired into a simple proximity risk overlay: safe objects get a
thin green outline, close objects are tagged orange (caution) or red
(critical). The footage is a clip from the raw archive that ships with
the training dataset. A higher-quality video of the same run is in this
repo as demo.mp4, and the overlay code plus a runnable Gradio app live
at github.com/visaitech/mixed-traffic-risk-detector.
from ultralytics import YOLO
model = YOLO("best.pt")
results = model.predict("street.jpg")
results[0].show()
Validation split: 54 images / 209 boxes, held out by whole source video (not by frame) so near-duplicate frames never straddle the train/val boundary.
The model was trained and evaluated on the original frames. The published dataset is the anonymized copy (pixelated heads and license plates, blacked-out timestamp region), which changes object appearance enough to lower the numbers, so both are reported. If you re-run validation against the public dataset, expect the second table.
| class | instances | precision | recall | mAP50 | mAP50-95 |
|---|---|---|---|---|---|
| pedestrian | 9 | 0.688 | 0.333 | 0.383 | 0.250 |
| 2-wheeler | 128 | 0.653 | 0.875 | 0.796 | 0.502 |
| 3-wheeler | 32 | 0.494 | 0.854 | 0.764 | 0.560 |
| 4-wheeler | 40 | 0.915 | 0.875 | 0.934 | 0.704 |
| all | 209 | 0.688 | 0.734 | 0.719 | 0.504 |
| class | instances | precision | recall | mAP50 | mAP50-95 |
|---|---|---|---|---|---|
| pedestrian | 9 | 0.656 | 0.333 | 0.251 | 0.166 |
| 2-wheeler | 128 | 0.620 | 0.750 | 0.695 | 0.332 |
| 3-wheeler | 32 | 0.538 | 0.719 | 0.708 | 0.509 |
| 4-wheeler | 40 | 0.485 | 0.875 | 0.862 | 0.648 |
| all | 209 | 0.575 | 0.669 | 0.629 | 0.414 |
yolo26n.pt COCO checkpoint with
Ultralytics defaults (auto optimizer, lr0 0.01, seed 0), image size 640,
batch 8.AGPL-3.0. The model is a fine-tune of Ultralytics YOLO26n weights and is
used via the AGPL-3.0-licensed ultralytics package, so the weights are
released under the same license. The training dataset is separately
licensed CC BY 4.0.
@misc{visaitech_mixed_traffic_yolo26n_2026,
title = {Mixed-Traffic Vehicle Detector, YOLO26n},
author = {Visaitech},
year = {2026},
version = {0.1},
publisher = {Hugging Face},
url = {https://huggingface.co/visaitech/vehicle-mixed-traffic-yolo26n}
}