Detecting Traffic Law Violators Running through Red Light Using Pre-Trained YOLOv8 Model
- Python 3.9
- Terminal (Windows PowerShell)
- IDE (Microsoft Visual Studio Code)
-
Clone this repository
git clone git@github.com:AhdaArif/YOLOv8.git
-
Generate virtual environment
py -3.9 -m venv Env
-
Activate the environment
./Env/Scripts/Activate.ps1
-
Install Numpy
py install numpy
-
Downgrade the PIP to the version 21.1.1
./Env/Scripts/python.exe -m pip install pip==21.1.1
-
Install LAP
pip install lap
-
Reupgrade the PIP to the latest
./Env/Scripts/python.exe -m pip install -U pip
-
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
-
Install Ultralytics
pip install ultralytics