Coder Social home page Coder Social logo

Comments (5)

laubonghaudoi avatar laubonghaudoi commented on July 18, 2024

Agree. I still have difficulties in understanding how b_ij and W_ij are updated, there is little information on this in the paper. Hinton has mentioned to give up back-propagation in his speeches but what I have seen so far in this implementation is still using Adam to update weights by back-propagating gradients from the two capsule layers.

from capsnet-tensorflow.

naturomics avatar naturomics commented on July 18, 2024

@bshao001 You're right, I misunderstood the routing algorithm. Thank you for your pointing out. The interesting thing is, the loss can go down steadily (not effective as the result of the paper). I'm fixing it.

from capsnet-tensorflow.

13331151 avatar 13331151 commented on July 18, 2024

I don't think the routing process could be unfolded into 6 layers, because u_ij is only calculated once in one forward pass.

from capsnet-tensorflow.

InnerPeace-Wu avatar InnerPeace-Wu commented on July 18, 2024

Here is some of my idea about log prior or bias. @bshao001 I think the static way will still work fine, the key is we should not update bias during routing. Since we only use dynamic routing to compute digit caps in this case, and with static way, the digit caps could be updated. Here is my implementation of Capsnet for reference.

from capsnet-tensorflow.

bshao001 avatar bshao001 commented on July 18, 2024

@naturomics
不幸被我言中,原作者的代码果然用了tf.while_loop来实现核心的_update_routing方法。

from capsnet-tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.