ValueError: Dimensions must be equal
guddulrk opened this issue · comments
Hi mate,
I am trying to run your program on my Characters dataset. But this shows the following error:
Dimensions must be equal, but are 68 and 128 for 'mul_1' (op: 'Mul') with input shapes: [128,68,68], [128,68].
In my case, there are 68 classes. therefore, I have changed depth value from 10 to 68. But still, it shows the error. Can you please help me?
Hi,
if you are still trying to resolve this problem please provide more context. What is the model definition you are using and in which file and line does the error occur. Otherwise, I recommend using the https://github.com/XifengGuo/CapsNet-Keras as I am currently working on other projects and not maintaining this one.
In principle, when you just want to support a new dataset that contains more classes you need to change the "DigitCaps layer:" digitcaps = caps.dense(primarycaps, 68, 16, ...
and the input layer.
Best regards and sorry for the late answer,
Chris