Comments (3)
@sml2h3 您好,请问您部署过GPU版本吗?我将模型设置如下 self.ocr = ddddocr.DdddOcr(use_gpu=True, old=True) 在推理时会有如下报错 TypeError: load_model(): incompatible function arguments. The following argument types are supported: 1. (self: onnxruntime.capi.onnxruntime_pybind11_state.InferenceSession, arg0: List[str]) -> None Invoked with: <onnxruntime.capi.onnxruntime_pybind11_state.InferenceSession object at 0x7f3754e7dce0>, [('CUDAExecutionProvider', {'device_id': 0, 'arena_extend_strategy': 'kNextPowerOfTwo', 'cuda_mem_limit': 1073741824, 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'do_copy_in_default_stream': True})] 您有什么解决办法吗? 感谢!
pip uninstall onnxruntime
pip install onnxruntime-gpu
from ddddocr.
@sml2h3 您好,请问您部署过GPU版本吗?我将模型设置如下 self.ocr = ddddocr.DdddOcr(use_gpu=True, old=True) 在推理时会有如下报错 TypeError: load_model(): incompatible function arguments. The following argument types are supported: 1. (self: onnxruntime.capi.onnxruntime_pybind11_state.InferenceSession, arg0: List[str]) -> None Invoked with: <onnxruntime.capi.onnxruntime_pybind11_state.InferenceSession object at 0x7f3754e7dce0>, [('CUDAExecutionProvider', {'device_id': 0, 'arena_extend_strategy': 'kNextPowerOfTwo', 'cuda_mem_limit': 1073741824, 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'do_copy_in_default_stream': True})] 您有什么解决办法吗? 感谢!
pip uninstall onnxruntime pip install onnxruntime-gpu
您好,上面的是错误是我安装了与cuda对应版本的onjnxruntime-gpu导致的,我之后升级了onnxruntime-gpu,虽然没有报错,但运行过程中显存占用没有发生变化
from ddddocr.
@sml2h3 您好,请问您部署过GPU版本吗?我将模型设置如下 self.ocr = ddddocr.DdddOcr(use_gpu=True, old=True) 在推理时会有如下报错 TypeError: load_model(): incompatible function arguments. The following argument types are supported: 1. (self: onnxruntime.capi.onnxruntime_pybind11_state.InferenceSession, arg0: List[str]) -> None Invoked with: <onnxruntime.capi.onnxruntime_pybind11_state.InferenceSession object at 0x7f3754e7dce0>, [('CUDAExecutionProvider', {'device_id': 0, 'arena_extend_strategy': 'kNextPowerOfTwo', 'cuda_mem_limit': 1073741824, 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'do_copy_in_default_stream': True})] 您有什么解决办法吗? 感谢!
pip uninstall onnxruntime pip install onnxruntime-gpu
您好,上面的是错误是我安装了与cuda对应版本的onjnxruntime-gpu导致的,我之后升级了onnxruntime-gpu,虽然没有报错,但运行过程中显存占用没有发生变化
占用的很少而已,模型本身也并不大,因为onnxruntime是需要多少占用多少,而不是像tf等先占掉大多数再分配。
from ddddocr.
Related Issues (20)
- 最后一个字母靠近边缘时经常识别错误 HOT 1
- numpy大版本更新2.0.0依赖文件版本未指定,请锁定版本1.26.2 HOT 3
- 大小写问题 HOT 1
- 在手机 termux安装失败 HOT 1
- 自定义字符集问题 HOT 1
- 这个网站验证码识别成功率很低,求支持 HOT 1
- 训练图片之前,程序对图片默认做了哪些预处理?能否文档中明确一下做了哪些预处理,方便用户直接使用训练好的ONNX模型? HOT 1
- 希望添加对字形匹配的算法
- git clone下載安裝顯示錯誤
- 请问有Java版本吗?
- 购买ocr模型
- 请问是否可以按顺序点击文字? HOT 1
- 簡單驗證碼識別失敗 HOT 2
- 驗證碼無法識別
- dddddocr有那种下载即用的方法吗? HOT 1
- 打包后运行遇到问题,无法使用 HOT 1
- There's an issue with image content recognition
- 依次按顺序点击文字 HOT 1
- 传base64报错:"'NoneType' object has no attribute 'size'"
- HeiGebrother
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddddocr.