Description
I try to running the hard way, In 2.1 Turn the Demo code into a service when i run the object_detection_api_test.py it give a error i can fix it.
This is my error and tensorflow version.
Version:
Tensorflow:1.5.0
python:3.6.3
protoc:2.6
Error:
Traceback (most recent call last):
File "object_detection_api_test.py", line 11, in
response = object_detection_api.get_objects(image)
File "/home/hallen/models/research/object_detection/tfweb/object_detection_api.py", line 90, in
get_objects
feed_dict={image_tensor: image_np_expanded})
File "/home/hallen/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line
900, in run
run_metadata_ptr)
File "/home/hallen/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line
1058, in _run
raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.