Home > database >  RuntimeError: Unable to find a valid cuDNN algorithm to run convolution
RuntimeError: Unable to find a valid cuDNN algorithm to run convolution

Time:06-24

I was training yolov5 with custom dataset and got the error in the title. The command I used:

$ python train.py --img 640 --batch 16 --epochs 3 --data D:\custom\data.yaml --weights yolov5s.pt 

I have python 3.9, pytorch 1.11 and cuda 11.7

CodePudding user response:

Please check your cuDNN version. CUDA 11.7 seems like a very recent update and cuDNN may have problem with it. Try use CUDA 11.6 instead, with cuDNN 8.4.1.

  • Related