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

NameError: name 'preprocess_input' is not defined` #7

Open
tobimichigan opened this issue Feb 6, 2021 · 0 comments
Open

NameError: name 'preprocess_input' is not defined` #7

tobimichigan opened this issue Feb 6, 2021 · 0 comments

Comments

@tobimichigan
Copy link

Hi @kirilcvetkov92

Please could you check this section of your code:

`from keras.applications import *
#from keras.applications import preprocess_input
Xception_model = Xception(weights='imagenet',input_shape= (608,608,3), include_top=False)

16x Down

inputs = Input(shape=(608,608,3))
x = Lambda(lambda image: preprocess_input(image))(inputs)
#spatial path`

`NameError Traceback (most recent call last)

in ()
4 # 16x Down
5 inputs = Input(shape=(608,608,3))
----> 6 x = Lambda(lambda image: preprocess_input(image))(inputs)
7 #spatial path

5 frames

in (image)
4 # 16x Down
5 inputs = Input(shape=(608,608,3))
----> 6 x = Lambda(lambda image: preprocess_input(image))(inputs)
7 #spatial path

NameError: name 'preprocess_input' is not defined`

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