hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
34.94k stars 4.93k forks source link

The program does not use GPU acceleration. #163

Open Phill526 opened 1 month ago

Phill526 commented 1 month ago

Hello! The program is work but dont use my rtx 3080 cause i checked it load its idling. The fps is very baad... I installed nvidia toolkit and pip install onnxruntime-gpu==1.16.3

lelelol commented 1 month ago

run these commands: pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3 and start the app with this one: python run.py --execution-provider cuda

Phill526 commented 1 month ago

run these commands: pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3 and start the app with this one: python run.py --execution-provider cuda

I started python run.py --execution-provider cuda it doesnt work and shows error error: argument --execution-provider: invalid choice: 'cuda' (choose from 'dml', 'cpu')

Phill526 commented 1 month ago

run these commands: pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3 and start the app with this one: python run.py --execution-provider cuda

Made as you write exactly the same result.

Phill526 commented 1 month ago

run these commands: pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3 and start the app with this one: python run.py --execution-provider cuda

oh shit its worked!! But i cach black square often, u know something about it??

burdukow commented 1 month ago

But i cach black square often, u know something about it??

Try to download models from #70 inswapper_128_fp16.onnx GFPGANv1.4.pth

Phill526 commented 1 month ago

But i cach black square often, u know something about it??

Try to download models from #70 inswapper_128_fp16.onnx GFPGANv1.4.pth

okay! any more model u can advice?

Phill526 commented 1 month ago

pip uninstall onnxruntime onnxruntime-gpu pip install onnxruntime-gpu==1.16.3 and start the app with this one: python run.py --execution-provider cuda

i had this model already by the way

leokovaski commented 3 weeks ago

I have the same problem or it is similar. "error: argument --execution-provider: invalid choice: 'coreml' (choose from 'azure', 'cpu')" Apple Intel