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: global name 'Sequential' is not defined #3

Open
pavanireddys opened this issue Nov 21, 2017 · 1 comment
Open

NameError: global name 'Sequential' is not defined #3

pavanireddys opened this issue Nov 21, 2017 · 1 comment

Comments

@pavanireddys
Copy link

Hello everyone while executing the code in jupyter notebook the following error was occured. please anybody can help.

NameError Traceback (most recent call last)
in ()
1 # do not rerun!!
----> 2 save_bottleneck_features(location)

in save_bottleneck_features(location)
2 datagen = ImageDataGenerator(rescale=1./255)
3
----> 4 model = load_vgg16()
5
6 generator = datagen.flow_from_directory(train_data_dir,

in load_vgg16(weights_path)
1 def load_vgg16(weights_path='../vgg16_weights.h5'):
----> 2 model = Sequential()
3 model.add(ZeroPadding2D((1,1),input_shape=(3, img_width, img_height)))
4 model.add(Convolution2D(64, 3, 3, activation='relu'))
5 model.add(ZeroPadding2D((1,1)))

NameError: global name 'Sequential' is not defined

@girijesh18
Copy link

Hey @pavanireddys
Did you find the model in the static folder?
I am getting the following error while running app.py
(unable to open file: name = 'static/models/d1_ft_model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

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

2 participants