A YOLOv8n model fine-tuned on Bangladeshi roadside traffic footage to detect and classify 9 vehicle and pedestrian types common in South Asian urban environments. Designed for real-time inference — 3.4 ms per image on GPU, ~15 FPS end-to-end in the streaming pipeline.
Evaluated on 4,736 validation images (52,850 instances).
This model is optimised for Bangladeshi and similar South Asian traffic environments where CNGs, rickshaws, and cycle rickshaws are prevalent — classes typically absent from Western traffic datasets.
1from ultralytics import YOLO
2
3model = YOLO("best.pt")
4results = model("traffic.mp4", imgsz=480, conf=0.3)
1from ultralytics import YOLO
2
3model = YOLO("best.pt")
4results = model.track(
5 source="traffic.mp4",
6 tracker="bytetrack.yaml",
7 imgsz=480,
8 conf=0.3,
9 iou=0.5,
10 persist=True,
11 stream=True,
12)
13
14for result in results:
15 print(result.boxes)
The model powers a real-time FastAPI + WebSocket dashboard with live class filtering, speed estimation, and Chart.js visualisations.
1@misc{abrar_hameem_2026,
2 author = { Abrar Hameem },
3 title = { traffice-detection-best (Revision 0567f6e) },
4 year = 2026,
5 url = { https://huggingface.co/abrarhameem398/traffice-detection-best },
6 doi = { 10.57967/hf/8409 },
7 publisher = { Hugging Face }
8}
9
10@misc{bangladeshi-traffic-dataset,
11 author = {Islam, Mohammad Manzurul; Rashid, Mohammad Rifat Ahmmad },
12 title = {Bangladeshi Traffic Flow Dataset},
13 year = {2024},
14 publisher = {Mendeley Data},
15 doi = {10.17632/h8bfgtdp2r.2},
16 url = {https://data.mendeley.com/datasets/h8bfgtdp2r/2}
17}