I am getting this error
I have installed keras and other required libraries but don't know why this error is coming
from keras.applications import MobileNet
ImportError: cannot import name 'MobileNet'.
I am getting this error
I have installed keras and other required libraries but don't know why this error is coming
from keras.applications import MobileNet
ImportError: cannot import name 'MobileNet'.
You should import it as from keras.applications.mobilenet import MobileNet
.
I found the answer,If we are using Keras 2.2.0 version, then we will not find the applications module inside keras installed directory. Keras has externalized the applications module to a separate directory called keras_applications from where all the pre-trained models will now get imported.
The problem can be solved by upgrading Keras,Keras-Application version.Check this answer for help.