English

Kornia: an Open Source Differentiable Computer Vision Library for PyTorch

Computer Vision and Pattern Recognition 2019-10-10 v2

Abstract

This work presents Kornia -- an open source computer vision library which consists of a set of differentiable routines and modules to solve generic computer vision problems. The package uses PyTorch as its main backend both for efficiency and to take advantage of the reverse-mode auto-differentiation to define and compute the gradient of complex functions. Inspired by OpenCV, Kornia is composed of a set of modules containing operators that can be inserted inside neural networks to train models to perform image transformations, camera calibration, epipolar geometry, and low level image processing techniques, such as filtering and edge detection that operate directly on high dimensional tensor representations. Examples of classical vision problems implemented using our framework are provided including a benchmark comparing to existing vision libraries.

Keywords

Cite

@article{arxiv.1910.02190,
  title  = {Kornia: an Open Source Differentiable Computer Vision Library for PyTorch},
  author = {Edgar Riba and Dmytro Mishkin and Daniel Ponsa and Ethan Rublee and Gary Bradski},
  journal= {arXiv preprint arXiv:1910.02190},
  year   = {2019}
}

Comments

Updated adversarial attack example

R2 v1 2026-06-23T11:35:08.183Z