Kornia: Run image processing and geometry on PyTorch tensors
Added
Made by kornia
View profile on GitHub (opens in a new tab)Apply image filters, warps, augmentations and feature matching as differentiable PyTorch operations.
For developers building computer vision and robotics models.
What it does
Kornia is a differentiable computer vision library built on PyTorch. It offers image processing, geometric vision and augmentation operators that run on the same device as your input tensors, and most of them keep gradients so a model can learn through them.
How to use it
Install Kornia from pip into a Python environment that has PyTorch, then call its operators, such as Gaussian blur or image warps, on batches of image tensors. The project's documentation also links tutorials and examples.
Common use cases
- Pass a batch of images with a different blur strength for each one, and you get all the blurred images back from a single call.
- Give AugmentationSequential images, masks, boxes and keypoints, and you get the same random transform applied to all of them together.
- Give the depth to 3D function a depth map and camera settings, and you get 3D points that keep gradients with respect to depth.
Can I use this?
Requirements It runs inside your own Python programs, on the device your PyTorch tensors use. Install it from pip. Licensed under Apache-2.0.
Caveat Speedups in the source come from published benchmarks on an RTX 4090 with batch 32 and vary with hardware and workload; against torchvision on the same GPU, eager Kornia is slower.
Worth knowing For a single fixed-parameter operation, such as one blur or one resize, a few lines of PyTorch or torchvision are just as good, and OpenCV wins single-image uint8 CPU work.
Why it's here
Not trending this week
Last seen on the GitHub trending list on 4 November 2026. It stays on BuildTube so you can still find it.
- 12,356 people have starred it on GitHub.
Numbers checked on 8 November 2026; not refreshed since.
Behind it
View sourceBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is Kornia?
- Kornia is a differentiable computer vision library built on PyTorch.
- What can I use Kornia for?
- Pass a batch of images with a different blur strength for each one, and you get all the blurred images back from a single call. Give AugmentationSequential images, masks, boxes and keypoints, and you get the same random transform applied to all of them together. Give the depth to 3D function a depth map and camera settings, and you get 3D points that keep gradients with respect to depth.
- Can I run Kornia on my computer?
- Yes. Kornia is a Python library you install with pip and use inside your own PyTorch code, on CPU or GPU.
- What do I need to use Kornia?
- Python and PyTorch, with Kornia installed from pip. Some features such as ONNX export need extra packages listed in the install guide.
- What license does Kornia use?
- Licensed under Apache-2.0.
More from this week
- kimi-k3-in-c Run a 2.78-trillion-parameter model on 8 GB of RAM
Get text answers from the huge Kimi K3 AI model using one CPU and no graphics card.
- Astryx Build React app screens from ready-made accessible components
Build React app interfaces with 150+ ready-made components and themes.
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-kornia-kornia/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-kornia-kornia/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="Kornia on BuildTube"></iframe>