I wanted to see output of various intermediate layers while i was using a VGG model(Just for fun).
So after a Convolution operation u get something like this (?,28,28,512):
- ? for number of images passed
- 28*28 is the dimension after convolution operation and
- 512 is the number of filter that were provided.
I wanted to see what various output look like For Example of[0,:,:,25] and so used this method in the link to convert an array into image. Now my question is what kind of image is this exactly if not an RGB cause when i see the image there definitely are some blue,green color.
EDIT:- Code that i have been using:-
req_model = Model(inputs=base_model.input,
outputs=base_model.get_layer('block4_conv2 ').output)
vpred = req_model.predict(img) ## np.shape(vpred) == (1,28,28,512)
plt.imshow(vpred[0,:,:,12])
TL;DR What does an image of shape 28*28 mean exactly[i thought i was going to see something black and white] in my case and if this is not the right way i would love some guidance.