I have loaded a resnet model using from keras.applications.resnet50 import ResNet50 and now I want to insert some new layers in the middle of the model.
Removing then Inserting a New Middle Layer in a Keras Model
There is a solution described in the link above, but the ResNet model also has some Add layers in its architecture and this is why I get the following error:
ValueError: A merge layer should be called on a list of inputs.
Is there any clean way I can insert new layers in the middle or should I code the model myself from scratch?