question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confusion in function update_routing

See original GitHub issue

@brjathu Hi. I’ve read your paper and it’s great that you’ve given your code. Thanks a lot. I have a few doubts in the ConvCapsuleLayer3D layer. Could you clarify them for me?

  1. In the paper, the softmax_3D function was given, with the denominator summed over spatial positions and the capsules in the l+1 th layer. The implementation, however, uses nn.softmax whose denominator sums over only the capsules in update_routing. Could you clarify this?
  2. In the update_routing function, I am unable to understand the reshaping operations. It seems that the dimension for the batch size is being changed. Could you clarify the sizes used? Thank you.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
HopefulRationalcommented, Aug 1, 2019

@ierosodin Hi. I have put a quick and dirty PyTorch implementation of DeepCaps as a .py file.You may have a look at that: https://github.com/HopefulRational/DeepCaps-PyTorch It is being trained on transformed FashionMNIST and tested of FashionMNIST.

0reactions
brjathucommented, Aug 7, 2019

Hi,

Localized routing comes because, with a 3*3 kernel a nine local capsules are routed together.

Regards, R.Jathushan

On Wed, 7 Aug 2019 at 10:42, ierosodin notifications@github.com wrote:

Hi @brjathu https://github.com/brjathu , I still have a few doubts. I’m wondering what’s the meaning of “localized voting” you have mentioned in the paper. For example, for each capsule in capsule layer l+1, what are the capsules it routes in capsule layer l? Every capsule in layer l across all of the location? or just in a limited kernel. Thanks!

Sincerely, Tony

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/brjathu/deepcaps/issues/4?email_source=notifications&email_token=ABZNVOM5UGSMGOVJALAOA73QDJVFJA5CNFSM4IHAP2D2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3XL43Q#issuecomment-518962798, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZNVOIGGV7DVNYMRJRPEE3QDJVFJANCNFSM4IHAP2DQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Confusion in function overloading in c++ - Stack Overflow
Whenever I call print(10) or print(0) the one for int datatype is called. But when I try to call print(3.5) , it gives...
Read more >
Confusion regarding def function within Python
It's just been extremely confusing seeing the argument set as one word, and then having the variable named something completely different, but having...
Read more >
Routing Decisions (1.2) > Routing Concepts | Cisco Press
A primary function of a router is to forward packets toward their destination. This is accomplished by using a switching function, which is...
Read more >
Confusion and diffusion - Wikipedia
Confusion means that the process drastically changes data from the input to the output, for example, by translating the data through a non-linear...
Read more >
The Link State Update Packet - Routing Protocols
Note Potential for confusion exists because OSPF regards link-state ... used to update routing tables is the link-state update packet (LSU).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found