torchbearer

torchbearer: A model fitting library for PyTorch

Github stars Tracking Chart

PyPI version Python 2.7, 3.5, 3.6, 3.7 PyTorch 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0 Build Status codecov Documentation Status Downloads

A PyTorch model fitting library designed for use by researchers (or anyone really) working in deep learning or differentiable programming. Specifically, we aim to dramatically reduce the amount of boilerplate code you need to write without limiting the functionality and openness of PyTorch.

Examples

General

Deep Learning

Differentiable Programming

Install

The easiest way to install torchbearer is with pip:

pip install torchbearer

Alternatively, build from source with:

pip install git+https://github.com/pytorchbearer/torchbearer

Citing Torchbearer

If you find that torchbearer is useful to your research then please consider citing our preprint: Torchbearer: A Model Fitting Library for PyTorch, with the following BibTeX entry:

@article{torchbearer2018,
  author = {Ethan Harris and Matthew Painter and Jonathon Hare},
  title = {Torchbearer: A Model Fitting Library for PyTorch},
  journal  = {arXiv preprint arXiv:1809.03363},
  year = {2018}
}

Torchbearer isn't the only library for training PyTorch models. Here are a few others that might better suit your needs (this is by no means a complete list, see the awesome pytorch list or the incredible pytorch for more):

  • skorch, model wrapper that enables use with scikit-learn - crossval etc. can be very useful
  • PyToune, simple Keras style API
  • ignite, advanced model training from the makers of PyTorch, can need a lot of code for advanced functions (e.g. Tensorboard)
  • TorchNetTwo (TNT), can be complex to use but well established, somewhat replaced by ignite
  • Inferno, training utilities and convenience classes for PyTorch
  • Pytorch Lightning, lightweight wrapper on top of PyTorch with advanced multi-gpu and cluster support
  • Pywick, high-level training framework, based on torchsample, support for various segmentation models

Main metrics

Overview
Name With Ownerpytorchbearer/torchbearer
Primary LanguagePython
Program languagePython (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2018-03-12 16:30:42
Pushed At2023-12-04 11:10:47
Last Commit At2023-12-04 11:10:46
Release Count26
Last Release Name0.5.5 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count640
Watchers Count24
Fork Count64
Commits Count442
Has Issues Enabled
Issues Count247
Issue Open Count10
Pull Requests Count427
Pull Requests Open Count0
Pull Requests Close Count6
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private