This is a real-time vehicle detection application built with YOLOv12 and Gradio. It allows you to upload videos and visualize vehicle detections using a fine-tuned YOLOv8 model.
- Easy-to-use web interface with Gradio
- Upload and process any video file
- Real-time visualization of vehicle detection
- Processed videos can be downloaded
Clone this repository and install the required dependencies:
git clone https://github.com/yourusername/vehicle-detection.git
cd vehicle-detection
pip install -r requirements.txtRun the application with:
python app.pyThen open your web browser and navigate to the provided URL (typically http://127.0.0.1:7860).
- Upload a video using the "Upload Video" section
- Click the "Submit" button to process the video
- View the results in the "Processed Video" section
- Download the processed video if needed
The application uses a fine-tuned YOLOv8 model (best.pt) trained specifically for vehicle detection. The model can detect various types of vehicles with high accuracy.
This application can be easily deployed to Hugging Face Spaces:
- Fork this repository
- Create a new Space on Hugging Face
- Link your GitHub repository to the Space
- Select Gradio as the SDK
- Deploy!
MIT