zhang0jhon / AttentionOCR

Scene text recognition
831 stars 258 forks source link

text_recognition_5435.pb model #46

Open RachelBaird opened 4 years ago

RachelBaird commented 4 years ago

Hey Thank you for all this work couldn't find the checkpoint folder and the text_recognition_5435.pb model

Johndirr commented 4 years ago

Pull the docker image: docker pull zhang0jhon/demo:ocr and export the filesystem docker export ContainerID > myexport.tar To list containers use docker ps -a

If you don't have permission, make yourself root sudo -i

You can then copy the pb modle files from inside of the tar file

lightning0016 commented 4 years ago

text_recognition_5435.pb,谁能给个百度网盘的地址,没安装docker....谢谢啦~

Tian14267 commented 4 years ago

请问你们有数据吗?我出现以下错误: [Errno 2] No such file or directory: './data/lsvt/train_full_labels.json' 'lsvt/train_full_labels.json' 和 'art/train_task2_labels.json' 这些数据该怎么获取啊 @RachelBaird @Johndirr @lightning0016

JianYang93 commented 4 years ago

dataset.py里面注释了下载链接 @Tian14267

1456416403 commented 3 years ago

我已经拿到了.pb模型了,但是为什么用了这个pb模型之后,test.py跑出来的结果异常的差甚至什么都不能识别呢

strawberry-fdf commented 3 years ago

用docker里的模型进行预测,为什么test.py跑出来的结果异常什么都不能识别,是我使用方法的问题麽

lw-52 commented 3 years ago

我已经拿到了.pb模型了,但是为什么用了这个pb模型之后,test.py跑出来的结果异常的差甚至什么都不能识别呢

可以发一下吗,希望可以一起讨论一下

xianzhe-741 commented 3 years ago

我已经拿到了.pb模型了,但是为什么用了这个pb模型之后,test.py跑出来的结果异常的差甚至什么都不能识别呢

你好,我使用过程中有两个问题请教一下:

test.py过程中使用作者docker中的模型text_recognition5435.pb,在 = tf.import_graph_def(graph_def, name='')时报错 InvalidArgumentError (see above for traceback): The second input must be a scalar, but it has shape [1,33]

2.在train.py时报错 File "/usr/local/lib/python3.5/dist-packages/tensorpack/train/config.py", line 119, in init assert_type(model, ModelDescBase, 'model') File "/usr/local/lib/python3.5/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.