-
Notifications
You must be signed in to change notification settings - Fork 51
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
RuntimeError: Attempted to use a closed Session. #3
Comments
Did the Part 1 code work ok? |
Yes,it work |
@ViVi0122 you were able to run the complete project? What's the status now? |
@AmitKKhanchandani I have this error Traceback (most recent call last): |
@ViVi0122 I'm not getting this kind of error, did you modify anything in the source code? I did get the RuntimeError: Attempted to use a closed Session Error, but I revert tensorflow back to 1.4.0 version and got a different kind of issue which is TypeError: 1 is not JSON serializable |
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.
The text was updated successfully, but these errors were encountered: