Git Product home page Git Product logo

Comments (3)

sml2h3 avatar sml2h3 commented on August 18, 2024

@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.

Wangbenzhi avatar Wangbenzhi commented on August 18, 2024

@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 avatar sml2h3 commented on August 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.