Getting started

Backends

Before installing delira, you have to choose a suitable backend. delira handles backends as optional dependencies and tries to escape all uses of a not-installed backend.

The currently supported backends are:

  • torch (recommended, since it is the most tested backend): Suffix torch

    Note

    delira supports mixed-precision training via apex, but apex must be installed separately

  • torchscript : Suffix torchscript

    Note

    delira with torchscript backend dies currently not support Multi-GPU training.

  • tensorflow eager execution: Suffix tensorflow

    Note

    delira with tensorflow eager backend dies currently not support Multi-GPU training.

  • tensorflow graph mode: Suffix tensorflow

    Note

    delira with tensorflow graph backend dies currently not support Multi-GPU training.

  • chainer: Suffix chainer

  • scikit-learn: No Suffix

  • None: No Suffix

  • All (installs all registered backends and their dependencies; not recommended, since this will install many large packages): Suffix full

Note

Depending on the backend, some functionalities may not be available for you. If you want to ensure, you can use each functionality, please use the full option, since it installs all backends

Note

If you want to add a backend like CNTK, MXNET or something similar, please open an issue for that and we will guide you during that process (don’t worry, it is not much effort at all).

Installation

Backend

Binary Installation

Source Installation

Notes

None

pip install delira

pip install git+https://github.com/delira-dev/delira.git

Training not possible if backend is not installed separately

torch

pip install delira[torch]

git clone https://github.com/delira-dev/delira.git && cd delira && pip install .[torch]

delira with torch backend supports mixed-precision training via NVIDIA/apex (must be installed separately).

torchscript

pip install delira[torchscript]

git clone https://github.com/delira-dev/delira.git && cd delira && pip install .[torchscript]

The torchscript backend currently supports only single-GPU-training

tensorflow eager

pip install delira[tensorflow]

git clone https://github.com/delira-dev/delira.git && cd delira && pip install .[tensorflow]

the tensorflow backend is still very experimental and lacks some features

tensorflow graph

pip install delira[tensorflow]

git clone https://github.com/delira-dev/delira.git && cd delira && pip install .[tensorflow]

the tensorflow backend is still very experimental and lacks some features

scikit-learn

pip install delira

pip install git+https://github.com/delira-dev/delira.git

/

`chainer`_

pip install delira[chainer]

git clone https://github.com/delira-dev/delira.git && cd delira && pip install .[chainer]

/

Full

pip install delira[full]

git clone https://github.com/delira-dev/delira.git && cd delira && pip install .[full]

All backends will be installed