|
先看下自己电脑是集成显卡还是独立显卡,如果是英伟达1050显卡配置以上,下载安装cuda118即可解决这个错误
CUDA driver version is insufficient for CUDA runtime version的解决方案
CUDA driver version is insufficient for CUDA runtime version,翻译过来就是CUDA的驱动程序版本跟CUDA的运行时版本不匹配!
1.CUDA driver version(驱动版本):就是NVIDIA GPU的驱动程序版本;
解决方法:更新一下自己的显卡驱动即可解决,确保自己电脑的显卡是N卡
N卡驱动下载地址:https://www.nvidia.cn/Download/index.aspx?lang=cn
- EP Error D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:121 onnxruntime::CudaCall D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:114 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=1995017496 ; hostname=VINSON-PC ; file=D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_execution_provider.cc ; line=238 ; expr=cudaSetDevice(info_.device_id);
- when using ['CUDAExecutionProvider', 'CPUExecutionProvider']
- Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying.
- Traceback (most recent call last):
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in __init__
- self._create_inference_session(providers, provider_options, disabled_optimizers)
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session
- sess.initialize_session(providers, provider_options, disabled_optimizers)
- RuntimeError: D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:121 onnxruntime::CudaCall D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:114 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=1995017496 ; hostname=VINSON-PC ; file=D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_execution_provider.cc ; line=238 ; expr=cudaSetDevice(info_.device_id);
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "D:\Swap_WWW_AIBL_VIP\app.py", line 128, in <module>
- load_face_analyser_model()
- File "D:\Swap_WWW_AIBL_VIP\app.py", line 104, in load_face_analyser_model
- FACE_ANALYSER = insightface.app.FaceAnalysis(name=name, providers=PROVIDER)
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\insightface\app\face_analysis.py", line 31, in __init__
- model = model_zoo.get_model(onnx_file, **kwargs)
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\insightface\model_zoo\model_zoo.py", line 96, in get_model
- model = router.get_model(providers=providers, provider_options=provider_options)
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\insightface\model_zoo\model_zoo.py", line 40, in get_model
- session = PickableInferenceSession(self.onnx_file, **kwargs)
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\insightface\model_zoo\model_zoo.py", line 25, in __init__
- super().__init__(model_path, **kwargs)
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 394, in __init__
- raise fallback_error from e
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 389, in __init__
- self._create_inference_session(self._fallback_providers, None)
- File "D:\Swap_WWW_AIBL_VIP\python3.10\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session
- sess.initialize_session(providers, provider_options, disabled_optimizers)
- RuntimeError: D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:121 onnxruntime::CudaCall D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:114 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=1995012680 ; hostname=VINSON-PC ; file=D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_execution_provider.cc ; line=238 ; expr=cudaSetDevice(info_.device_id);
- (VENV) D:\Swap_WWW_AIBL_VIP>pause
复制代码
|
|