Open ghost opened 7 years ago
Any update on getting this to work?
@willjohnathan Perhaps I am misunderstanding the problem, but you can simply use prepare_pretrained_model.py
. All the variables you need to set are at the very end of the script.
It is probably my lack of knowledge on this. I was trying to upload the model to the cloud ml-engine and it requires a savedmodeld.pb file. Again I am new to this so not sure the best way to incorporate this into say a flask app. I was looking into saving the model as mentioned to do this. The other option I was looking at is to upload it into a docker container onto the cloud compute engine. I feel like I am missing something simple / obvious though on the best way to tie my trained model into a web app.
I know little about the Google Cloud ML-engine (if that is in fact what you are referring too). It obviously supports Tensorflow models, but I am not sure about the savedmodeld.pb
problem.
As for a Flask app, the primary issue is that (as far as I can tell) NeuroNER will make a prediction when called and then exit. You would need to play with the code a bit, likely in main.py
to set up a loop (receive data --> perform inference --> return results).
Thanks for the project!
I want to save session checkpoint model as
SavedModel
. But I get an error. How can I add the missing values?