Keras - All layer names should be unique
问题 I combine two VGG net in keras together to make classification task. When I run the program, it shows an error: RuntimeError: The name "predictions" is used 2 times in the model. All layer names should be unique. I was confused because I only use prediction layer once in my code: from keras.layers import Dense import keras from keras.models import Model model1 = keras.applications.vgg16.VGG16(include_top=True, weights='imagenet', input_tensor=None, input_shape=None, pooling=None, classes=1000