При использовании Tensorflow 2.0 с Yolov3 для обнаружения содержимого изображения появляется следующее сообщение об ошибке. Может кто-нибудь помочь объяснить, как решить эту проблему?
detections = detector.detectObjectsFromImage(input_image = os.path.join(execution_path , 'image_11.png'),output_image_path = os.path.join(execution_path , 'imagenew_11.jpg'),minimum_percentage_probability = 30)
TypeError Traceback (most recent call last)
C:\Anaconda3\lib\site-packages\imageai\Detection\__init__.py in detectObjectsFromImage(self, input_image, output_image_path, input_type, output_type, extract_detected_objects, minimum_percentage_probability, display_percentage_probability, display_object_name)
433 self.__yolo_input_image_shape: [image.size[1], image.size[0]],
--> 434 K1.learning_phase(): 0
435 })
~\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\framework\ops.py in __hash__(self)
712 (g is None or g._building_function)): # pylint: disable=protected-access
--> 713 raise TypeError("Tensor is unhashable if Tensor equality is enabled. "
714 "Instead, use tensor.experimental_ref() as the key.")
**TypeError: Tensor is unhashable if Tensor equality is enabled. Instead, use tensor.experimental_ref() as the key.**
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-10-a9cb98ef991a> in <module>
2 input_image = os.path.join(execution_path , 'image_11.png'),
3 output_image_path = 'imagenew_11.jpg',
----> 4 minimum_percentage_probability = 30)
C:\Anaconda3\lib\site-packages\imageai\Detection\__init__.py in detectObjectsFromImage(self, input_image, output_image_path, input_type, output_type, extract_detected_objects, minimum_percentage_probability, display_percentage_probability, display_object_name)
517
518 except:
--> 519 raise ValueError("Ensure you specified correct input image, input type, output type and/or output image path ")
520
521
**ValueError: Ensure you specified correct input image, input type, output type and/or output image path**.