Hi,
I would like to use the VGG-16 pretrained net (https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3) on my own data set with only 15 labels. Also, my dataset is grayscale, so only 1 channel. I am thinking of concatenating the images to be of size (3,224,224), so 3 identical channels, as opposed to (1,224,224), would this work?
Also, how should I modify the last line of the model to output only 15 labels? if I change
model.add(Dense(1000, activation='softmax'))
to
model.add(Dense(15, activation='softmax'))
this obviously generates an error when loading the weights. Should I try adding a new layer instead and putting the previous one to relu only once I have loaded weights? I am a bit new to this.
Thanks!
J