You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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/YoloKerasFaceDetectionSo 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
The text was updated successfully, but these errors were encountered: