How to Solve ERROR: torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35)
[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback
Error:
[INFO] Initializing front camera...
Traceback (most recent call last):
File ".\image_animation.py", line 76, in <module>
kp_driving_initial = kp_detector(source1)
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\modules\module.py", line 489, in __call__
result = self.forward(*input, **kwargs)
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\data_parallel.py", line 139, in forward
inputs, kwargs = self.scatter(inputs, kwargs, self.device_ids)
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\data_parallel.py", line 150, in scatter
return scatter_kwargs(inputs, kwargs, device_ids, dim=self.dim)
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 35, in scatter_kwargs
inputs = scatter(inputs, target_gpus, dim) if inputs else []
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 28, in scatter
return scatter_map(inputs)
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 15, in scatter_map
return list(zip(*map(scatter_map, obj)))
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 13, in scatter_map
return Scatter.apply(target_gpus, None, dim, obj)
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\_functions.py", line 95, in forward
main_stream.wait_stream(streams[i])
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 55, in wait_stream
self.wait_event(stream.record_event())
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 68, in record_event
event = Event()
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 162, in __init__
check_error(self._cudart.cudaEventCreateWithFlags(ctypes.byref(ptr), ctypes.c_uint(flags)))
File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\__init__.py", line 208, in check_error
raise CudaError(res)
torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35)
[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback
Solutions
torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35)
[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_ Msmf.cpp (674) sourcereadercb:: ~ sourcereadercb terminating async callback
torch.cuda.cuda error: CUDA driver version is not enough CUDA runtime version sourcereadercb:: ~ sourcereadercb terminating asynchronous callback error
Solutions
related articles : Python: detailed introduction of the most correct version matching and corresponding version installation between Python/torch vision version and CUDA version in deep learning
Check torch and the CUDA version that torch is suitable for. Most of the problems are caused by version mismatch
Similar Posts:
- [Solved] Pytoch nn.CrossEntropyLoss Error: RuntimeError: expected scalar type Long but found Float
- [Solved] Error caused by correspondence between tensorflow GPU version number and CUDA
- Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same
- [Solved] UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa5 in position 1508: illegal multibyte sequence
- [Solved] pytorchImportError: numpy.core.multiarray failed to import
- [Solved] requests.exceptions.InvalidSchema: No connection adapters were found for
- [Solved] Exception: Jupyter command `jupyter-notbook` not found.
- Pytorch Install Error: OSError: [WinError 126] Could not Find the Module, Error loading “xx\lib\site-packages\torch\lib\asmjit.dl
- Error report of cell timed task startup: KeyError: ‘scheduler’ KeyError: ‘entries’
- pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it’s not in you…