insightface
insightface copied to clipboard
Update SCRFD onnx InferenceSession with providers
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.
Having the same issue, this commit resolves it