Comments (2)
下载和paddle lite 库一致的opt工具, 然后使用opt工具优化推理模型, 生成.nb文件. 这是我用的参数 --optimize_out_type=naive_buffer --valid_targets=arm -quant_type=QUANT_INT8
from paddleocr.
import paddlelite.lite as lite
a=lite.Opt()
a.set_model_dir("D:\ch_ppocr_mobile_v2.0_cls_infer\")
conmbined 形式,具体模型和参数名称,请根据实际修改
a.set_model_file("D:\inference.pdmodel")
a.set_param_file("D:\inference.pdiparams")
a.set_valid_places("arm")
a.set_model_type("naive_buffer")
a.set_optimize_out("ch_PP-OCRv3_cls_out")
#a.set_valid_places("x86")
a.run()
我这样用 python 产生的 可 load model 就是辨识时 死app
from paddleocr.
Related Issues (20)
- Paddle OCR 推理模型转ONNX,固定shape后,ONNX结果相差很大,不固定shape,结果与paddle推理模型保持一致,这个问题要怎么处理哇: HOT 1
- 关于[中文混合拼音]的长文本OCR方案请教(eg: 灿烂的笑róng) HOT 5
- indonesian 是哪个字典?没有找到id 的 HOT 2
- PPStructure版面分析时对原图返回的是figure,对原图灰度化后却返回table是为什么,请问怎么指定他返回figure? HOT 1
- 有一个中文字识别不出来 HOT 7
- OSError: (External) CUDA error(209), no kernel image is available for execution on the device. HOT 3
- 测试russia识别别字典报错 HOT 3
- pyinstaller打包后不能运行,不打包只跑py程序正常,报错是RuntimeError: MKL_Free_Buffers not found. HOT 3
- 引用PaddleOCR模块后会导致logging的默认logger中添加一项haddler HOT 5
- kie表格ser训练报错 HOT 2
- paddleocr运行报错 SIGSEGV HOT 2
- re模型预测报错
- rec v4模型训练,acc不提升,从第5个epoch开始一直到第500个始终维持在0.2
- paddleocr 2.7.3 GPU和CPU推理结果不一致 HOT 7
- PP-Structure 关键信息抽取--开始训练,使用增值税发票的数据集进行训练,gpu和cpu都报错 HOT 2
- GPU推理时显存一直上涨,不释放,显存满了后,再推理就没有结果了 HOT 3
- 提升识别效果 HOT 1
- The Korean language model fails to recognize '.' because it is missing. HOT 3
- Package lock numpy HOT 1
- 英文版的pdf可以直接打开, 中文版的需要进群, 能不能换成在线预览的pdf链接 HOT 1
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 paddleocr.