Closed joheras closed 7 years ago
I will have to look at the weights file. Sadly, I'm travelling right now so I can't do that for the next 11 days or so.
Thanks, whenever you have time to do it will be fine for me. Since loading the weights including the top layer works properly, and I am planning to try this network for transfer learning, I wonder if it makes sense to load the weights including the top layer, and then remove the last layer of the network. Will it produce the same results as loading the weights without the last layer?
DenseNet doesn't have Fully Connected Layers. It feeds directly into a Softmax class layer after the global average pooling.
If you load up all the laters, then pop the last layer (it would be the same as using the no top model). To make sure how many layers to pop, look at the last section of the DenseNet code.
Sorry for the hassle and I'll look into it asap
Yes, that was what I meant.
Thank you so much, and congratulations for this nice work.
Hi,
first of all, thanks for your work providing this Keras implementation of DenseNets.
I am trying to create a DenseNet model without the last layer using the instruction:
model = densenet.DenseNet((32, 32,3), depth=40, growth_rate=12, nb_filter=16,include_top=False)
but it produces the following error:
It does not matter whether I use theano or tensorflow as backend.
Do you know how to solve this?
Thanks in advance. Jónathan