Skip to content

gitzlh/capsule-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

capsule-pytorch

an extremyly each-to-follow pytorch implement of Hinton's capsule network.

Motivation

It is hard to believe that if you search "capsule+pytorch" in github, the top three repos all contain serious mistakes (see their corresponding issues pages).

The mistakes include:

  1. wrong softmax dimention for the calculation of c_ij in Eq.3 of the original paper.
  2. wrong margin loss function.
  3. wrong dimention to which the squash function is applied.

Once these mistakes are corrected, their models cannot learn at all. I guess there are some other mistakes.

Besides, most of the pytorch-implemented capsule network are based on pytorch 0.3 and are a bit of outdated.

run

python3 train.py

Thanks:

About

a pytorch implement of Hinton's capsule network.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages