MCPcopy Index your code
hub / github.com/tensorpack/tensorpack

github.com/tensorpack/tensorpack @v0.11 sqlite

repository ↗ · DeepWiki ↗ · release v0.11 ↗
2,990 symbols 10,675 edges 247 files 1,126 documented · 38%
README

Tensorpack

Tensorpack is a neural network training interface based on TensorFlow.

ReadTheDoc Gitter chat model-zoo

Features:

It's Yet Another TF high-level API, with speed, and flexibility built together.

  1. Focus on training speed.

    • Speed comes for free with Tensorpack -- it uses TensorFlow in the efficient way with no extra overhead. On common CNNs, it runs training 1.2~5x faster than the equivalent Keras code. Your training can probably gets faster if written with Tensorpack.

    • Data-parallel multi-GPU/distributed training strategy is off-the-shelf to use. It scales as well as Google's official benchmark.

    • See tensorpack/benchmarks for some benchmark scripts.

  2. Focus on large datasets.

    • You don't usually need tf.data. Symbolic programming often makes data processing harder. Tensorpack helps you efficiently process large datasets (e.g. ImageNet) in pure Python with autoparallelization.
  3. It's not a model wrapper.

    • There are too many symbolic function wrappers in the world. Tensorpack includes only a few common models. But you can use any symbolic function library inside Tensorpack, including tf.layers/Keras/slim/tflearn/tensorlayer/....

See tutorials and documentations to know more about these features.

Examples:

We refuse toy examples. Instead of showing tiny CNNs trained on MNIST/Cifar10, we provide training scripts that reproduce well-known papers.

We refuse low-quality implementations. Unlike most open source repos which only implement papers, Tensorpack examples faithfully reproduce papers, demonstrating its flexibility for actual research.

Vision:

Reinforcement Learning:

Speech / NLP:

Install:

Dependencies:

  • Python 3.3+.
  • Python bindings for OpenCV. (Optional, but required by a lot of features)
  • TensorFlow ≥ 1.5, < 2
  • TF is not not required if you only want to use tensorpack.dataflow alone as a data processing library
  • TF2 is supported if used in graph mode (and use tf.compat.v1 when needed)
pip install --upgrade git+https://github.com/tensorpack/tensorpack.git
# or add `--user` to install to user's local directories

Please note that tensorpack is not yet stable. If you use tensorpack in your code, remember to mark the exact version of tensorpack you use as your dependencies.

Citing Tensorpack:

If you use Tensorpack in your research or wish to refer to the examples, please cite with:

@misc{wu2016tensorpack,
  title={Tensorpack},
  author={Wu, Yuxin and others},
  howpublished={\url{https://github.com/tensorpack/}},
  year={2016}
}

Core symbols most depended-on inside this repo

format
called by 510
tensorpack/utils/logger.py
append
called by 286
examples/DeepQNetwork/expreplay.py
join
called by 186
tensorpack/train/trainers.py
Conv2D
called by 159
tensorpack/models/conv2d.py
argscope
called by 91
tensorpack/tfutils/argscope.py
apply
called by 89
tensorpack/models/linearwrap.py
get
called by 82
tensorpack/utils/concurrency.py
add
called by 68
tensorpack/tfutils/sessinit.py

Shape

Method 1,776
Function 736
Class 477
Route 1

Languages

Python97%
TypeScript3%

Modules by API surface

docs/_static/jquery-3.2.1.min.js86 symbols
tensorpack/input_source/input_source.py74 symbols
tensorpack/dataflow/common.py72 symbols
tensorpack/callbacks/monitor.py70 symbols
tensorpack/dataflow/parallel_map.py53 symbols
tensorpack/dataflow/imgaug/transform.py52 symbols
tensorpack/tfutils/tower.py51 symbols
tensorpack/callbacks/base.py49 symbols
tensorpack/dataflow/parallel.py47 symbols
tensorpack/callbacks/param.py42 symbols
tensorpack/dataflow/imgaug/imgproc.py41 symbols
tensorpack/train/trainers.py39 symbols

Dependencies from manifests, versioned

Sphinx3.0.0 · 1×
docutils0.16 · 1×
recommonmark0.6.0 · 1×
tensorflow1.4.0 · 1×

For agents

$ claude mcp add tensorpack \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact