Repository navigation
Installation Guide
Arbaaz edited this page Sep 8, 2025
·
2 revisions
- Python: Latest version
- NVIDIA GPU (highly recommended): For accelerated processing
-
Install Python
- Download and install from Python's official website.
-
Set Up YOLOv8 Project
mkdir YOLO_PROJECT/yolov8-python cd YOLO_PROJECT/yolov8-python
-
Create a Virtual Environment
-
Using venv:
python -m venv env
Activate the virtual environment:
- On Windows:
.\env\Scripts\activate
- On macOS/Linux:
source env/bin/activate
- On Windows:
-
Using conda: For detailed instructions on creating a conda environment, refer to the Official Anaconda Documentation.
-
-
Install GPU Drivers and CUDA
- Install NVIDIA GPU drivers.
-
Install Required Packages
- Install the packages from the "requirements.txt" file.
pip install -r requirements.txt
- Install pyTorch and its dependencies. Get the architecture, platform and select the latest version of cuda from pyTorch Website
EXAMPLE
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
-
Verification
- Verify all installations by running the test files from the "TestFiles" folder.
- Run "Test_Camera.py" to get the ids for the camera source.
- Run "Test_Cuda_GPU.py" to check the proper verification of cuda installation and gpu detection.
- Verify all installations by running the test files from the "TestFiles" folder.