Skip to content

Latest commit

 

History

History
53 lines (49 loc) · 1.23 KB

README.md

File metadata and controls

53 lines (49 loc) · 1.23 KB

Computer Vision Project

Detecting Traffic Law Violators Running through Red Light Using Pre-Trained YOLOv8 Model


Pre-Requisites:

  1. Python 3.9
  2. Terminal (Windows PowerShell)
  3. IDE (Microsoft Visual Studio Code)

How to Use This:

  1. Clone this repository

    git clone git@github.com:AhdaArif/YOLOv8.git
  2. Generate virtual environment

    py -3.9 -m venv Env
  3. Activate the environment

    ./Env/Scripts/Activate.ps1
  4. Install Numpy

    py install numpy
  5. Downgrade the PIP to the version 21.1.1

    ./Env/Scripts/python.exe -m pip install pip==21.1.1
  6. Install LAP

    pip install lap
  7. Reupgrade the PIP to the latest

    ./Env/Scripts/python.exe -m pip install -U pip
  8. Install PyTorch with CUDA support or not

    For CUDA-capable system:

    pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118

    For just of CPU use, without GPU acceleration:

    pip install torch torchvision
  9. Install Ultralytics

    pip install ultralytics