Skip to content

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

@tobimichigan

Description

@tobimichigan

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions