I am using alexnet, you can see the structure of the network as following:
Alexnet structure with outputs
I used the activations function in Matlab to get the features of my data from the output of conv5 layer. The output is a feature vector with a dimension 43264 for each single image (I have 14000 Images).
I did some processing on this output with no change in the dimension so it still 43264.
I want to re-enter the data to the network starting in pooling layer 5 and train the network.
As you can notice in the structure of alexnet, the input of the pooling 5 should be 13x13x256. So I changed the feature vector 43264 to 13x13x256 matrix, so the whole training set will be a cell array 14000x1 each cell has 13x13x256.
I used the following code to train the network:
net = trainNetwork (Trainingset, labels, Layers, trainingOptions)
I still has an error saying unexpected input to Pooling layer!
Any I idea please?
Thanks in advance
Many Thanks