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
NameError Traceback (most recent call last)
in ()
1 # set up transfer learning on pre-trained ImageNet Inception_V3 model - remove fully connected layer and replace
2 # with softmax for classifying 10 classes
----> 3 incepV3_model = InceptionV3(weights = 'imagenet', include_top = False, input_shape=(299,299,3))
4 x = incepV3_model.output
5 x = Flatten(name='flatten')(x)
~/anaconda3/envs/tensorflow-venv/lib/python3.6/site-packages/keras_applications/inception_v3.py in InceptionV3(include_top, weights, input_tensor, input_shape, pooling, classes)
362 elif pooling == 'max':
363 x = layers.GlobalMaxPooling2D()(x)
--> 364 x = Flatten(name='flatten')(x)
365 # Ensure that the model takes into account
366 # any potential predecessors of input_tensor.
NameError: name 'Flatten' is not defined
The text was updated successfully, but these errors were encountered:
NameError Traceback (most recent call last)
in ()
1 # set up transfer learning on pre-trained ImageNet Inception_V3 model - remove fully connected layer and replace
2 # with softmax for classifying 10 classes
----> 3 incepV3_model = InceptionV3(weights = 'imagenet', include_top = False, input_shape=(299,299,3))
4 x = incepV3_model.output
5 x = Flatten(name='flatten')(x)
~/anaconda3/envs/tensorflow-venv/lib/python3.6/site-packages/keras_applications/inception_v3.py in InceptionV3(include_top, weights, input_tensor, input_shape, pooling, classes)
362 elif pooling == 'max':
363 x = layers.GlobalMaxPooling2D()(x)
--> 364 x = Flatten(name='flatten')(x)
365 # Ensure that the model takes into account
366 # any potential predecessors of
input_tensor
.NameError: name 'Flatten' is not defined
The text was updated successfully, but these errors were encountered: