Downloads · 30 days
0
vietnguyennn0705/highway-vehicle-detection-full
highway-vehicle-detection-full is a object detection model from vietnguyennn0705. Use it when you need objects located in an image. The card lists the license as mit.
A comprehensive vehicle detection system for highway traffic monitoring, including trained models, datasets, videos, and complete source code.
Downloads · 30 days
0
Access
Public
Updated Oct 23, 2025
Repo size
2.4 GB
Likes
0
Public
Click a slice to open those files.
.mp42.3 GB · 96%
From the Hugging Face model README
A comprehensive vehicle detection system for highway traffic monitoring, including trained models, datasets, videos, and complete source code.
runs/detect/yolov8m_stage1_smart/weights/best.pt - Stage 1 modelruns/detect/yolov8m_stage2_improved/weights/best.pt - Final improved modeldataset/ - Main training dataset (8,219 images + labels)new_finetunedata/ - Fine-tuning dataset (92 images + labels)input and output/test_video.mp4 - Input test videoinput and output/detection_output_improved.mp4 - Output with detectionsmain.py - Main application for vehicle detection and countingtest_improved_model.bat - Testing scriptPROJECT_REPORT.md - Complete project documentationdataset/data.yaml - Main dataset configurationnew_finetunedata/data.yaml - Fine-tuning dataset configurationrequirements.txt - Python dependenciespip install ultralytics opencv-python numpy
from ultralytics import YOLO
# Load the trained model
model = YOLO('runs/detect/yolov8m_stage2_improved/weights/best.pt')
# Process video
results = model('input and output/test_video.mp4', save=True)
python main.py
dataset/)new_finetunedata/)highway-vehicle-detection-full/
├── runs/
│ └── detect/
│ ├── yolov8m_stage1_smart/
│ │ └── weights/
│ │ ├── best.pt
│ │ └── last.pt
│ └── yolov8m_stage2_improved/
│ └── weights/
│ ├── best.pt
│ └── last.pt
├── dataset/
│ ├── data.yaml
│ └── train/
│ ├── images/ (8,219 images)
│ └── labels/ (8,219 label files)
├── new_finetunedata/
│ ├── data.yaml
│ └── train/
│ ├── images/ (92 images)
│ └── labels/ (92 label files)
├── input and output/
│ ├── test_video.mp4
│ └── detection_output_improved.mp4
├── main.py
├── PROJECT_REPORT.md
├── requirements.txt
└── README.md
from ultralytics import YOLO
import cv2
# Load model
model = YOLO('runs/detect/yolov8m_stage2_improved/weights/best.pt')
# Detect objects in image
results = model('path/to/image.jpg')
# Process results
for result in results:
boxes = result.boxes
for box in boxes:
x1, y1, x2, y2 = box.xyxy[0]
conf = box.conf[0]
cls = int(box.cls[0])
print(f"Class: {cls}, Confidence: {conf:.2f}")
# Process video file
results = model('input and output/test_video.mp4', save=True, save_txt=True)
MIT License - See LICENSE file for details
This is a research project. For questions or improvements, please contact the author.
Author: Nguyen Quoc Viet
Repository: https://huggingface.co/datasets/bichuche0705/highway-vehicle-detection-full
If you use this dataset or model in your research, please cite:
@misc{highway-vehicle-detection-full,
title={Highway Vehicle Detection - Complete Project},
author={Nguyen Quoc Viet},
year={2024},
url={https://huggingface.co/datasets/bichuche0705/highway-vehicle-detection-full}
}