hli2020 / nn_encapsulation Goto Github PK
View Code? Open in Web Editor NEWCapsule research with our trivial contribution
Capsule research with our trivial contribution
In table 4 an error of 4.55% is reported (this is also the top result from table 3s ablative analysis). When training on cifar10 using the default settings (calling main.py without setting any args) an error of 11.93% can be reproduced. However it doesn't appear that EncapNet is doing any routing with these settings, and without routing between capsules EncapNet appears to be a deep CNN with grouped convolutions to for capsules. --withCapRoute looks to turn on capsule routing for modules 3 and 4. Are any other settings needed to get an error of 4.55% on cifar10. Is the augmentation code used for EncapNet++ include in nn_encapsulation.
First, thanks for your work. The approach is novel and I'm really interesting in your design of master branch and aide branch. I also read your implementation and if i'm right, it would be mentioned in class capConvRoute3
:
the master branch is generated from main_cap
and the aide branch is generated from res_cap
And also in your paper, you said that
... one is a main mapping that directly
receives knowledge from its lower counterpart i, whose spatial location is the
same as jās; another is a side mapping which sums up all the remaining lower
capsules, whose spatial location is different from jās.
However, in your code, the res_cap
is generated by
nn.Conv2d(ch_num_in, ch_num_out, kernel_size=ksize[0]+4, stride=stride, padding=pad[0]+2)
, which don't have any pre-processing to ignore the lower capsule in the same spatial location.
Is this for the convenience of implementation? Or if I have a wrong understanding.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.