Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'keras.applications.inceptionresnetv2' #4

Open
zotttttttt opened this issue Nov 8, 2018 · 0 comments

Comments

@zotttttttt
Copy link

Hey! Great code by the way, but I want to point out an error. If I try to use InceptionResnetV2, I get "ModuleNotFoundError: No module named 'keras.applications.inceptionresnetv2'"

To fix that change

keras.applications.inceptionresnetv2

to

keras.application.inception_resnet_v2

in your main.py so that it would look like that:

elif args.model == "InceptionResNetV2":
    from keras.applications.inception_resnet_v2 import preprocess_input
    preprocessing_function = preprocess_input
    base_model = InceptionResNetV2(weights='imagenet', include_top=False, input_shape=(HEIGHT, WIDTH, 3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant