Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

run.py: error: argument --execution-provider: invalid choice: 'directml' (choose from 'dml', 'cpu')

Open Be3ynukpro19 opened this issue 6 months ago • 5 comments

I've already tried this method : pip uninstall onnxruntime onnxruntime-directml pip install onnxruntime-directml==1.16.3

Image

And this one too

pip uninstall onnxruntime onnxruntime-directml pip install onnxruntime-directml==1.15.1

Image

but it always doesn't work and writes this error please help

Be3ynukpro19 avatar May 18 '25 10:05 Be3ynukpro19

and if I try to download corel, it says this

Image

Be3ynukpro19 avatar May 18 '25 10:05 Be3ynukpro19

same error on AMD GPU, Hi @Be3ynukpro19 do you have any further finding?

zhuazhou avatar May 26 '25 10:05 zhuazhou

my error info as: run.py: error: argument --execution-provider: invalid choice: 'directdml' (choose from 'tensorrt', 'cuda', 'cpu') I can make sure I installed "pip install onnxruntime-directml==1.15.1" and "pip uninstall onnxruntime-gpu", but always hits same error as my last comment.

zhuazhou avatar May 26 '25 10:05 zhuazhou

running it like this worked for me: python run.py --execution-provider dml

if you're using directml

i have a 6800

mac2143413 avatar Jul 09 '25 06:07 mac2143413

i dont have the option to use direct ml what do i do i have tensort cpu and cuda

matejajankovicc-cmd avatar Nov 08 '25 11:11 matejajankovicc-cmd