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...
Смотрите видео install compile open cv 4.5 with cuda to run GPU multithreading speed gpu opencv ubantu 18.04 LTS онлайн без регистрации, длительностью 16 минут 40 секунд в хорошем качестве. Это видео добавил пользователь RANDOM NEURAL MONK 08 Май 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 87 раз и оно понравилось 2 людям.