Comments (10)
It may be the mismatch CUDA version 10.0
from attentionocr.
您好 我也遇到类似的问题 您的问题解决了吗 @quuhua911 @zhang0jhon
Traceback (most recent call last):
File "test.py", line 121, in
test(args)
File "test.py", line 91, in test
model = TextRecognition(args.pb_path, cfg.seq_len+1)
File "test.py", line 23, in init
self.init_model()
File "test.py", line 37, in init_model
self.label_ph = self.sess.graph.get_tensor_by_name('label:0')
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 3766, in get_tensor_by_name
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 3590, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py", line 3632, in _as_graph_element_locked
"graph." % (repr(name), repr(op_name)))
KeyError: "The name 'label:0' refers to a Tensor which does not exist. The operation, 'label', does not exist in the graph."
from attentionocr.
You may use the pb model in docker image but test.py in this repository. You should load the pb model with text_recognition.py in docker image. Model trained from this repository is slightly different from the competition model in docker image.
from attentionocr.
您好,我现在在docker里运行python text_recognition.py,但是仍然有报错信息,实在打扰您了 ,不知道该如何修改 @zhang0jhon
from attentionocr.
python flaskapp.py
from attentionocr.
当我运行这个也是类似的错误 好奇怪啊 @zhang0jhon
from attentionocr.
docker与nvidia-docker版本,还有运行docker的命令?
from attentionocr.
You may use the pb model in docker image but test.py in this repository. You should load the pb model with text_recognition.py in docker image. Model trained from this repository is slightly different from the competition model in docker image.
请问能提供这个仓库的训练模型权重吗
from attentionocr.
Same problem here when not using docker:
File "/home/retrohelix/.virtualenvs/AttentionOCR/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3838, in _as_graph_element_locked
"graph." % (repr(name), repr(op_name)))
KeyError: "The name 'label:0' refers to a Tensor which does not exist. The operation, 'label', does not exist in the graph."
I tried using the models from the docker image:
ICDAR_0.5.pb
ICDAR_0.7.pb
text_recognition_5435.pb
text_recognition.pb
CUDA Version is:
Cuda compilation tools, release 10.0, V10.0.130
My python package versions are as follows (Python 3.6.9):
Package Version
absl-py 0.9.0
astor 0.8.1
cachetools 4.0.0
certifi 2019.11.28
chardet 3.0.4
cycler 0.10.0
Cython 0.29.14
gast 0.2.2
google-auth 1.10.0
google-auth-oauthlib 0.4.1
google-pasta 0.1.8
grpcio 1.26.0
h5py 2.10.0
idna 2.8
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
kiwisolver 1.1.0
Markdown 3.1.1
matplotlib 3.1.2
msgpack 0.6.2
msgpack-numpy 0.4.4.3
numpy 1.18.0
oauthlib 3.1.0
opencv-python 4.1.2.30
opt-einsum 3.1.0
pip 19.3.1
protobuf 3.11.2
psutil 5.6.7
pyasn1 0.4.8
pyasn1-modules 0.2.7
pycocotools 2.0.0
pyparsing 2.4.6
python-dateutil 2.8.1
pyzmq 18.1.1
requests 2.22.0
requests-oauthlib 1.3.0
rsa 4.0
setuptools 42.0.2
six 1.13.0
tabulate 0.8.6
tensorboard 1.14.0
tensorflow 1.14.0
tensorflow-estimator 1.14.0
tensorflow-gpu 1.14.0
tensorpack 0.9.8
termcolor 1.1.0
tqdm 4.41.0
urllib3 1.25.7
Werkzeug 0.16.0
wheel 0.33.6
wrapt 1.11.2
Whats wrong with this setup? How can I use this without docker?
EDIT: Looks like I just need the right pb file.. So can you provide the model file for this repo?
from attentionocr.
from attentionocr.
Related Issues (20)
- 作者训练的权重向量从docker拷贝出来上传到百度云,欢迎自取 HOT 3
- model from docker image doesnot work!
- I have some questions about training and testing
- Problems on how to calculate the probs in text recongnition
- how could i do, the train process will set on GPUS? HOT 1
- detect长度及长文本识别
- bilstm
- @zhang0jhon tensorflow run in static graph, can you give any hints on debugging during coding?
- pytorch版本实现
- There is some way to be able to execute the code without using DOCKER but only by console. I will be very grateful for your prompt response.
- steps_per_epoch根据训练集的不同需要修改吗? HOT 5
- 运行“ python train.py”时出现错误
- Network does not predict EOS token HOT 1
- $ symbol
- What's is the license information of this project?
- Formulae miscalculation
- for inception v4 stem and reduction_A the paper use valid for padding in conv3x3,why use same for padding here?
- abcnet accuracy
- 为什么不把图像裁剪下来单独训练,而是将整个图像先加载在裁剪呢?这样batch_size不就需要变小了吗? HOT 1
- train.py error ModelDescBase?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attentionocr.