quangnhat185 / Plate_detect_and_recognize

Detecting and Reading vehicle's license plate from various countries (Germany, Vietnam, Japan, Thailand, Saudi, Russia, Korea, Usa, India, China)
MIT License
169 stars 125 forks source link

Error when importing MobileNetV2. #21

Open Pasandil opened 3 years ago

Pasandil commented 3 years ago

ImportError Traceback (most recent call last)

in 4 5 from keras.preprocessing.image import ImageDataGenerator ----> 6 from keras.applications import MobileNetV2 7 from keras.layers import AveragePooling2D 8 from keras.layers import Dropout ImportError: cannot import name 'MobileNetV2' from 'keras.applications' (C:\Users\IMAKA\AppData\Roaming\Python\Python39\site-packages\keras\applications\__init__.py) I HAVE ALL THE PRE REQUSISTS INSTALLED LOCALLY.
PereiraTaina commented 3 years ago

Hi , you can use this code in row 6 from tensorflow.keras.applications.mobilenet_v2 import MobileNetV2