1 Star 0 Fork 137

王泽敏/cnocr

forked from cyahua/cnocr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
breezedeus 提交于 2021-11-05 15:21 . update docs
# 可取值:['densenet_lite_136']
ENCODER_NAME = densenet_lite_136
# 可取值:['fc', 'gru', 'lstm']
DECODER_NAME = fc
MODEL_NAME = $(ENCODER_NAME)-$(DECODER_NAME)
EPOCH = 41
INDEX_DIR = data/test
TRAIN_CONFIG_FP = docs/examples/train_config.json
# 训练模型
train:
cnocr train -m $(MODEL_NAME) --index-dir $(INDEX_DIR) --train-config-fp $(TRAIN_CONFIG_FP)
# 在测试集上评估模型,所有badcases的具体信息会存放到文件夹 `evaluate/$(MODEL_NAME)` 中
evaluate:
cnocr evaluate --model-name $(MODEL_NAME) -i data/test/dev.tsv \
--image-folder data/images --batch-size 128 -o eval_results/$(MODEL_NAME)
predict:
cnocr predict -m $(MODEL_NAME) -i docs/examples/rand_cn1.png
doc:
# pip install mkdocs
# pip install mkdocs-macros-plugin
# pip install mkdocs-material
# pip install mkdocstrings
python -m mkdocs serve
# python -m mkdocs build
package:
python setup.py sdist bdist_wheel
VERSION = 2.1.0
upload:
python -m twine upload dist/cnocr-$(VERSION)* --verbose
.PHONY: train evaluate predict doc package upload
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jockerzeming/cnocr.git
git@gitee.com:jockerzeming/cnocr.git
jockerzeming
cnocr
cnocr
master

搜索帮助