Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the 8 32-channel conv be replaced with a single 256-channel conv in PrimaryCapsule? #29

Open
njzwj opened this issue Jul 9, 2019 · 1 comment

Comments

@njzwj
Copy link

njzwj commented Jul 9, 2019

Thanks for sharing the nicely written code.

I wonder that is there any difference between using 8 32-channel convlayer and a single 256-channel convlayer? It seems like the "In total PrimaryCapsules has [32*6*6] capsule outputs (each output is an 8D vector)" mentioned in Dynamic Routing Between Capsules can be simply implemented as a 256-channel convlayer followed by a reshaping operation.

But I haven't seen anyone using 256-channel conv so far. Am I thinking wrong?

@njzwj njzwj changed the title Can I replace the 8 32-channel conv with a single 256-channel conv in PrimaryCapsule? Can the 8 32-channel conv be replaced with a single 256-channel conv in PrimaryCapsule? Jul 10, 2019
@gchochla
Copy link

I have used such an implementation for the PrimaryCaps layer in my repository (https://github.com/gchochla/caps/blob/master/caps/layers.py#L33). I had to use an extra variable to separate them for the output of the layer though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants