Papers › Kornia: an Open Source Differentiable Computer Vision Library for PyTorch

Kornia: an Open Source Differentiable Computer Vision Library for PyTorch

5 Oct 2019arXiv:1910.02190archive 2025-07-28

Edgar Riba, Dmytro Mishkin, Daniel Ponsa, Ethan Rublee, Gary Bradski

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.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

No sample from the archive's official repository (kornia/kornia) is linked to this paper; the 20 samples below come from 2 community repositories. Syntology harvested code from kornia/kornia for another paper.

kornia/kornia: Syntology's graph links these samples to MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer (arXiv:2110.02178; that paper's own run record: 53 ran (of which 31 constructed an object rather than computing a result; 44 with no instrument failure: 1 honoured, 0 violated, 43 with no contract checked; 9 where Syntology's instrument failed) · 15 unverified); nothing checks that they implement this paper's method.

Syntology 20 code samples harvested from 2 repositories linked to this paper: 12 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 0 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code; here there are none.

By repository: community (archive-listed): 20 samples from 2 repositories, 12 ran (12 with no instrument failure; 0 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 2 of its repositories that Syntology harvested for other papers:

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

kornia/kornia officialmentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer (arXiv:2110.02178; that paper's own run record: 53 ran (of which 31 constructed an object rather than computing a result; 44 with no instrument failure: 1 honoured, 0 violated, 43 with no contract checked; 9 where Syntology's instrument failed) · 15 unverified); nothing checks that they implement this paper's method. report
adam-mehdi/MuarAugment mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to On the Generalization Effects of Linear Transformations in Data Augmentation (arXiv:2005.00695; that paper's own run record: 6 ran (of which 1 constructed an object rather than computing a result; 6 with no instrument failure: 1 honoured, 0 violated, 5 with no contract checked; 0 where Syntology's instrument failed) · 3 unverified); nothing checks that they implement this paper's method. report
arraiyopensource/torchgeometry mentioned on GitHubpytorchApache-2.0Syntology: 14 samples, 6 ran (0 instrument-failed) · 8 unverified report
manyids2/kornia mentioned on GitHubpytorchApache-2.0Syntology: 6 samples, 6 ran (0 instrument-failed) · 0 unverified report
pksvision/Deep-WaveNet-Underwater-Image-Restoration mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

20 samples harvested: 12 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 0 honoured, 0 violated, 12 with no contract checked; 0 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

12ran
8unverified

Licence: 0 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 1 sample that ran, the graph records a signature this page does not show: an argument's recorded type or element kind is a printout of an object in Syntology's harness (such as a mock object, a class or a pandas printout), not the type of an input, so it does not describe the call's shape. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

arraiyopensource/torchgeometry community (archive-listed) 14 samples, 6 ran (0 instrument-failed) · 8 unverified
KORNIA_UNWRAP kornia/core/check.py ran Apache-2.0 (permissive) · 599c18b8f8db01de · report fixture: returned Tensor · level recorded 2026-09-24
hf_url kornia/core/download.py ran fingerprinted Apache-2.0 (permissive) · eee8227d7d06c693 · report fixture: signature repo:str/0/str, filename:str/0/str · returned str · level recorded 2026-09-24
time_us benchmarks/common.py ran Apache-2.0 (permissive) · 28254b28b6b25aa8 · report fixture: signature fn:callable/0/?, min_run_time:float/0/float, sync:NoneType/0/?, num_threads:int/0/int · returned tuple · level recorded 2026-09-24
time_us_or_error benchmarks/common.py ran Apache-2.0 (permissive) · ffad1746a07855b2 · report fixture: signature fn:callable/0/?, min_run_time:float/0/float, sync:NoneType/0/?, num_threads:int/0/int · returned tuple · level recorded 2026-09-24
validate_artefact benchmarks/results_schema.py ran Apache-2.0 (permissive) · 3286740a3fa2ea7e · report fixture: signature path:PosixPath/0/? · returned list · level recorded 2026-09-24
validate_result benchmarks/results_schema.py ran Apache-2.0 (permissive) · 2beca07bad1498c3 · report fixture: signature path:PosixPath/0/? · returned list · level recorded 2026-09-24
KORNIA_CHECK kornia/core/check.py unverified Apache-2.0 (permissive) · e8f7a3ea874a438a · report
KORNIA_CHECK_SHAPE kornia/core/check.py unverified Apache-2.0 (permissive) · bbf98733bfa5c36e · report
download_file_from_url kornia/core/download.py unverified Apache-2.0 (permissive) · 62980aa194af6a33 · report
load_state_dict_from_url in 8 papers kornia/core/download.py unverified Apache-2.0 (permissive) · 0dfafa22115f9ffe · report
run_metadata benchmarks/common.py unverified Apache-2.0 (permissive) · 3d19faa7fd35b5b9 · report
torch_version_ge kornia/core/_compat.py unverified Apache-2.0 (permissive) · c962bead721155d5 · report
torch_version_le kornia/core/_compat.py unverified Apache-2.0 (permissive) · d55371b833e21170 · report
torch_version_lt kornia/core/_compat.py unverified Apache-2.0 (permissive) · 44c8e0b0e11a0d7e · report
manyids2/kornia community (archive-listed) 6 samples, 6 ran (0 instrument-failed) · 0 unverified
add_weighted kornia/enhance/core.py ran Apache-2.0 (permissive) · 98daa2eaacc24301 · report fixture: signature src1:Tensor/2/float, alpha:float/0/float, src2:Tensor/2/float, beta:float/0/float, gamma:float/0/float · returned Tensor · level recorded 2026-09-24
inverse_depth_smoothness_loss kornia/losses/depth_smooth.py ran fingerprinted Apache-2.0 (permissive) · 451611489a552dad · report fixture: signature idepth:Tensor/4/float, image:Tensor/4/float · returned Tensor · level recorded 2026-09-24
js_div_loss_2d kornia/losses/divergence.py ran fingerprinted Apache-2.0 (permissive) · 9f91916eaedf7642 · report fixture: signature input:Tensor/4/float, target:Tensor/4/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-24
kl_div_loss_2d kornia/losses/divergence.py ran fingerprinted Apache-2.0 (permissive) · 53589e722f69b7dd · report fixture: signature input:Tensor/4/float, target:Tensor/4/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-24
psnr_loss kornia/losses/psnr.py ran fingerprinted Apache-2.0 (permissive) · 5770f772f4f42d7f · report fixture: signature input:Tensor/2/float, target:Tensor/2/float, max_val:float/0/float · returned Tensor · level recorded 2026-09-24
total_variation in 14 papers kornia/losses/total_variation.py ran fingerprinted Apache-2.0 (permissive) · ace65b30a9175199 · report fixture: signature img:Tensor/4/float · returned Tensor · level recorded 2026-09-24

Tasks

Camera CalibrationData AugmentationEdge DetectionImage AugmentationImage CroppingImage DenoisingImage ManipulationImage MatchingImage MorphingImage RegistrationImage RetrievalImage Stitchingimage smoothing

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections