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

RuntimeError: Attempted to use a closed Session. #42

Open
hoonkai opened this issue Sep 19, 2019 · 0 comments
Open

RuntimeError: Attempted to use a closed Session. #42

hoonkai opened this issue Sep 19, 2019 · 0 comments

Comments

@hoonkai
Copy link

hoonkai commented Sep 19, 2019

Hi

I'm trying to disable the speed hack by setting SPLIT_MODEL to False, but I keep getting an error "RuntimeError: Attempted to use a closed Session.":

> Press 'q' to Exit
Traceback (most recent call last):
  File "objectdetection_image.py", line 20, in <module>
    main()
  File "objectdetection_image.py", line 17, in main
    model.run()
  File "/Volumes/Data/Projects/realtime_object_detection/src/realtime_object_detection/rod/model.py", line 235, in run
    self.detect()
  File "/Volumes/Data/Projects/realtime_object_detection/src/realtime_object_detection/rod/model.py", line 521, in detect
    self.run_default_sess()
  File "/Volumes/Data/Projects/realtime_object_detection/src/realtime_object_detection/rod/model.py", line 430, in run_default_sess
    options=self._run_options, run_metadata=self._run_metadata)
  File "/Volumes/Data/Projects/realtime_object_detection/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 929, in run
    run_metadata_ptr)
  File "/Volumes/Data/Projects/realtime_object_detection/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1075, in _run
    raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.

Is there a fix to this?

Thanks

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

No branches or pull requests

1 participant