0

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'.

sdcbr
  • 7,021
  • 3
  • 27
  • 44
  • The problem is maybe with the keras verions. Try upgrading them [using this](https://stackoverflow.com/questions/43071995/why-do-i-havent-the-keras-applications-module/61555897#61555897). – Progga Ilma May 02 '20 at 07:38

3 Answers3

1

You should import it as from keras.applications.mobilenet import MobileNet.

sdcbr
  • 7,021
  • 3
  • 27
  • 44
0

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.

0

The problem can be solved by upgrading Keras,Keras-Application version.Check this answer for help.

Progga Ilma
  • 578
  • 6
  • 8