Tensorpack

Tensorpack

★ 4 🔖 2500 saves 💰 Free GitHub

Tensorpack is a neural network training interface on top of TensorFlow, built for training speed and research flexibility. A veteran project created in 2015, it has about 6,300 stars on GitHub, though its most recent updates were in 2023.

Overview

Tensorpack works with graph-mode TensorFlow and is deliberately not another model wrapper: you use ordinary TensorFlow symbolic functions — including Keras layers — inside it, while Tensorpack handles the training loop efficiently. The project reports training common CNNs 1.2 to 5 times faster than equivalent Keras code, with data-parallel multi-GPU and distributed training available off the shelf. Its dataflow library squeezes maximum throughput out of pure-Python data loading with automatic parallelization. The examples are a highlight: rather than toy demos, they faithfully reproduce well-known papers — ResNet and Mask/Faster R-CNN, MoCo, GAN variants, DQN and A3C reinforcement learning, and LSTM-CTC speech recognition. Note that Tensorpack targets the TF1 graph-mode world, using TF2’s compatibility mode. Tensorpack was created by Yuxin Wu and collaborators and became a standard reference during the TensorFlow 1.x era, when its training scripts were often the fastest public implementations available. Many of its examples are still used today to sanity-check reimplementations of classic models, even as the ecosystem has largely moved on to newer frameworks.

Key Features

  • Speed-first training: efficient graph-mode TensorFlow with no extra overhead over raw TF
  • Powerful data loading: the tensorpack.dataflow library maximizes Python-side data throughput
  • Multi-GPU ready: scalable data-parallel and distributed training strategies out of the box
  • Paper reproductions: faithful implementations of well-known vision, RL, and speech papers
  • Not a wrapper: use any TensorFlow symbolic functions, including Keras layers, inside Tensorpack
  • Model zoo: pretrained models and training scripts for common architectures

💳 Pricing

Tensorpack is completely free and open source under the Apache-2.0 license.

Who Is It For

Deep learning researchers maintaining TensorFlow graph-mode codebases, and anyone studying how classic papers were actually trained, who values faithful reproductions over toy examples.

🚀 Visit Tensorpack Official Site

🚩 Report an issue