mrkeyoor.com_
Sun 01 Nov 21:52 UTC
AI Toolsevaluationupdated 01 Nov 2026

kornia review

Kornia is a PyTorch library for processing images and working with camera geometry. Many operations preserve the gradients a learning system needs to adjust its parameters, so you can include them inside a training pipeline rather than moving images into a separate processing step.

Verdict

Kornia installed in 81 seconds and built in 5 seconds in our sandbox, but its test run timed out after 900 seconds without a final summary. I'd evaluate it for supported differentiable geometry inside a PyTorch pipeline, with a representative forward and backward check on the intended device. For ordinary transformations already covered by your current library, the measured 5,472 MB environment gives you a reason to justify the extra dependency first.

We ran it

Lab card: what happened when we ran korniaScreenshot of kornia (kornia.readthedocs.io)
Install✓ · 81s81 packages · 5472 MB
Build✓ · 5s
Tests✗ timed out · 900sran, no count parsed
Known vulns0(pip-audit)
Repo1473 files~376,623 lines of source · 29.3 MB · 15 CI workflows · tests dir

Answers from our run

Does kornia build from source?

Dependencies installed in 81 seconds (81 packages), and the build succeeded in 5 seconds. We cloned commit d9e934b into a clean Debian container with 3 CPUs and no project-specific setup.

Do kornia's tests pass?

We could not finish them: the suite was still running after 15 minutes in our container.

Does kornia have known vulnerabilities in its dependencies?

pip-audit found none in the dependency tree at the time of our run.

Who should not use kornia?

Teams requiring a completed passing suite from this lab run: Kornia timed out after 900 seconds without a final result summary.

What are the alternatives to kornia?

torchvision, OpenCV. Kornia installed in 81 seconds and built in 5 seconds in our sandbox, but its test run timed out after 900 seconds without a final summary.

SetupN/ASource install and build completed, but a representative supported vision workflow was not reproduced.
DocsN/AREADME, release contracts and conventions were inspected; broad API instruction accuracy was not assessed.
CommunityN/ACurrent issue and pull-request activity was observed, without evidence sufficient to score support capacity.
MaturityN/AThe suite timed out with no final summary; numerical accuracy, gradients and production device behavior were not assessed.

Who it’s for

PyTorch developers who need gradients through supported image warps or camera operations.
Researchers who need batched geometry operations on tensors.
Teams evaluating joint image and annotation augmentation in two dimensions, with per-operation checks.

Who it’s NOT for

Teams requiring a completed passing suite from this lab run: Kornia timed out after 900 seconds without a final result summary.
Users expecting every operation to support gradients: the README explicitly excludes RANSAC and some feature-extraction methods.
Applications expecting three-dimensional augmentation to transform annotations and provide an inverse: the README limits that workflow to volumes without those capabilities.
Teams adopting it for an unlisted pretrained model: the README freezes model-zoo expansion and requires a maintainer sponsor for new integrations.

Setup reality

Our November 1, 2026 run at d9e934b installed dependencies in 81 seconds and built in 5 seconds. It recorded 81 dependencies and 5,472 MB on disk. Tests timed out after 900 seconds; the tail shows passing and skipped markers without a final summary or explanatory exception. pip-audit reported zero known vulnerabilities.

Core use needs a compatible PyTorch environment, not a hosted-service credential. Some integrations require optional extras, and several feature constructors download pretrained weights by default. Check model assets separately if the target machine must work offline.

The sandbox had 3 CPUs and 8 GB RAM, with image label ghcr.io/astral-sh/uv:python3.12-bookworm; actual runtime versions weren't established. Our run provides no GPU, gradient-accuracy or throughput result. Match the installed version's documentation, coordinate conventions and device support to your chosen operation.

Kornia earns its place when vision operations must stay in PyTorch

If your training loss needs to change a camera pose through an image warp, the choice of vision library affects what you can train. Kornia supplies image processing and geometry operations on PyTorch tensors, with gradients through many of them. That is a persuasive reason to add it to a learning pipeline. Replacing an existing resize call, by itself, is a weaker reason.

The useful distinction is where your data already lives and what must remain differentiable. Kornia's README describes batched operations without a NumPy round trip. It also explicitly excludes some operations from gradient support, including RANSAC and extraction methods in some learned feature pipelines. Choose the operation you need before assuming that the library's differentiable label covers every stage.

What happened when we ran it

Our sandbox installed Kornia in 81 seconds and built it in 5 seconds, but the tests timed out after 900 seconds. The November 1, 2026 run used commit d9e934b and recorded 81 dependencies occupying 5,472 MB. That's a substantial environment for someone evaluating a library, although it isn't a measured minimum footprint for every deployment route.

The final test-log lines contain passing dots and skipped markers. They contain no final summary or exception explaining the timeout. We cannot give a completed pass count, identify a failing case or diagnose a package or environment cause from that tail. The finding is an incomplete test run under our limit. It doesn't establish that Kornia's vision operators are broken.

The recorded pip-audit result was zero known vulnerabilities. This is a dated dependency-check result, not proof that the package has no security defects. We measured no image-processing throughput, gradient accuracy or GPU workload. In particular, the install and build timings say nothing about how quickly a warp will execute inside your training loop.

The sandbox configuration specified 3 CPUs and 8 GB RAM, with image label ghcr.io/astral-sh/uv:python3.12-bookworm. Actual runtime versions require logs we don't have here. The checkout contained 1,473 files, about 376,623 source lines and 29.3 MB. The scan found 15 CI workflow files and a tests directory, with no Dockerfile. Workflow count doesn't establish platform coverage or passing CI.

Coordinate conventions can change a result without raising an error

Kornia's conventions guide distinguishes point order (x,y) from output-size order (h,w). It also documents different rotation directions between APIs. A shape-correct tensor can still mean the wrong transformation if those conventions don't match the rest of your pipeline.

For integration, I'd use an image with a clearly marked corner and known points, then check the transformed image against those points. That is a proposed acceptance check, not an experiment we performed. It resolves a more useful question than whether the operator returned a tensor: did the coordinates move where your application expected?

The v0.9.0 release notes, published October 23, 2026, warn that corrected behavior can change numerical baselines for warps, resizing and other operations without raising errors. They also say the latest documentation follows development. Match documentation to the installed version, and retain representative outputs when upgrading. A passing import won't catch a change in your coordinate assumptions.

Joint annotation transforms have documented boundaries

The README describes AugmentationSequential applying sampled transformations to images and registered annotations together in two dimensions. For segmentation or detection training, that is a useful reason to evaluate Kornia: the image and its labels need to stay aligned. The same README says three-dimensional augmentations transform volumes without annotations or an inverse.

That boundary matters if your work involves labelled medical volumes or another three-dimensional dataset. Don't carry the two-dimensional workflow into that setting by assumption. Even in two dimensions, check the specific augmentation: the conventions guide names transforms that don't move boxes and keypoints with the image. An augmentation container doesn't erase per-operation limits.

Likewise, half precision needs an operation-level decision. The release notes say some calculations use wider internal types and that forward execution doesn't establish gradient accuracy or native-half speed. Our sandbox provides no evidence to resolve those questions. Check the dtype, device and backward path you'll actually use rather than treating half-precision support as one switch for the whole library.

Model downloads are separate from the measured environment

The release notes warn that several feature constructors download pretrained weights by default. For an offline or restricted deployment, select the documented constructor option and make a deliberate plan for weights. Our recorded dependency footprint doesn't establish the size or availability of those model assets.

The current README also says model-zoo expansion is frozen while maintenance concentrates on the core. Existing shipped models remain available, but new integrations require a maintainer sponsor. That makes Kornia a poor bet if your main adoption reason is expecting an unlisted model to arrive. Use the geometry and models it documents today.

The last push was November 1, 2026, and recent issue and pull-request activity concerns filter padding and geometry corrections. Together with the October release, this shows active maintenance. It doesn't establish support capacity, numerical correctness for your workload or completion of our timed-out suite.

Keep torchvision or OpenCV when they already cover the task

torchvision supplies datasets, model architectures and common image transformations. If those are the operations your PyTorch application needs, check that existing toolbox before adding Kornia. We have no comparative benchmark showing that either choice is faster for your shapes and device.

OpenCV is another computer-vision library to consider when your existing processing pipeline lives outside PyTorch. Its presence doesn't rule out using Kornia for a differentiable stage. Start the Kornia trial with the exact warp or geometry operation you need, including its backward path and annotation checks, and keep the expected output as an upgrade reference.

Alternatives

ProjectWhat it isPick it when
torchvisionPyTorch datasets, vision model architectures and common image transformations.Pick this instead when its common image transformations already cover your PyTorch workload.
OpenCV gh↗An open-source computer-vision library.Evaluate this instead when your existing vision pipeline lives outside PyTorch and you do not need Kornia for a differentiable stage.

What people are saying

  1. [github-trending] kornia/kornia

Sources

  1. Kornia README
  2. Kornia v0.9.0
  3. Coordinate and operation conventions
  4. torchvision
  5. OpenCV
  6. Recent issue and pull-request activity

More ai tools reviews

skills · anarlog · pr-agent · agent-sprite-forge · KiroCrew · Orkas · the whole board →