unstale

pypi / kornia

kornia

What changed in kornia 0.8 to 0.9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

9 breaking1 deprecations19 new APIs and options14 performance6 behavior and defaults23 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.4 on npm

kornia 0.921 changes

Breaking changes 8

  • Recheck outputs for warps, resize, RANSAC, and integer-image processing because corrected behavior can change results without raising.

    0.9.0release notes

  • Several feature constructors now download pretrained weights by default; select the documented offline or random option when needed.

    0.9.0release notes

  • The documented runtime requirement is Python ≥3.11.

    0.9.0release notes

  • A positive angle turns clockwise, unlike rotate and RandomRotation; account for the different direction when applying transforms.

    0.9.0release notes

  • The Ivy-powered entry point no longer performs conversion; use documented imports such as kornia.image for image helpers.

    0.9.0release notes

  • The Ivy-powered entry point no longer performs conversion; use documented imports such as kornia.image for image helpers.

    0.9.0release notes

  • The Ivy-powered entry point no longer performs conversion; use documented imports such as kornia.image for image helpers.

    0.9.0release notes

  • The documented runtime requirement is torch ≥2.5.1.

    0.9.0release notes

New APIs and options 3

  • An API for repeated feature extraction is available.

    0.9.0release notes

  • A batched matching API is available to use instead of implementing batched matching yourself.

    0.9.0release notes

  • RANSAC(compile=True) is available, but additionally requires torch ≥2.14 and has supported option combinations to check.

    0.9.0release notes

Performance 5

  • Augmentations are reported to perform 10x fewer host synchronizations.

    0.9.0release notes

  • CLAHE is reported as 2000x faster on MPS.

    0.9.0release notes

  • Gaussian blur is reported as 16x faster on Apple CPU.

    0.9.0release notes

  • Morphology operations are reported as 4x faster.

    0.9.0release notes

  • Unsharp mask is reported as 3x faster on Apple CPU.

    0.9.0release notes

Fixes and other changes 5

  • Set KORNIA_RANSAC_AOT=0 as an alternative workaround for the compiled-RANSAC cache crash, at a performance cost.

    0.9.0release notes

  • The documented runtime requirement is kornia_rs ≥0.2.0.

    0.9.0release notes

  • Use documented imports such as kornia.image for image helpers.

    0.9.0release notes

  • Keep learnable bilateral-filter sigmas in float32.

    0.9.0release notes

  • Half-precision warps and geometry are highlighted as working, but support is operation-specific and should be checked before relying on blanket half-precision support.

    0.9.0release notes

kornia 0.851 changes

Breaking changes 1

  • Support for PyTorch versions below 2.0.0 was dropped.

    0.8.2release notes

Deprecations 1

  • Deprecated utilities in kornia.utils begin emitting DeprecationWarning, targeting future removal.

    0.8.3release notes

New APIs and options 16

  • Adds AdaptiveQuadInterp3d and scale-space detector speedups.

    0.8.3release notes

  • Adds the ALIKED local feature detector and descriptor.

    0.8.3release notes

  • Adds half-precision support for float16 and bfloat16.

    0.8.3release notes

  • Adds iterative_quad_interp3d using Cramer's rule.

    0.8.3release notes

  • Adds KORNIA_CHECK_IMAGE_LAYOUT for image layout validation.

    0.8.3release notes

  • Adds mutual information losses and normalized mutual information losses.

    0.8.3release notes

  • Adds Open-CV style thresholding operations to the enhance/threshold module.

    0.8.3release notes

  • Adds fill_value support for RandomAffine.

    0.8.3release notes

  • Adds support for padding_mode="fill".

    0.8.3release notes

  • Adds rectangular and gaussian kernels for mutual information loss.

    0.8.3release notes

  • Adds a closed-form quartic solver.

    0.8.3release notes

  • Adds XFeat and new weights.

    0.8.3release notes

  • Adds an Adaptive Discriminator Augmentation preset.

    0.8.2release notes

  • Adds color space conversion support to Image.

    0.8.2release notes

  • Adds Otsu thresholding for automatic image segmentation.

    0.8.2release notes

  • Implements quaternion averaging.

    0.8.2release notes

Performance 9

  • denormalize_points_with_intrinsics is approximately 2× faster.

    0.8.3release notes

  • depth_to_normals is approximately 3× faster.

    0.8.3release notes

  • Vectorizes a loop to optimize bbox_to_mask3d.

    0.8.2release notes

  • Speeds up compose_transformations by 24%.

    0.8.2release notes

  • Speeds up euclidean_distance by 150% with more efficient tensor operations.

    0.8.2release notes

  • Avoids allocating a 2N x 2N weight matrix.

    0.8.2release notes

  • Speeds up normalize_min_max by 64%.

    0.8.2release notes

  • Speeds up point_line_distance by 28%.

    0.8.2release notes

  • Speeds up relative_transformation by 33%.

    0.8.2release notes

Behavior and default changes 6

Fixes and other changes 18

  • Fixes BgrToRgba calling the wrong conversion function.

    0.8.3release notes

  • Validates that sigma values are positive.

    0.8.3release notes

  • Fixes device and dtype propagation.

    0.8.3release notes

  • Fixes device and dtype propagation.

    0.8.3release notes

  • Fixes the ONNX io_name_conversion bug and updates variadic type hints.

    0.8.3release notes

  • Fixes MPS-specific runtime errors and skips tests unsupported on MPS.

    0.8.3release notes

  • Adds support for 3D tensors with shape (C, H, W).

    0.8.3release notes

  • Fixes same_on_batch behavior.

    0.8.3release notes

  • Fixes Resize ONNX export compatibility.

    0.8.3release notes

  • Harmonizes dtypes in transform_points batch matrix multiplication.

    0.8.3release notes

  • Fixes handling of a single-pixel instance in the upper-left corner.

    0.8.2release notes

  • Fixes the gradient check for convert_points_from_homogeneous.

    0.8.2release notes

  • Fixes an IndexError in the draw_line method.

    0.8.2release notes

  • Ensures saved grayscale images include a channel dimension (HxWx1).

    0.8.2release notes

  • Fixes a blocking operation in hsv_to_rgb.

    0.8.2release notes

  • Fixes gradient issues in quaternion scalar arithmetic.

    0.8.2release notes

  • Fixes the transformation matrix so it reflects actual image scaling.

    0.8.2release notes

  • Corrects same_on_frame and same_on_batch logic.

    0.8.2release notes