Capsule icon indicating copy to clipboard operation
Capsule copied to clipboard

About Primary Capsule

Open shamangary opened this issue 7 years ago • 1 comments

請問一下蘇大,由於您的capsule_test裏的前一層採用了: Reshape((-1,128))應該是對應於primary capsule, 這是否是對應於128 capsule的dim而非數量? 因為我稍微看了一下原本Hinton的paper和下面這個實現 https://github.com/XifengGuo/CapsNet-Keras 似乎都把8-dim 當作primary capsule的特徵維度。 雖然說dim和num就算反過來也完全可以做運算, 只是想問一下跟原paper之間的關係是否是想選擇128當作capsule num?

P.S. Blog真的解釋得非常好,真的獲益良多,感謝

shamangary avatar Aug 11 '18 14:08 shamangary

在他的test里面, -1 应该是对应 num_capsule , 128 应该是对应 capsule_dim

tw19941212 avatar Jan 06 '19 14:01 tw19941212