Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Python by (200 points)

While working on object detection, this error keeps on popping up on keras yolov3 model.

Here is the error:

AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

I also tried replacing "import keras.module.module" to "tensor.keras.module.module". Eventhough, its not working. Anyone help me out with this error.

1 Answer

0 votes
by (26.4k points)
edited by

In the YOLOv3 model for object detection project, there's some issue with these versions. Earlier, Even I had faced the same issue and then I used Keras 2.2.0 & tensorflow 1.14.0

pip install tensorflow==1.14.0

pip install keras==2.2.0

Execute the above command to overwrite those versions.

Want to become a Python expert? Come and join this python online course 

To know more about these topics, you can also look at the following video tutorial:

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...