почему появляется ошибка self.sess = K.get_session() AttributeError: module 'keras.backend' has no attribute 'get_session'
Почему при при данном коде появляется данная ошибка self.sess = K.get_session() AttributeError: module 'keras.backend' has no attribute 'get_session'
from imageai.Detection import ObjectDetection
import os
exec_path = os.getcwd()
detector = ObjectDetection()
detector.setModelTypeAsRetinaNet()
detector.setModelPath(os.path.join(exec_path, "resnet50_coco_best_v2.0.1.h5"))
detector.loadModel()
list = detector.detectObjectsFromImage(
input_image = os.path.join(exec_path, "objects.jpg"),
output_image_path=os.path.join(exec_path, "new_objects.jpg")
)