{"id":24587791,"url":"https://github.com/naturomics/capslayer","last_synced_at":"2025-04-06T12:07:27.581Z","repository":{"id":26979823,"uuid":"112068682","full_name":"naturomics/CapsLayer","owner":"naturomics","description":"CapsLayer: An advanced library for capsule theory","archived":false,"fork":false,"pushed_at":"2022-01-21T09:44:07.000Z","size":9732,"stargazers_count":359,"open_issues_count":19,"forks_count":115,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-03-30T11:06:22.327Z","etag":null,"topics":["capslayer","capsnet","capsule-network","em-routing","matrix-capsule","routing-algorithm","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naturomics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-26T08:54:22.000Z","updated_at":"2025-03-01T06:09:12.000Z","dependencies_parsed_at":"2022-08-07T12:01:22.743Z","dependency_job_id":null,"html_url":"https://github.com/naturomics/CapsLayer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturomics%2FCapsLayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturomics%2FCapsLayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturomics%2FCapsLayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturomics%2FCapsLayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naturomics","download_url":"https://codeload.github.com/naturomics/CapsLayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478318,"owners_count":20945266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capslayer","capsnet","capsule-network","em-routing","matrix-capsule","routing-algorithm","tensorflow"],"created_at":"2025-01-24T07:13:11.023Z","updated_at":"2025-04-06T12:07:27.558Z","avatar_url":"https://github.com/naturomics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CapsLayer: An advanced library for capsule theory\n\nCapsule theory is a potential research proposed by Geoffrey E. Hinton et al, where he describes the shortcomings of the Convolutional Neural Networks and how Capsules could potentially circumvent these problems such as \"pixel attack\" and create more robust Neural Network Architecture based on Capsules Layer.\n\nWe expect that this theory will definitely contribute to Deep Learning Industry and we are excited about it. For the same reason we are proud to introduce **CapsLayer**, an advanced library for the Capsule Theory, integrating capsule-relevant technologies, providing relevant analysis tools, developing related application examples, and probably most important thing: promoting the development of capsule theory. \n\nThis library is based on [Tensorflow](https://www.tensorflow.org) and has a similar API with it but designed for capsule layers/models.\n\n\n# Features\n\n- TensorFlow-like API for building Neural Nets block, see [API docs](https://github.com/naturomics/CapsLayer/blob/master/docs/api_docs.md) for more details:\n\t- [x] capslayer.layers.conv2d\n\t- [x] capslayer.layers.conv1d\n\t- [x] capslayer.layers.fully_connected/dense\n\t- [x] capslayer.layers.primaryCaps\n\t- [x] capslayer.losses.spread_loss\n\t- [x] capslayer.losses.margin_loss\n\n- Datasets support:\n  - [x] [MNIST](http://yann.lecun.com/exdb/mnist)\n  - [x] [Fashion-MNIST](https://github.com/zalandoresearch/fashion-mnist)\n  - [x] [CIFAR-10](http://www.cs.toronto.edu/~kriz/cifar.html)\n  - [ ] [small NORB](https://cs.nyu.edu/~ylclab/data/norb-v1.0-small)\n\n- Capsule Nets Model examples:\n\t- [x] [Dynamics routing between capsules](https://arxiv.org/abs/1710.09829)\n\t- [x] [matrix capsule with EM routing](https://openreview.net/forum?id=HJWLfGWRb)\n\n- Algorithm support:\n\t- [x] Routing-by-agreement: including EM Routing and Dynamic Routing\n\nIf you want us to support more features, let us know by opening Issues or sending E-mail to naturomics.liao@gmail.com\n\n\n# Documentation\n- [Installation](docs/installation.md)\n- [Tutorials](docs/tutorials.md) for running CapsNet on supported dataset (MNIST/CIFAR10 etc.) or your own dataset, or building your network with Capsule Layer\n- [Theoretical Analysis](docs/articles.md)\n\n\n# Contributions\nFeel free to send your pull request or open issues\n\n\n# Citation\nIf you find it is useful, please cite our project by the following BibTex entry:\n```\n@misc{HuadongLiao2017,\ntitle = {CapsLayer: An advanced library for capsule theory},\nauthor = {Huadong Liao, Jiawei He},\nyear = {2017}\npublisher = {GitHub},\njournal = {GitHub Project},\nhowpublished = {\\url{http://naturomics.com/CapsLayer}},\n}\n```\n\n\u003e **Note:**\n\u003e We are considering to write a paper for this project, but before that, please cite the above Bibtex entry if you find it helps.\n\n\n# License\nApache 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturomics%2Fcapslayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturomics%2Fcapslayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturomics%2Fcapslayer/lists"}