git404hub

what is capsnet-tensorflow fr?

naturomics/capsnet-tensorflow — explained in plain English

Analysis updated 2026-06-26

3,793PythonAudience · researcherComplexity · 3/5Setup · moderate

tl;dr

A TensorFlow implementation of Geoffrey Hinton's Capsule Networks paper, trained on MNIST and Fashion-MNIST, intended as a learning and reproduction exercise rather than a production-ready library.

vibe map

mindmap
  root((CapsNet TF))
    What it is
      Capsule Networks impl
      Paper reproduction
      Learning exercise
    How it works
      Vector-based capsules
      Dynamic routing
      MNIST training
    Datasets
      MNIST digits
      Fashion-MNIST
    Tech used
      Python
      TensorFlow
      TensorBoard
    Audience
      ML researchers
      AI students
    Limitations
      Not production ready
      Use CapsLayer instead

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Reproduce the CapsNet paper results on MNIST handwritten digits to understand how capsule networks work

VIBE 2

Train a capsule network on Fashion-MNIST clothing images and compare accuracy to the numbers reported in the original paper

VIBE 3

Study how vector-based capsule routing differs from standard convolutional layers by reading and running this code

what's the stack?

PythonTensorFlowTensorBoard

how it stacks up fr

naturomics/capsnet-tensorflownvlabs/vilanewpanjing/simpleui
Stars3,7933,7933,792
LanguagePythonPythonPython
Setup difficultymoderatehardeasy
Complexity3/54/52/5
Audienceresearcherresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 1h+

Requires a compatible TensorFlow version, multi-GPU training is supported via a separate folder but adds setup complexity.

in plain english

This repository is a code implementation of a research idea called CapsNet, or Capsule Networks, originally proposed by Geoffrey Hinton, a well-known figure in AI research. The implementation is built using TensorFlow, which is a popular Python library for running machine learning computations. The goal was to reproduce the results from Hinton's 2017 paper on a new kind of neural network architecture. Standard neural networks process information as individual numbers flowing between layers. Capsule Networks instead group those numbers into small clusters called capsules, where each capsule represents not just whether something is present but also its orientation and other properties. The author's notes describe it as a shift from single-value inputs and outputs to vector-based ones, and compare the routing mechanism to an attention system. The idea is that this approach could better understand spatial relationships in images. In practice, this implementation trains on two image recognition datasets: MNIST, which is handwritten digits, and Fashion-MNIST, which is clothing items. The training results shown in the README come close to but do not fully replicate the accuracy numbers reported in the original paper. The code supports multiple GPUs through a separate folder in the repository. To use it, you download the repository, fetch one of the datasets, and run the training script. A configuration file lets you adjust settings like batch size and how many training passes to run. TensorBoard, a visualization tool included with TensorFlow, can be used to monitor training progress. The author notes that for building new projects on top of capsule ideas, a separate library called CapsLayer is a better starting point than this repository, which was primarily a learning and reproduction exercise.

prompts (copy fr)

prompt 1
I want to train CapsNet on MNIST using this repo. Walk me through downloading the dataset and running the training script.
prompt 2
Explain the capsule routing mechanism in this TensorFlow implementation and how it differs from standard convolutional neural network layers.
prompt 3
How do I launch TensorBoard to monitor training loss and accuracy while running capsnet-tensorflow?
prompt 4
I want to try Capsule Networks on my own image dataset instead of MNIST. What changes do I need to make in this codebase?

Frequently asked questions

what is capsnet-tensorflow fr?

A TensorFlow implementation of Geoffrey Hinton's Capsule Networks paper, trained on MNIST and Fashion-MNIST, intended as a learning and reproduction exercise rather than a production-ready library.

What language is capsnet-tensorflow written in?

Mainly Python. The stack also includes Python, TensorFlow, TensorBoard.

How hard is capsnet-tensorflow to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is capsnet-tensorflow for?

Mainly researcher.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.