RuntimeError: Unable to find a valid cuDNN algorithm to run convolution
Preface solution
preface
Today, we use Yolo V5.6 training model and modify the batch size to 32. The following error occurred:
Starting training for 100 epochs...
Epoch gpu_mem box obj cls labels img_size
0%| | 0/483 [00:04<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 620, in <module>
main(opt)
File "train.py", line 517, in main
train(opt.hyp, opt, device, callbacks)
File "train.py", line 315, in train
pred = model(imgs) # forward
File "E:\Anaconda3\envs\yolov550\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "D:\liufq\yolov5-6.0\models\yolo.py", line 126, in forward
return self._forward_once(x, profile, visualize) # single-scale inference, train
File "D:\liufq\yolov5-6.0\models\yolo.py", line 149, in _forward_once
x = m(x) # run
File "E:\Anaconda3\envs\yolov550\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "D:\liufq\yolov5-6.0\models\common.py", line 137, in forward
return self.cv3(torch.cat((self.m(self.cv1(x)), self.cv2(x)), dim=1))
File "E:\Anaconda3\envs\yolov550\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "D:\liufq\yolov5-6.0\models\common.py", line 45, in forward
return self.act(self.bn(self.conv(x)))
File "E:\Anaconda3\envs\yolov550\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "E:\Anaconda3\envs\yolov550\lib\site-packages\torch\nn\modules\conv.py", line 443, in forward
return self._conv_forward(input, self.weight, self.bias)
File "E:\Anaconda3\envs\yolov550\lib\site-packages\torch\nn\modules\conv.py", line 440, in _conv_forward
self.padding, self.dilation, self.groups)
RuntimeError: Unable to find a valid cuDNN algorithm to run convolution
terms of settlement
Modify the size of batchsize and make it smaller.
Read More:
- Pytorch RuntimeError CuDNN error CUDNN_STATUS_SUCCESS (How to Fix)
- RuntimeError: cuDNN error: CUDNN_ STATUS_ EXECUTION_ Failed solutions
- Tensorflow UnknownError (see above for traceback): Failed to get convolution algorithm. This is pro
- (Solved) pytorch error: RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED (install cuda)
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED
- npm run devstart error: Error: Unable to find module ‘semver’
- RuntimeError: cudnn RNN backward can only be called in training mode
- RuntimeError: Unable to locate turbojpeg library automatically. You may specify the turbojpeg librar
- Load balancing failed to find a valid mailbox database
- Could NOT find CUDNN: Found unsuitable version “..“, but required is at least “6“
- The solution to frequently pop up “cannot find a valid baseurl for repo” error prompt box in CentOS 6.7
- java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context
- tensorflow2.1 Error:Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
- MySQL error — multiple methods of failed to find valid data directory and MySQL setting password appear
- Solve runtimeerror: reduce failed to synchronize: device side assert triggered problem
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.
- RuntimeError: CUDA error: out of memory solution (valid for pro-test)
- Python error: importerror: DLL load failed: unable to find the specified module solution
- Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root!
- Java error: unable to find or load the main class