1 Star 0 Fork 135

敲代码/cnocr

forked from cyahua/cnocr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run_cnocr_train.sh 695 Bytes
一键复制 编辑 原始数据 按行查看 历史
breezedeus 提交于 2019-07-13 00:14 . change README
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
cd `dirname $0`/../
## 训练captcha
#python scripts/cnocr_train.py --cpu 2 --num_proc 2 --loss ctc --dataset captcha --font_path /Users/king/Documents/WhatIHaveDone/Test/text_renderer/data/fonts/chn/msyh.ttf
# 训练中文ocr模型crnn
python scripts/cnocr_train.py --cpu 2 --num_proc 4 --loss ctc --dataset cn_ocr
## gpu版本
#python scripts/cnocr_train.py --gpu 1 --num_proc 8 --loss ctc --dataset cn_ocr --data_root /jfs/jinlong/data/ocr/outer/images \
# --train_file /jfs/jinlong/data/ocr/outer/train.txt --test_file /jfs/jinlong/data/ocr/outer/test.txt
## 预测中文图片
#python scripts/cnocr_predict.py --file examples/rand_cn1.png
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mcj8089/cnocr.git
git@gitee.com:mcj8089/cnocr.git
mcj8089
cnocr
cnocr
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891