OCR模型

最终用这个keras版本训练CRNN:https://codeload.github.com/xiaofengShi/CHINESE-OCR/zip/master

详细过程看我的OneNote

app端:https://github.com/chineseocr/chineseocr

训练ocr端:https://codeload.github.com/chineseocr/chineseocr/zip/master

最近基于mxnet的cnocr模型挺小的,据说坑太多,有空尝试一下:https://github.com/breezedeus/cnocr

基于pytorch的超级小的开源中文OCR人气很高,支持竖排文字,不过没有训练代码,有空尝试一下:https://github.com/ouyanghuiyu/chineseocr_lite

ctcloss编译 未成功

WINDOWS下安装CTC FROM WARPCTC_PYTORCH IMPORT CTCLOSS

根据:https://www.freesion.com/article/5487477118/

模型转换:

pytorch ocr 转keras ocrpython .\pytorch_to_keras.py -weights_path models/ocr-english.pth -output_path models/ocr-english.h5

 

遇到的bug:

keras——ValueError: You are trying to load a weight file containing 12 layers into a model with 2 layers.

model=load_model('./model/my_model_weights.h5')

改为:

model.load_weights('test.h5',by_name=True) 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值