zee5han commited on
Commit
66467df
·
verified ·
1 Parent(s): 4211062

Add model card

Browse files
Files changed (1) hide show
  1. README.md +119 -0
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: agpl-3.0
3
+ library_name: ultralytics
4
+ pipeline_tag: object-detection
5
+ tags:
6
+ - yolo
7
+ - yolo26
8
+ - traffic
9
+ - vehicles
10
+ - dashcam
11
+ - south-asia
12
+ - autonomous-driving
13
+ datasets:
14
+ - visaitech/vehicle-mixed-traffic-detection
15
+ ---
16
+
17
+ # Mixed-Traffic Vehicle Detector, YOLO26n (v0.1)
18
+
19
+ A YOLO26n fine-tune that detects **pedestrian / 2-wheeler / 3-wheeler /
20
+ 4-wheeler** in South Asian mixed traffic, trained on the
21
+ [Visaitech Mixed-Traffic Vehicle Detection dataset (v0.1)](https://huggingface.co/datasets/visaitech/vehicle-mixed-traffic-detection).
22
+ The class taxonomy covers what general-purpose COCO detectors don't: an
23
+ auto-rickshaw class, and a single 2-wheeler class for how motorcycles and
24
+ bicycles actually mix in this traffic.
25
+
26
+ This is an early **v0.1 baseline** trained on 239 images: a working proof
27
+ of concept, not a production-grade detector. Expect it to improve as the
28
+ dataset grows.
29
+
30
+ - **Architecture**: YOLO26n (nano), ~2.5M parameters, ~5.4MB weights
31
+ - **Input size**: 640x640
32
+ - **Classes**: `pedestrian` (0), `2-wheeler` (1), `3-wheeler` (2), `4-wheeler` (3)
33
+
34
+ ## Usage
35
+
36
+ ```python
37
+ from ultralytics import YOLO
38
+
39
+ model = YOLO("best.pt")
40
+ results = model.predict("street.jpg")
41
+ results[0].show()
42
+ ```
43
+
44
+ ## Evaluation
45
+
46
+ Validation split: 54 images / 209 boxes, held out by whole source video
47
+ (not by frame) so near-duplicate frames never straddle the train/val
48
+ boundary.
49
+
50
+ The model was trained and evaluated on the original frames. The published
51
+ dataset is the anonymized copy (pixelated heads and license plates,
52
+ blacked-out timestamp region), which changes object appearance enough to
53
+ lower the numbers, so both are reported. If you re-run validation against
54
+ the public dataset, expect the second table.
55
+
56
+ ### On original (non-public) frames
57
+
58
+ | class | instances | precision | recall | mAP50 | mAP50-95 |
59
+ |------------|----------:|----------:|-------:|------:|---------:|
60
+ | pedestrian | 9 | 0.688 | 0.333 | 0.383 | 0.250 |
61
+ | 2-wheeler | 128 | 0.653 | 0.875 | 0.796 | 0.502 |
62
+ | 3-wheeler | 32 | 0.494 | 0.854 | 0.764 | 0.560 |
63
+ | 4-wheeler | 40 | 0.915 | 0.875 | 0.934 | 0.704 |
64
+ | **all** | **209** | **0.688** | **0.734** | **0.719** | **0.504** |
65
+
66
+ ### On the published anonymized frames
67
+
68
+ | class | instances | precision | recall | mAP50 | mAP50-95 |
69
+ |------------|----------:|----------:|-------:|------:|---------:|
70
+ | pedestrian | 9 | 0.656 | 0.333 | 0.251 | 0.166 |
71
+ | 2-wheeler | 128 | 0.620 | 0.750 | 0.695 | 0.332 |
72
+ | 3-wheeler | 32 | 0.538 | 0.719 | 0.708 | 0.509 |
73
+ | 4-wheeler | 40 | 0.485 | 0.875 | 0.862 | 0.648 |
74
+ | **all** | **209** | **0.575** | **0.669** | **0.629** | **0.414** |
75
+
76
+ ## Training details
77
+
78
+ - Fine-tuned from the official `yolo26n.pt` COCO checkpoint with
79
+ Ultralytics defaults (auto optimizer, lr0 0.01, seed 0), image size 640,
80
+ batch 8.
81
+ - Early-stopped at epoch 105 of a 150-epoch budget (patience 30); best
82
+ checkpoint from epoch 75.
83
+ - Trained on CPU (laptop-class i7-10510U, ~94s/epoch, under 3 hours
84
+ total): the dataset is small enough that this was more stable than the
85
+ available 2GB-VRAM laptop GPU.
86
+
87
+ ## Limitations
88
+
89
+ - **Weak on pedestrians**: recall is only 0.333. The v0.1 training set has
90
+ just 39 pedestrian boxes (~2.6% of all boxes), so this class needs more
91
+ data, not more training. Do not rely on this model to find people.
92
+ - **Daytime only**: all training footage is daylight (10:14 to 16:19).
93
+ Performance on night footage is untested and likely poor.
94
+ - **Single camera setup**: all frames come from the same dashcam hardware
95
+ and region. Expect domain shift on other cameras, mounting positions, or
96
+ countries.
97
+ - **Not a safety component**: this is a portfolio/research baseline. Do
98
+ not use it for collision avoidance, driver assistance, or any
99
+ safety-critical decision.
100
+
101
+ ## License
102
+
103
+ AGPL-3.0. The model is a fine-tune of Ultralytics YOLO26n weights and is
104
+ used via the AGPL-3.0-licensed `ultralytics` package, so the weights are
105
+ released under the same license. The training dataset is separately
106
+ licensed CC BY 4.0.
107
+
108
+ ## Citation
109
+
110
+ ```
111
+ @misc{visaitech_mixed_traffic_yolo26n_2026,
112
+ title = {Mixed-Traffic Vehicle Detector, YOLO26n},
113
+ author = {Visaitech},
114
+ year = {2026},
115
+ version = {0.1},
116
+ publisher = {Hugging Face},
117
+ url = {https://huggingface.co/visaitech/vehicle-mixed-traffic-yolo26n}
118
+ }
119
+ ```