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

  • tf (very experimental): Suffix tf

    Note

    the tf backend is still very experimental and may be unstable.

  • 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, Chainer, 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/justusschock/delira.git

Training not possible if backend is not installed separately

torch

pip install delira[torch]

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

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

tf

git clone https://github.com/justusschock/delira.git && cd delira && pip install .[tf]

The tensorflow backend is still very experimental and lacks some features

Full

pip install delira[full]

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

All backends are getting installed.