Coder Social home page Coder Social logo

Comments (3)

naturomics avatar naturomics commented on July 18, 2024

Are you talking about this line of code?

32 is the batch size due to my GPU doesn't allow a bigger one(128 in paper). I don't know why you think it is [668, 32, 1] in the last three dims; as 1152 represents the number of capsule in the primaryCaps layer, and 8 for the length of vector s_j / v_j, where v_j is the vector output of capsule j of primaryCaps layer. In Eq. 1, || s_j || do a square norm for each v_j, where j ranges from 0 to 1152. Now, I would like to think this s_j as a vector with shape 8x1, then square_norm(s_j) = ? I think that's pretty clear.

Feel free to correct me if you believe I am wrong.

from capsnet-tensorflow.

isaacgerg avatar isaacgerg commented on July 18, 2024

Yes.

I was under the impression that there were 32 capsules in the network, not 1152. Is this not true?

from capsnet-tensorflow.

naturomics avatar naturomics commented on July 18, 2024

@isaacgerg Although there are not 1152 independent capsules, due to the 6x6 grid capsules share their weights, but you should count each [8,1] vector as the output of one capsule, so we have 6x6x32=1152

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.