1
$\begingroup$

I want to experiment Capsule Networks on FER. For now I am using fer2013 Kaggle dataset.

One thing that I didn't understand in Capsule Net was in the first conv layer, size was reduced to 20x20 - having input image as 28x28 and filters as 9x9 with 1 stride. But in the capsules, the size reduces to 6x6. How did this happen? Because with input size as 20x20 and filters as 9x9 and 2 strides, I couldn't get 6x6. Maybe I missed something.

For my experiment, input size image is 48x48. Should I use the same hyperparams for the start or is there any suggested hyperparams that I can use?

$\endgroup$
0
$\begingroup$

After the first Conv layer, the size reduced to 20x20 for the primary caps which is convolutional caps layer n final = (n + 2p -f )/s + 1 which gives a 6x6 output with 256 channels

6x6x256 is further encoded into capsules of 8 dimensions by reshaping the channels i.e. 256/8 = 32 which gives 6x6x32 = 1152 capsules

try experimenting with the same hyperparameters first and then try to encode higher-level features by making suitable changes to the hyperparameters.

$\endgroup$
  • $\begingroup$ Try to revise your question inline with your answer $\endgroup$ – quintumnia Aug 17 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.