'How to remove input layer from cnn model
i want to remove the input layer from my pre-trained Xception model cause i want to add it's layers to my custom model so i tried to remove the input layer like this:
newmodel=Xception(weights='imagenet',input_shape(224,224,3),include_top=False)
newmodel.layers[0].pop()
so that i should have Xception model without the input layer but the problem is it gives me this error
AttributeError: 'InputLayer' object has no attribute 'pop'
so is it possible to remove the input layer from the model just to use all it's layers in another one?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
