1 Star 0 Fork 137

王泽敏/cnocr

forked from cyahua/cnocr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gpu.Makefile 852 Bytes
一键复制 编辑 原始数据 按行查看 历史
breezedeus 提交于 2021-10-09 11:55 . update configs
# 可取值:['densenet-s']
ENCODER_NAME = densenet-lite-136
# 可取值:['fc', 'gru', 'lstm']
DECODER_NAME = fclite
MODEL_NAME = $(ENCODER_NAME)-$(DECODER_NAME)
INDEX_DIR = data/output_normal
TRAIN_CONFIG_FP = docs/examples/train_config_gpu.json
train:
cnocr train -m $(MODEL_NAME) --index-dir $(INDEX_DIR) --train-config-fp $(TRAIN_CONFIG_FP)
evaluate:
cnocr evaluate -m $(MODEL_NAME) -i $(REC_DATA_ROOT_DIR)/test-part.txt --image-folder $(REC_DATA_ROOT_DIR) --batch-size 128 -c cuda:0 -o eval_results/$(MODEL_NAME)-$(EPOCH)
filter:
python scripts/filter_samples.py --sample_file $(REC_DATA_ROOT_DIR)/test-part.txt --badcases_file evaluate/$(MODEL_NAME)-$(EPOCH)/badcases.txt --distance_thrsh 2 -o $(REC_DATA_ROOT_DIR)/new.txt
predict:
cnocr predict -m $(MODEL_NAME) -f docs/examples/rand_cn1.png
.PHONY: train predict evaluate filter
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jockerzeming/cnocr.git
git@gitee.com:jockerzeming/cnocr.git
jockerzeming
cnocr
cnocr
master

搜索帮助