成功解决torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35) [ WARN:0

简介: 成功解决torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35) [ WARN:0


目录

解决问题

解决思路

解决方法


 

解决问题

1. [INFO] Initializing front camera...
2. Traceback (most recent call last):
3.   File ".\image_animation.py", line 76, in <module>
4.     kp_driving_initial = kp_detector(source1)
5.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\modules\module.py", line 489, in __call__
6.     result = self.forward(*input, **kwargs)
7.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\data_parallel.py", line 139, in forward
8.     inputs, kwargs = self.scatter(inputs, kwargs, self.device_ids)
9.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\data_parallel.py", line 150, in scatter
10. return scatter_kwargs(inputs, kwargs, device_ids, dim=self.dim)
11.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 35, in scatter_kwargs
12.     inputs = scatter(inputs, target_gpus, dim) if inputs else []
13.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 28, in scatter
14. return scatter_map(inputs)
15.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 15, in scatter_map
16. return list(zip(*map(scatter_map, obj)))
17.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\scatter_gather.py", line 13, in scatter_map
18. return Scatter.apply(target_gpus, None, dim, obj)
19.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\nn\parallel\_functions.py", line 95, in forward
20.     main_stream.wait_stream(streams[i])
21.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 55, in wait_stream
22.     self.wait_event(stream.record_event())
23.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 68, in record_event
24.     event = Event()
25.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\streams.py", line 162, in __init__
26.     check_error(self._cudart.cudaEventCreateWithFlags(ctypes.byref(ptr), ctypes.c_uint(flags)))
27.   File "F:\File_Anaconda\CV2020_RealTimeImageAnimation\envs\lib\site-packages\torch\cuda\__init__.py", line 208, in check_error
28. raise CudaError(res)
29. torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35)
30. [ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (674) SourceReaderCB::~SourceReaderCB terminating async callback

 

 

解决思路

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错误:Cuda驱动版本是不够的Cuda运行时版本SourceReaderCB::~SourceReaderCB终止异步回调

 

 

解决方法

相关文章Pytorch:深度学习中pytorch/torchvision版本和CUDA版本最正确版本匹配、对应版本安装之详细攻略

查看torch,以及torch所适合的cuda版本,此问题,大多数都是版本不匹配造成的!

 

相关文章
|
8月前
|
并行计算 PyTorch 算法框架/工具
【pytorch】解决pytorch:Torch not compiled with CUDA enabled
【pytorch】解决pytorch:Torch not compiled with CUDA enabled
2865 0
|
1月前
|
并行计算 PyTorch 算法框架/工具
【已解决】RuntimeError: CuDA error: no kernel image is available for execution on the device
【已解决】RuntimeError: CuDA error: no kernel image is available for execution on the device
|
10月前
|
异构计算
解决ValueError: Unsupported ONNX opset version: 16问题
解决ValueError: Unsupported ONNX opset version: 16问题
534 0
解决 RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR
解决 RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR
237 0
|
并行计算 PyTorch 算法框架/工具
基于Pytorch运行中出现RuntimeError: Not compiled with CUDA support此类错误解决方案
基于Pytorch运行中出现RuntimeError: Not compiled with CUDA support此类错误解决方案
941 0
基于Pytorch运行中出现RuntimeError: Not compiled with CUDA support此类错误解决方案
|
并行计算 编译器 TensorFlow
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
141 0
|
异构计算
GPU报错:RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED
RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED
787 0
|
并行计算
ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
144 0
重装驱动:Failed to initialize NVML: Driver/library version mismatch
重装驱动:Failed to initialize NVML: Driver/library version mismatch
558 0
|
计算机视觉 异构计算
编译OpenCV:nvcc fatal : Unsupported gpu architecture 'compute_75'
编译OpenCV:nvcc fatal : Unsupported gpu architecture 'compute_75'
190 0