I'm able to fit several Keras applications (VGG16, InceptionResNetV2, Xception, etc) without error, but when I attempt to fit NASNetLarge with the line of code shown below, I get the error message shown below. Clearly the error message isn't true based on my line of code since I have include_top=False. In fitting these different applications, I'm simply importing the corresponding function and renaming the function in my line of code given below.
Summary
I'm able to fit several Keras applications (VGG16, InceptionResNetV2, Xception, etc) without error, but when I attempt to fit NASNetLarge with the line of code shown below, I get the error message shown below. Clearly the error message isn't true based on my line of code since I have
include_top=False
. In fitting these different applications, I'm simply importing the corresponding function and renaming the function in my line of code given below.Environment
Logs or source codes for reproduction
base_model = NASNetLarge(classes=n_classes, include_top=False, input_shape=(img_height, img_width, 3), weights='imagenet')