Closed anthnyprschka closed 2 years ago
@iperov I noticed you marked this issue as closed, any chance you can tell me what to do? I have razer laptop with geforce rtx 2070
no cuda devices found
Sorry still met the problem, already install cuda and cudnn.
D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_execution_provider_info.cc:97 onnxruntime::CUDAExecutionProviderInfo::FromProviderOptions [ONNXRuntimeError] : 1 : FAIL : provider_options_utils.h:153 onnxruntime::ProviderOptionsParser::Parse Failed to parse provider option "device_id": CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=2 ; hostname=WIN-ARIHVBP65NF ; expr=cudaGetDeviceCount(&num_devices);
2GB vram is not enough for Face Swapper, but fine for face detector/marker.
Close others and only try Face detector, I try yolov5 myself code works well with gpu, so I guess it seems other problem.
And I see output GPU = 2, is this correct?
Solved by change onnxruntime-gpu version to 1.4.0 according to https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html
D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_execution_provider_info.cc:97 onnxruntime::CUDAExecutionProviderInfo::FromProviderOptions [ONNXRuntimeError] : 1 : FAIL : provider_options_utils.h:153 onnxruntime::ProviderOptionsParser::Parse Failed to parse provider option "device_id": cuda_execution_provider_info.cc:97 onnxruntime::CUDAExecutionProviderInfo::FromProviderOptions::<lambda_279c3dda0d9974770c8af7502367fa5a>::operator () cudaGetDeviceCount() failed.