compile open cv with cuda for rtx gpus
https://gist.github.com/raulqf/f42c71...
search this file in open cv build folder cv2.cpython-36m-x86_64-linux-gnu.so
check weather gpu based open cv is compiled and installed properly using this code below but make sure you are on the environment using workon cv get into the virtual environment and try the code
import cv2
count = cv2.cuda.getCudaEnabledDeviceCount()
count
https://stackoverflow.com/questions/6...
https://github.com/pjreddie/darknet/i...
https://docs.nvidia.com/tao/tao-toolk...
https://towardsdatascience.com/yolov4...
https://github.com/aj-ames/YOLOv4-Ope...
nvidia-smi to show how GPU is used dynamically
https://deeplearning.lipingyang.org/2...
if this error comes while you have an old GPU integrated mention the GPU device number in yolov5 training as 0 in my case it's 0 rtx 5000 your case it depends on the GPU where pytorch cuda drivers properly installed only use when it shows the below error as device 0 and install python 3.7 and above hence yolov5 accept GPU pytorch above 3.7
RuntimeError: NCCL Error 1: unhandled cuda error
python train.py --img 640 --batch 16 --epochs 3 --data /home/amit/yolov5/data/Custom.yaml --cfg /home/amit/yolov5/models/yolov5s.yaml --weights '' --name yolov5s_results --cache --device 0
https://github.com/pytorch/pytorch/is...
https://stackoverflow.com/questions/7...
Watch video install compile open cv 4.5 with cuda to run GPU multithreading speed gpu opencv ubantu 18.04 LTS online without registration, duration 16 minute 40 second in high quality. This video was added by user RANDOM NEURAL MONK 08 May 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 87 once and liked it 2 people.