RuntimeError: Attempted to use a closed Session.
hoonkai opened this issue · comments
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