Closed tangshi closed 7 years ago
You'd better ask in StackOverflow
with exact code. If you are going to use in production environment, maybe you could give TensorFlow Serving
a try.
Thanks @potterhsu , it finally works. I just run the inference step in a new thread.
I have successfully run this project and fine tuning with my custom data, thanks @potterhsu very much!
However, I don't know how to make it a web server to provide an interface which receives an image as input parameter and return the recognized result.
I wrote a function based on inference.py. I modified little, just changed it from a script to a function.
Unfortunately, the script (inference.py) runs well while the function based on it crashes, following is the error mesage:
I'm a newcomer in TensorFlow, can you help me ? Thank you very much !