zhang0jhon / AttentionOCR

Scene text recognition
832 stars 258 forks source link

按照步骤已得到训练模型,但是测试无法识别 #84

Open shiyinzhi opened 4 years ago

shiyinzhi commented 4 years ago

张0jhon 您好,首先非常感谢您开源这个项目。通过训练已经得到了模型,但是在做test 的时候发现无法识别,是否是哪里出错了呢?

xianzhe-741 commented 3 years ago

张0jhon 您好,首先非常感谢您开源这个项目。通过训练已经得到了模型,但是在做test 的时候发现无法识别,是否是哪里出错了呢?

请问你训练过程中有没有遇见过这个问题: - -! Traceback (most recent call last): File "train.py", line 81, in train() File "train.py", line 64, in train starting_epoch=cfg.starting_epoch File "/usr/local/lib/python3.6/dist-packages/tensorpack/train/config.py", line 119, in init assert_type(model, ModelDescBase, 'model') File "/usr/local/lib/python3.6/dist-packages/tensorpack/train/config.py", line 107, in assert_type name, tp.name, v.class.name) AssertionError: model has to be type 'ModelDescBase', but an object of type 'AttentionOCR' found.