models icon indicating copy to clipboard operation
models copied to clipboard

Tensorflow[attention_ocr] Placeholder

Open ibr123 opened this issue 9 years ago • 2 comments

I'm writing a python code to use attention_ocr and in the line that is described here

the line of code is images_placeholder = tf.placeholder(tf.float32, shape=[1024, 1024])

returns the error ValueError: Dimensions must be equal, but are 1053 and 905 for 'MatMul' (op: 'MatMul') with input shapes: [905,1053], [905,1053]

how to solve that? and what is the simplest way to use attention_ocr for detection directly?

ibr123 avatar Nov 22 '17 16:11 ibr123

see demo_inference.py,you can get image from fsns.py,and write unit8 imagearray to png file,then use demo_inference to test

justinshaohi avatar Nov 23 '17 07:11 justinshaohi

For future reference: this question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there. Thanks!

tatatodd avatar Nov 29 '17 01:11 tatatodd