bojone / Capsule

A Capsule Implement with Pure Keras
350 stars 107 forks source link

About Primary Capsule #6

Open shamangary opened 6 years ago

shamangary commented 6 years ago

請問一下蘇大,由於您的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真的解釋得非常好,真的獲益良多,感謝

tw19941212 commented 5 years ago

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