AttributeError: 'function' object has no attribute 'get_session'

Author: a1030076395Created May 3, 2020Updated Aug 22, 2022

Using Theano backend. Image detection mode Ignoring remaining command line arguments: .\1.jpg,.\2.jpg Traceback (most recent call last): File "yolo_video.py", line 73, in detect_img(YOLO(**vars(FLAGS))) File "E:\study\pythonNameSpace\keras-yolo3-master\yolo.py", line 45, in init self.sess = K.backend.get_session() AttributeError: 'function' object has no attribute 'get_session'

what should I do?