jrosebr1 / simple-keras-rest-api

A simple Keras REST API using Flask
MIT License
374 stars 197 forks source link

Tensor Tensor is not an element of this graph. #7

Open ibrahimozgon opened 6 years ago

ibrahimozgon commented 6 years ago

Predict gives this error when i try on web app. But it works fine on console.

You can find related issue here: https://github.com/keras-team/keras/issues/2397

And also worked solution here: https://github.com/keras-team/keras/issues/2397#issuecomment-254919212

johncleveland commented 6 years ago
  1. I would like to request a requirements.txt file and possible a virtualenv with these repos because I cannot get the code as is to work at all. There are various work arounds. I am interested in the following one: If one alters the code by essentially
    getting rid of the load_model() call. It will work on gunicorn, gevent, uwsgi but it will not work on the Flask developmental server??? run_keras_server.txt
githubwei commented 5 years ago

Yeah bumped into above issues too