Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
"Batched output tensor has 0 dimensions" problem when post only one image with '--enable_batching=true' #116
At first Thanks for sharing this project.
Follow the instruction I successfully set up the tensorflow_model_server and tried to post one or more images in the same request, it worked well as follows
REQ1: request only one image at a time
REQ2: request more than one image at a time
However, when I trying the same requests with '--enable_batching=true', REQ1 returns an
I tried to solve it but failed. Although with batching turned off it can work, I still want to know why...
I'm not sure it's an issue about this project or tf-serving, and sorry if it is placed wrong. I would be grateful if someone can help.
It seem's more related to TF Serving than attention-ocr.
You can read my last comment here: #94 (comment)
--> I don't understand well the differences between the two options explained in the tensorflow serving documentation about how specifying input tensors in row or column format. Maybe your tests can help to understand this tensorflow serving functionnality (you can test with row format check if the error still appear)
Thanks, @MariusMez. I tried row format and the result is: REQ2 can work with or without batching, while REQ1 failed in both modes.
It seems the row or column format is just the way to organize the input data and can work in both modes when posting multiple images. Posting one image will cause some dimension problem. It should be tf-serving's problem