Create a venv for python and activate: 'python3 -m venv ./torch-cv2' 'source ./torch-cv2/bin/activate'
Install dependencies:
OpenCV cv2: 'pip3 install opencv-contrib-python'
Pytorch with CUDA support: 'pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118'
Matplotlib and tkinter for GUI backend: 'sudo apt-get install python3-tk' 'pip3 install matplotlib'
Pytorch image models 'pip3 install timm'