A lightweight library to help with training neural networks in PyTorch.
Project description
Ignite
Ignite is a high-level library to help with training neural networks in PyTorch.
ignite helps you write compact but full-featured training loops in a few lines of code
you get a training loop with metrics, early-stopping, model checkpointing and other features without the boilerplate
Below we show a side-by-side comparison of using pure pytorch and using ignite to create a training loop to train and validate your model with occasional checkpointing:
As you can see, the code is more concise and readable with ignite. Furthermore, adding additional metrics, or things like early stopping is a breeze in ignite, but can start to rapidly increase the complexity of your code when “rolling your own” training loop.
Installation
From pip:
pip install pytorch-ignite
From conda:
conda install ignite -c pytorch
From source:
python setup.py install
Documentation
API documentation and an overview of the library can be found here.
Examples
Please check out the examples to see how to use ignite to train various types of networks, as well as how to use visdom or tensorboardX for training visualizations.
Contributing
We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.
Please see the contribution guidelines for more information.
As always, PRs are welcome :)
How does this compare to Torchnet?
Ignite, in spirit is very similar to torchnet (and was inspired by torchnet).
The main differences with torchnet is the level of abstraction for the user. Ignite’s higher level of abstraction assumes less about the type of network (or networks) that you are training, and we require the user to define the closure to be run in the training and validation loop. In contrast to this, torchnet creates this closure internally based on the network and optimizer you pass to it. This higher level of abstraction allows for a great deal more of flexibility, such as co-training multiple models (i.e. GANs) and computing/tracking multiple losses and metrics in your training loop.
Ignite also allows for multiple handlers to be attached to events, and a finer granularity of events in the engine loop.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pytorch-ignite-0.1.2.tar.gz
.
File metadata
- Download URL: pytorch-ignite-0.1.2.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa126249855e67f31e9a800ecd5c9742dde5ad9b0372f792a21d70fc01c723b |
|
MD5 | c383eef75fbbcaf533bf241171cc1494 |
|
BLAKE2b-256 | 4b0c9d867ad0352c5dbcb5f3ccd896194423caac481fb15042718c7381f2ae8f |
File details
Details for the file pytorch_ignite-0.1.2-py3.5.egg
.
File metadata
- Download URL: pytorch_ignite-0.1.2-py3.5.egg
- Upload date:
- Size: 101.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c9705873742a0b78ef70ed518317232df8672e591bf612cd04fc2f4922e09fc |
|
MD5 | 17a1efb2ad510ca314229b9763d269f0 |
|
BLAKE2b-256 | 594f3bb00526e9fa5461bfb3993787895b57bd4180151525ff4754f37c58dba5 |
File details
Details for the file pytorch_ignite-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pytorch_ignite-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 44.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9bdbbb52c9fc6482a892b87b4b665fb66fb355807f7bd644615d5bce0d383e2 |
|
MD5 | 7c6e99ba5a06e91ce82beeb177308dc2 |
|
BLAKE2b-256 | 19797d53d47407668c1e73c4f22efceb40a787fe662017fffe8f2835d7e57a1b |