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

Questions about using several digit capsule layers #112

Open
Ang-Li-95 opened this issue Jun 15, 2020 · 1 comment
Open

Questions about using several digit capsule layers #112

Ang-Li-95 opened this issue Jun 15, 2020 · 1 comment

Comments

@Ang-Li-95
Copy link

I am trying to use the CapsNet and it worked well. But when I tried to add another capsule layer like this:

   # layer 3: Digits Caps Layer
   digitcaps_1 = CapsuleLayer(num_capsule=10, dim_capsule=16, routings=routings, name='digitCaps_1')(primarycaps)

   digitcaps = CapsuleLayer(num_capsule=n_class, dim_capsule=8, routings=routings, name='digitCaps')(digitcaps_1)

   # layer 4: length layer 
   out_caps = Length(name='capsnet')(digitcaps)

The loss function just doesn’t improve even after many epochs. I tried decreasing learning rate to 1e-07 and decrease the num_capsul and dim_capsule to make the model simpler to train but it still didn’t improve.

Can someone please help me solve this?

Thanks!

@imadtyx
Copy link

imadtyx commented Jun 29, 2020

I am facing the same issue if you find an answer of solution please let me know

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