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

more details about the segmentation #2

Open
Qinying-Liu opened this issue Nov 24, 2017 · 2 comments
Open

more details about the segmentation #2

Qinying-Liu opened this issue Nov 24, 2017 · 2 comments

Comments

@Qinying-Liu
Copy link

Qinying-Liu commented Nov 24, 2017

I wonder if you can tell us how to segment overlapping digits as showed in your file "readme.md" . I haven't found the part correspond to segmentation in your code.Can you share the relevant code? Your reply would be highly appreciated.

@Qinying-Liu Qinying-Liu changed the title implementation of the overlapping digits more details about the segmentation Nov 24, 2017
@laodar
Copy link
Owner

laodar commented Nov 24, 2017

@canbaoburen I directly segment the input by separately reconstructing the two most likely digits, because if CapsNet works like what Hinton expects, the two longest DigitCaps Vectors will separately describe enough information about the digit, so actually the segmentation is done by the encoder, the encoder will separately describe two digit by its dynamic routing. this is why the paper said CapsNet will fail when there are two handwritten digits with same number, we only have one DigitCaps Vector for each number, the routing will fail, their information will crowd together.

in my code, i directly select the two DigitCaps vectors according to the label, because if the accuray is high enough, the two most likely number predicted by CapsNet will be nearly the same as label.

@Qinying-Liu
Copy link
Author

Qinying-Liu commented Nov 24, 2017

@laodar Thanks a lot.I think I've got your point and I'm going to read your code more carefully.Thanks!

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