🚀 The TensorFlow Object Counting API is an open source framework built on top of TensorFlow and Keras that makes it easy to develop object counting systems!
I am experiencing this problem when running the single image object counting .py without modification
Traceback (most recent call last):
File "single_image_object_counting.py", line 21, in
result = object_counting_api.single_image_object_counting(input_video, detection_graph, category_index, is_color_recognition_enabled) # targeted objects counting
File "B:\Tensorflow\models\research\object_detection\api\object_counting_api.py", line 511, in single_image_object_counting
feed_dict={image_tensor: image_np_expanded})
File "C:\Users\berni\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
run_metadata_ptr)
File "C:\Users\berni\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\client\session.py", line 1103, in _run
raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.
I am experiencing this problem when running the single image object counting .py without modification
Traceback (most recent call last): File "single_image_object_counting.py", line 21, in
result = object_counting_api.single_image_object_counting(input_video, detection_graph, category_index, is_color_recognition_enabled) # targeted objects counting
File "B:\Tensorflow\models\research\object_detection\api\object_counting_api.py", line 511, in single_image_object_counting
feed_dict={image_tensor: image_np_expanded})
File "C:\Users\berni\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
run_metadata_ptr)
File "C:\Users\berni\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow_core\python\client\session.py", line 1103, in _run
raise RuntimeError('Attempted to use a closed Session.')
RuntimeError: Attempted to use a closed Session.
Tensorflow: 1.15