ocr_torch icon indicating copy to clipboard operation
ocr_torch copied to clipboard

KeyError: 'model_det'

Open zhanghongsir opened this issue 4 years ago • 2 comments

File "/home/projects/ocr_torch/train.py", line 27, in main model = build_model(conf["model_det"]) KeyError: 'model_det'

zhanghongsir avatar Oct 19 '21 11:10 zhanghongsir

change model_det to model . like this:

model = build_model(conf["model"])

jakeywu avatar Oct 22 '21 06:10 jakeywu

但是在rec.yml中不行,TypeError: init() missing 1 required positional argument: 'classes_num'

------------------ 原始邮件 ------------------ 发件人: "jakeywu/ocr_torch" @.>; 发送时间: 2021年10月22日(星期五) 下午2:14 @.>; @.@.>; 主题: Re: [jakeywu/ocr_torch] KeyError: 'model_det' (Issue #2)

change model_det to model . like this: model = build_model(conf["model"])
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

zhanghongsir avatar Oct 22 '21 06:10 zhanghongsir