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 | |
| 1. **Clone the repository:** | |
| ```bash | |
| git clone https://huggingface.co/bichuche0705/highway-vehicle-detection-code | |
| cd highway-vehicle-detection-code | |
| ``` | |
| 2. **Install dependencies:** | |
| ```bash | |
| pip install ultralytics opencv-python numpy | |
| ``` | |
| 3. **Run the application:** | |
| ```bash | |
| python main.py | |
| ``` | |
| ## External Resources | |
| ### Test Video | |
| Watch the model in action: [YouTube Demo](https://www.youtube.com/watch?v=wqctLW0Hb_0&list=PLJKyZ_NuOhJQzif2-6-Kq9OiOj_UjJWvi) | |
| ### Main Dataset | |
| Download the complete training dataset: [Kaggle Dataset](https://www.kaggle.com/datasets/sakshamjn/vehicle-detection-8-classes-object-detection/data) | |
| ## 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 | |
| ```python | |
| from ultralytics import YOLO | |
| model = YOLO('models/yolov8m_stage2_improved_best.pt') | |
| results = model('image.jpg') | |
| results[0].show() | |
| ``` | |
| ### Video Processing | |
| ```python | |
| results = model('video.mp4', save=True) | |
| ``` | |
| ## Support | |
| For questions or issues, contact the project author. | |