Помогите с ошибкой: AttributeError: module 'tensorflow' has no attribute 'get_default_session'
Код:
from imageai.Detection import VideoObjectDetection
from keras import backend as K
import os
execution_path = os.getcwd()
detector = VideoObjectDetection()
detector.setModelTypeAsYOLOv3()
detector.setModelPath(os.path.join(execution_path , "yolo.h5"))
detector.loadModel()
video_path = detector.detectObjectsFromVideo(
input_file_path = os.path.join(execution_path, "traffic.mp4"),
output_file_path = os.path.join(execution_path, "traffic_detected"),
frames_per_second = 20,
log_progress = True
)
print(video_path)