insightface icon indicating copy to clipboard operation
insightface copied to clipboard

Update SCRFD onnx InferenceSession with providers

Open HeChengHui opened this issue 1 year ago • 1 comments

Original code will give error: ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...) when just loading model. Added providers to fix error.

HeChengHui avatar Mar 16 '23 06:03 HeChengHui

Having the same issue, this commit resolves it

detkov avatar Mar 20 '23 09:03 detkov