ORB-HD / deface

Video anonymization by face detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: explicit providers required

Aziks0 opened this issue · comments

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'], ...)

Mostly fixed by #22 but I'll leave this open because of the reasons I gave in #22's discussion.

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.

This has been fixed in c555264