aihacker111 / Efficient-Live-Portrait

Fast running Live Portrait with TensorRT and ONNX models
MIT License
143 stars 12 forks source link

Not using GPU #3

Closed Echolink50 closed 4 months ago

Echolink50 commented 4 months ago

WIndows 10, RTX 2060 12GB. Install had an error with torchaudio so I looked in the issues and deleted torchaudio from the requirements.txt. Installed fine. Runs fine but no GPU and estimated time is 10 minutes for 3 second 78 frame example file. The Liveportrait main takes about 10 seconds for a 3 second video. Not sure what the issue is.

aihacker111 commented 4 months ago

The between that onnx model , you run it on CPU only and you need compare with main Live Portrait in CPU as the same RAM not GPU , Also , we preparing for release TensorRT as well as aware than onnx

Echolink50 commented 4 months ago

Sorry, I didn't understand that. What do I need to compare? Do I need to run it with -r for real time or something?

aihacker111 commented 4 months ago

@Echolink50 Wait me update new model with handle GPU onnx, if you can't run it, it seem like you install onnxruntime-gpu don't fit with your cuda and cudnn

Follow this issues #2 : If you run onnxruntime successfully on GPU it'll raise error like this

ultrafro commented 4 months ago

@Echolink50 not sure if you had the same problem, but for me:

Echolink50 commented 4 months ago

I did do pip uninstall onnxruntime and pip install onnxruntime but i didn't do the other stuff you mentioned. I will give it a try but from what people have been saying it's still not faster than the main repo. Seems trying to go straight to tensorRT is more worthwhile.

aihacker111 commented 4 months ago

@Echolink50 TensorRT is faster than onnx , so the onnx model have some problem with speed inference since few year ago at many another repo, so just use it for fun or you can use with tensorRT for get faster