tfg-carvarsou / Vehicle-Classification

:red_car: Vehicle detection and classification project (2024)
Apache License 2.0
0 stars 0 forks source link

Vehicle-Classification

Vehicle detection and classification project (2024)

Introduction

In this project, the aim is to train machine learning models for detection and classification of vehicles and run them in a web application for real-time inference. The project focuses on utilizing computer vision techniques to automatically identify vehicles in a road and classify vehicles based on their make and model.

Project Components

  1. Data Collection: Download the Roboflow-100 Vehicles Collection for detection tasks and Stanford Car Dataset for classification tasks.
  2. Data Preprocessing: Clean and preprocess the dataset to prepare it for training the models.
  3. Model Training: Train computer vision models using state-of-the-art techniques and frameworks such as PyTorch.
  4. Evaluation: Evaluate the trained models on test datasets to measure their accuracy, precision, and other measures.
  5. Integration: Integrate the trained models into an application for real-time vehicle detection and classification.

Installation in Windows/Linux

Prerequisites (only in Windows)

  1. Prior to installing WSL in Windows

    • Search in Windows: Control Panel > Programs > Activate or deactive Windows features.
    • Enable "Virtual Machine Platform", "Windows Hypervisor Platform" and "Windows Subsytem for Linux".
    • Restart your PC after making those changes.
  2. Steps to install WSL in Windows

    • Go to Microsoft Store and install "Windows Subsystem for Linux".
    • Open Windows Powershell as Administrator and check if WSL is installed:
    wsl --status
    • Go back to Microsoft Store and install "Debian" or "Ubuntu".
    • Open the chosen OS terminal and create a UNIX user and password. Then install git:
    sudo apt update && sudo apt install git

Steps to Install the Environment

  1. Clone the repository:
  1. Install Miniconda:
  1. Create a Conda Environment:
  1. Activate the Environment:

    conda init
    conda activate env

    To deactivate:

    conda deactivate env
  2. Install the requirements:

Training the models (optional)

Running the webapp API locally

Running the application UI locally

License

This project is released under the Apache 2.0 License. For more information, check: https://www.apache.org/licenses/LICENSE-2.0.

Contributors

Carlos Varela Soult (carvarsou)

Acknowledgements

Roboflow 100 Project

Stanford Car Dataset by J. Utrera