Installation#

To install Kornia, you can do it in two different ways: using the provided PyPi wheels or directly from source.

Note

Kornia only has as a dependency Pytorch.

  1. From pip:

pip install kornia
pip install kornia[x]  # to get the training API !
  1. From source:

python setup.py install
  1. From source using pip:

pip install git+https://github.com/kornia/kornia

Once you succeeded installing Kornia check you can import:

python -c "import kornia; print(kornia.__version__)"