Kornia

kornia.readthedocs.io

Differentiable computer vision library for PyTorch with 1,200+ operators for image processing, camera geometry, feature matching and augmentation.

Pricing
Open source
Published
Nov 2, 2026

Next steps

What it does

Kornia is an open-source (Apache-2.0) differentiable computer vision library built on PyTorch, often described by the project as geometric computer vision for spatial AI. It offers more than 1,200 public operators, most without a torchvision equivalent: camera models and epipolar geometry, minimal solvers and RANSAC, feature detection, description and matching, edge detection, morphology, Lab and Bayer colour, image losses and metrics. Operations accept per-sample parameters in one batched call (for example a per-image blur sigma or rotation angle), solvers such as 7-/8-point fundamental, 5-point essential, DLT homography and PnP run batched on the GPU, and geometry functions (depth to 3D, projection, Brown–Conrady and Kannala–Brandt distortion, SO3/SE3 Lie groups) keep gradients with respect to depth, pose and camera parameters. AugmentationSequential applies one sampled transform to images, masks, boxes and keypoints together and can invert it. The project is positioning itself as the reference implementation for differentiable vision in the PyTorch ecosystem. About 11.8k GitHub stars; docs at kornia.readthedocs.io.

Kornia · Image from the official website
Image from the official website

Use cases

  • Add differentiable geometry to a PyTorch training pipeline
  • Run batched feature matching and RANSAC on the GPU
  • Augment images, masks, boxes and keypoints consistently

Frequently asked questions

How is Kornia different from torchvision?
Most of its 1,200+ operators have no torchvision equivalent, and they accept per-sample parameters in batched calls.
Is Kornia differentiable?
Yes, geometry and image operations keep gradients with respect to inputs such as depth, pose and camera parameters.
What license does it use?
Apache-2.0.
Log in to join the discussion