qqwweee / keras-yolo3

A Keras implementation of YOLOv3 (Tensorflow backend)
MIT License
7.14k stars 3.45k forks source link

ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'?? #763

Open Wanrui-account opened 2 years ago

Wanrui-account commented 2 years ago

Traceback (most recent call last): File "convert.py", line 14, in from keras import backend as K File "D:\86186\anaconda\envs\yolov5\lib\site-packages\keras__init__.py", line 25, in from keras import models File "D:\86186\anaconda\envs\yolov5\lib\site-packages\keras\models.py", line 19, in from keras import backend File "D:\86186\anaconda\envs\yolov5\lib\site-packages\keras\backend.py", line 36, in from tensorflow.python.eager.context import get_config ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'