-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ubuntu16.0.4 docker 执行reco_chars.py 出错 #19
Comments
root@3e93e68313ba:/opt/deep_ocr# python /opt/deep_ocr/reco_chars.py ............................................................................................ |
I1013 18:55:36.650260 3948786624 net.cpp:744] Ignoring source layer lossname the same error @JinpengLI help me, thanks |
For the moment, it is deprecated... I will release a new version as soon as
I can. Thanks a lot.
…On Fri, Oct 13, 2017 at 2:38 PM, xiangjy ***@***.***> wrote:
I1013 18:55:36.650260 3948786624 net.cpp:744] Ignoring source layer loss
name
Traceback (most recent call last):
File "./bin/deep_ocr_id_card_reco", line 119, in
ocr_res = reco_text_line.do(boundary2binimgs, segment, caffe_cls)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/reco_text_line.py",
line 132, in do
rects, boundaries, bin_images)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/reco_text_line.py",
line 66, in do_images_maxproba
self._do(rects, boundary)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/reco_text_line.py",
line 39, in _do
output_tag_to_max_proba = self.caffe_cls.predict_cv2_imgs(np_char_imgs)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/caffe_clf.py",
line 66, in predict_cv2_imgs
self._predict_cv2_imgs_sub(cv2_imgs, i, pos_end)
File "/Users/xiangjy/study/code/python/deep_ocr/deep_ocr/caffe_clf.py",
line 53, in _predict_cv2_imgs_sub
item = (self.y_tag_json[str(index)],
KeyError: '1972'
the same error @JinpengLI <https://github.com/jinpengli> help me, thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADLUDQJN2ueC2N_v4ScA841790qMa8fVks5sr1nZgaJpZM4M6Feq>
.
|
It seems you didn't download the trained model from baidu cloud, and you didn't mount it into docker container? |
@JinpengLI Thank a lot. Now It‘s OK. There is KeyError when i use "https://pan.baidu.com/s/1nvz2wrB". Change to use "https://pan.baidu.com/s/1qYPKH3Y", it's OK. |
1, 下载deep_ocr_workspace.zip
2,docker pull jinpengli/deep_ocr_cpu_docker:latest
3,docker run -ti --volume=${HOME}/deep_ocr_workspace:/workspace jinpengli/deep_ocr_cpu_docker:latest /bin/bash
4,python /opt/deep_ocr/reco_chars.py
会出现错误:
root@dd66a9208e12:/workspace# python /opt/deep_ocr/reco_chars.py
libdc1394 error: Failed to initialize libdc1394
WARNING: Logging before InitGoogleLogging() is written to STDERR
。。。中间省略一些普通日志。。。
Traceback (most recent call last):
File "/opt/deep_ocr/reco_chars.py", line 364, in
output_tag_to_max_proba = caffe_cls.predict_cv2_imgs(np_char_imgs)
File "/opt/deep_ocr/reco_chars.py", line 66, in predict_cv2_imgs
self._predict_cv2_imgs_sub(cv2_imgs, i, pos_end)
File "/opt/deep_ocr/reco_chars.py", line 53, in _predict_cv2_imgs_sub
item = (self.y_tag_json[str(index)],
KeyError: '5613'
The text was updated successfully, but these errors were encountered: