Closed mokiya closed 4 years ago
input is input_image_as_bytes which is not a shape, it takes bytes
for example
image = cv2.imread("myimage.png", 1)
then convert it onto bytes
is_success, im_buf_arr = cv2.imencode(".png", image)
byte_im = im_buf_arr.tobytes()
feed it to input tensor input_image_as_bytes
sess3.run([prediction_result], feed_dict={input_image_as_bytes: byte_im})
Hi
I would like to know input shape information.
I trained data using sample below without any specific configuration.
wget http://www.cs.cmu.edu/~yuntiand/sample.tgz
Which means, I just runaocr train ./datasets/training.tfrecords
for training.Testing (
aocr test ./datasets/testing.tfrecords
) is working as intended, and exporting (aocr export --format=frozengraph ./exported-model
) is also no issue.By the way, I run
summarize_graph
tools to know input shape. but as you can see below, there is no input shape information.I just wonder input information for training such as width, height and channel. My understanding is
width=160
,height=60
andchannel=1
. Please correct me, if I misunderstanding something.Thanks