Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use GPU mode with source code? #488

Closed
dahaigui opened this issue Jul 1, 2024 · 3 comments
Closed

How can I use GPU mode with source code? #488

dahaigui opened this issue Jul 1, 2024 · 3 comments
Labels
question Further information is requested

Comments

@dahaigui
Copy link

dahaigui commented Jul 1, 2024

I want to use the source code to call the GPU to run, what exactly should I do?

@CVHub520
Copy link
Owner

CVHub520 commented Jul 1, 2024

Hi, @dahaigui, you can refer to this docs.

@CVHub520 CVHub520 added the question Further information is requested label Jul 1, 2024
@dahaigui
Copy link
Author

dahaigui commented Jul 1, 2024

改好了之后在我导入模型的时候报错“ImportError: DLL load failed while importing onnxruntime_pybind11_state: 动态链接库(DLL)初始化例程失败。”,这个是什么原因导致的?
image

@CVHub520
Copy link
Owner

CVHub520 commented Jul 1, 2024

如果您希望利用 GPU 进行模型推理加速,请务必确保本地 CUDA 版本与 onnxruntime-gpu 版本兼容,以确保顺利调用显卡。有关详细信息,请参考官方文档

@CVHub520 CVHub520 closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants