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

yolo v8 与 onnxocr 同时加载报错显存不够问题 #18

Open
achenjie opened this issue Jul 24, 2024 · 2 comments
Open

yolo v8 与 onnxocr 同时加载报错显存不够问题 #18

achenjie opened this issue Jul 24, 2024 · 2 comments

Comments

@achenjie
Copy link

大佬,在服务里面同时加载yolo v8 和 onnxocr 时,会报错显存问题:onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Conv node. Name:'p2o.Conv.24' Status Message: D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:121 onnxruntime::CudaCall D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:114 onnxruntime::CudaCall CUDA failure 2: out of memory ; GPU=0 ; hostname=DESKTOP-UK21O20 ; file=D:\a_work\1\s\onnxruntime\core\providers\cuda\cuda_allocator.cc ; line=48 ; expr=cudaMalloc((void**)&p, size);

但是,同时加载 yolo v8 和 paddleocr 就不会报这个错误。

@jingsongliujing
Copy link
Owner

jingsongliujing commented Jul 24, 2024 via email

@jingsongliujing
Copy link
Owner

或者尝试指定一张卡
import os
os.environ['CUDA_VISIBLE_DEVICES']='1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants