Object Detection
ultralytics
computer-vision
yolov8
vehicle-detection
traffic-analysis
highway-monitoring
Instructions to use vietnguyennn0705/highway-vehicle-detection-code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use vietnguyennn0705/highway-vehicle-detection-code with ultralytics:
from ultralytics import YOLOvv8 model = YOLOvv8.from_pretrained("vietnguyennn0705/highway-vehicle-detection-code") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Highway Vehicle Detection - Team Instructions
Quick Setup
Clone the repository:
git clone https://huggingface.co/bichuche0705/highway-vehicle-detection-code cd highway-vehicle-detection-codeInstall dependencies:
pip install ultralytics opencv-python numpyRun the application:
python main.py
External Resources
Test Video
Watch the model in action: YouTube Demo
Main Dataset
Download the complete training dataset: Kaggle Dataset
What's Included
- Trained Models: Ready-to-use YOLOv8m models
- Source Code: Complete detection application
- Fine-tuning Dataset: 92 images used for model improvement
- Training Logs: Performance metrics and visualizations
- Documentation: Complete project documentation
Model Files
models/yolov8m_stage2_improved_best.pt- Final model (recommended)models/yolov8m_stage1_smart_best.pt- Stage 1 model
Usage Examples
Basic Detection
from ultralytics import YOLO
model = YOLO('models/yolov8m_stage2_improved_best.pt')
results = model('image.jpg')
results[0].show()
Video Processing
results = model('video.mp4', save=True)
Support
For questions or issues, contact the project author.