iperov / DeepFaceLive

Real-time face swap for PC streaming or video calls
GNU General Public License v3.0
26.66k stars 4.57k forks source link

cudaGetDeviceCount() failed #74

Closed anthnyprschka closed 2 years ago

anthnyprschka commented 2 years ago

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.

anthnyprschka commented 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

iperov commented 2 years ago

no cuda devices found

dyxwxjdy commented 1 year ago

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); 


image

image

iperov commented 1 year ago

2GB vram is not enough for Face Swapper, but fine for face detector/marker.

dyxwxjdy commented 1 year ago

Close others and only try Face detector, I try yolov5 myself code works well with gpu, so I guess it seems other problem.

image

And I see output GPU = 2, is this correct?

image

dyxwxjdy commented 1 year ago

Solved by change onnxruntime-gpu version to 1.4.0 according to https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html

image