neokt / car-damage-detective

Assessing car damage with convolution neural networks for a personal auto claims expedition use case
205 stars 113 forks source link

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

Open pavanireddys opened 6 years ago

pavanireddys commented 6 years ago

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 commented 5 years ago

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)