got this error sir
“tensorflow.python.framework.errors_impl.InvalidArgumentError: Tensor input_1:0, specified in either feed_devices or fetch_devices was not found in the Graph”
please tell me how to remove it
tensorflow.python.framework.errors_impl.InvalidArgumentError: Tensor input_1:0, specified in either feed_devices or fetch_devices was not found in the Graph
Hey @abubakar_nsit
Run the flask app with the debug mode disabled and the threaded parameter set to False.
if __name__ == '__main__':
app.run(debug=False, threaded=False)
Let me know if this works!
1 Like
yes sir, it worked ,
sir, please explain the significance of that debug and threaded??
Simply put, when Threaded is true, every web request is created on a new thread with a new Tensorflow session. Now, the tricky thing is that our model is loaded in the default session and not in the new session of our new thread. Hence the error.
To read more about it, refer this link.
Hope this helps!
Thank You … I had the same problem…
Same Error But I Couldn’t Fix It