Error: explicit providers required
Aziks0 opened this issue · comments
Aziks0 commented
I have an error using deface on Windows 10, caused by onnx, saying that providers are explicitly required since ORT 1.9.
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'], ...)
Martin Bucella commented
Aziks0 commented
There are a lot of execution providers, which means that it would be difficult for non-power users to select the best one for them, but at the same time, non-power users probably do not use ML to anonymize images.
By checking the OS, the architecture, the GPU/CPU, it might be possible to select automatically the best provider (if the user hasn't selected any using the CLI arg for example). Many combinations are possible though, so it's a tricky solution.
Martin Bucella commented
This has been fixed in c555264