3DDFA_V2 icon indicating copy to clipboard operation
3DDFA_V2 copied to clipboard

how to use onnxruntime-gpu?

Open natgnah opened this issue 4 years ago • 3 comments

On window platform, CPU usage will be above 80%. So I want to change onnxruntime to onnxruntime-gpu

But I have the following problems: Traceback (most recent call last): File "demo_webcam_smooth.py", line 124, in main(args) File "demo_webcam_smooth.py", line 29, in main from FaceBoxes.FaceBoxes_ONNX import FaceBoxes_ONNX File "d:\Python\3DDFA_V2-master\FaceBoxes\FaceBoxes_ONNX.py", line 16, in import onnxruntime File "D:\anaconda3\envs\Vtuber\lib\site-packages\onnxruntime_init_.py", line 13, in from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, set_seed,
ImportError: cannot import name 'get_all_providers' from 'onnxruntime.capi._pybind_state'

Can anyone point me in the direction of using onnxruntime-gpu?

natgnah avatar Jan 24 '21 08:01 natgnah

Hi, when i run demo.py ,the error :Error in `python': double free or corruption (out): ?do you occur to the problem?

cyjouc avatar Feb 07 '21 01:02 cyjouc

This repo is not tested for onnxruntime-gpu, so there may be some workloads to implement it but the code change maybe small. Sorry for that I have no time for this feature now. BTW, welcome for related PRs : )

cleardusk avatar Feb 19 '21 16:02 cleardusk

TKS for your help. when I not use the onnx, python demo.py -f examples/inputs/emma.jpg *** Error in `python': munmap_chunk(): invalid pointer: 0x00007f7a39596ce0 ***? would you like help me solve the error? TKS very much

cyjouc avatar Feb 20 '21 01:02 cyjouc