DNN questions
I'm trying to understand a code found in berak's answer to a previously asked question: http://answers.opencv.org/question/19...
Thanks again to berak for sharing this code with us. The way that berak chops off the DNN's last few layers and attaches on a standard MLP ANN, it's like surgery. Nice work.
I hope that someone can answer a few questions that I have about the code:
1) How do you know that SqueezeNet has 67 layers, and how do you print out the properties of the last 10 layers?
2) There is code that states:
Mat_<int> layers(4, 1);
layers << 1000, 400, 100, 2; // the sqeezenet pool10 layer has 1000 neurons
So 1000 is the number of neurons in the first hidden layer, which attaches to the pool10 layer? Or does this 1000 neuron layer replace pool10?
And 2 is the number of one-hot encoding variables (two neurons, one per class), right?
How does one decide upon on 400 and 100 for the other hidden layers? Rule of thumb?
what's the linker error about ?
Sorry about that. I was in the midst of writing a question about linker errors, but I've since figured out the problem. I was linking to an older version of OpenCV, but now I'm linking to 3.4.x and it works fine. Anyway, it kept the data for my previous answer and I forgot to also alter the header.
don't feel bad, since you solved it on your own !