Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save session for running with webbase app(Flask) #59

Merged
merged 1 commit into from Nov 6, 2019

Conversation

WisTiCeJEnT
Copy link
Contributor

@WisTiCeJEnT WisTiCeJEnT commented Oct 20, 2019

Having a problem when using deepcut with Flask. First request everything just fine, but it's crash on next one. note that deepcut is working fine if it using in python interactive mode(python -i) it can predict for many times as it should be.

this is what I got from second requests with flask

tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable conv1d_10/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/conv1d_10/bias)
     [[{{node conv1d_10/Reshape/ReadVariableOp}}]]

with keras-team/keras#2397, tensorflow/tensorflow#28287 and https://stackoverflow.com/questions/53653303/where-is-the-tensorflow-session-in-keras I found that using same session solved this.

@titipata
Copy link
Collaborator

titipata commented Nov 6, 2019

LGTM!

@titipata titipata merged commit c29f0df into rkcosmos:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants