Examples#
We provide several examples using ignite to display how it helps to write compact and full-featured training loops in several lines of code:
MNIST example#
Basic neural network training on MNIST dataset with/without ignite.contrib
module:
These examples are ported from pytorch/examples.
Distributed examples#
Training a ResNet on CIFAR10 in various configurations:
single gpu
single node multiple gpus
multiple nodes and multilple gpus
single or multiple TPUs
CIFAR10 - This example displays usage of ignite.distributed helper module.
Other examples#
DCGAN - plain Deep Convolution Generative Adversarial Networks training
Reinforcement Learning - Actor/Critic and Reinforce methods on Cart-Pole task
Fast Neural Style - Artistic style transfer implementation.
These examples are ported from pytorch/examples.
Notebooks#
Another training Cycle-GAN on Horses to Zebras with Native Torch CUDA AMP
Convolutional Neural Networks for Classifying Fashion-MNIST Dataset
Benchmark mixed precision training on Cifar100: torch.cuda.amp vs nvidia/apex
All notebooks can be opened on Google Colab with a link:
https://colab.research.google.com/github/pytorch/ignite/blob/master/examples/notebooks/<notebook-name>
Reproducible trainings#
Inspired by torchvision/references, we provide several reproducible baselines for vision tasks:
Features:
Distributed training with mixed precision by nvidia/apex