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

AttributeError: 'NoneType' object has no attribute 'output' in agegender_train.py when I use import keras-squeezenet #25

Open
areebsyed opened this issue Feb 7, 2020 · 0 comments

Comments

@areebsyed
Copy link

areebsyed commented Feb 7, 2020

Tensorflow Version

1.14.0

Keras Version

2.3.1

Keras-squeezenet Version

0.4

Bug reports:

I am using the command $ python agegender_train.py gender squeezenet imdb in https://github.com/abars/YoloKerasFaceDetection
So first there was an error in squeezenet.py in keras_squeezenet of

ImportError: cannot import name 'warnings' which I removed by commenting out the warnings section as it was just a print statement. So no more problem with the squeezenet.py but another has occured in the agegender_train.py in line 157

x = base_model.output AttributeError: 'NoneType' object has no attribute 'output'

Eventhough I have keras-squeezenet and the other models in the code example vgg16 or inceptionv3 are running. Only squeezenet is giving this error.

Code Sample:

line 154: from keras_squeezenet import SqueezeNet
line 155: input_tensor = Input(shape=(IMAGE_SIZE, IMAGE_SIZE, 3))
line 156: base_model = SqueezeNet(weights="imagenet", include_top=False, input_tensor=input_tensor)
line 157: x = base_model.output

@areebsyed areebsyed changed the title AttributeError: 'NoneType' object has no attribute 'output' in agegender_train.py AttributeError: 'NoneType' object has no attribute 'output' in agegender_train.py when I use import keras-squeezenet Feb 7, 2020
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