Is It Possible To See The Output After Conv2d Layer In Keras
I am trying to understand each layer of Keras while implementing CNN. In Conv2D layer i understand that it creates different convolution layer depending on various feature map valu
Solution 1:
You can get the output of a certain convolutional layer in this way:
import keras.backend as K
func = K.function([model.get_layer('input').input], model.get_layer('conv').output)
conv_output = func([numpy_input]) # numpy array
where 'input' and 'conv' denote the names of your input layer and convolutional layer. And you can get the weights of a certain layer like this:
conv_weights = model.get_layer('conv').get_weights() # numpy array
Post a Comment for "Is It Possible To See The Output After Conv2d Layer In Keras"