git: 42181e5a0d0e - main - graphics/py-kornia: New port: Differentiable computer vision library for PyTorch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Mar 2026 03:00:42 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=42181e5a0d0e6fe540f17c1d2e537328eb4278a6
commit 42181e5a0d0e6fe540f17c1d2e537328eb4278a6
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-03-18 02:02:25 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-03-18 03:00:37 +0000
graphics/py-kornia: New port: Differentiable computer vision library for PyTorch
---
graphics/Makefile | 1 +
graphics/py-kornia/Makefile | 26 ++++++++++++++++++++++++++
graphics/py-kornia/distinfo | 3 +++
graphics/py-kornia/pkg-descr | 9 +++++++++
4 files changed, 39 insertions(+)
diff --git a/graphics/Makefile b/graphics/Makefile
index a768d092949a..613827c85469 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -960,6 +960,7 @@
SUBDIR += py-imagesize
SUBDIR += py-img2pdf
SUBDIR += py-imutils
+ SUBDIR += py-kornia
SUBDIR += py-kornia-rs
SUBDIR += py-leather
SUBDIR += py-lerc
diff --git a/graphics/py-kornia/Makefile b/graphics/py-kornia/Makefile
new file mode 100644
index 000000000000..d12730577775
--- /dev/null
+++ b/graphics/py-kornia/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= kornia
+DISTVERSION= 0.7.4
+CATEGORIES= graphics python # machine-learning
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Differentiable computer vision library for PyTorch
+WWW= https://kornia.readthedocs.io/en/stable/ \
+ https://github.com/kornia/kornia
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}kornia-rs>0:graphics/py-kornia-rs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytorch>=1.13.1:misc/py-pytorch@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-kornia/distinfo b/graphics/py-kornia/distinfo
new file mode 100644
index 000000000000..657c1fbd9b72
--- /dev/null
+++ b/graphics/py-kornia/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1773765834
+SHA256 (kornia-0.7.4.tar.gz) = 1f8dd6268ca5a2f2ec04b13c48da4dfb90ba2cfae7e31e0cc80d37f6520fa3f1
+SIZE (kornia-0.7.4.tar.gz) = 640243
diff --git a/graphics/py-kornia/pkg-descr b/graphics/py-kornia/pkg-descr
new file mode 100644
index 000000000000..7cb75a72112a
--- /dev/null
+++ b/graphics/py-kornia/pkg-descr
@@ -0,0 +1,9 @@
+Kornia is a differentiable computer vision library for PyTorch.
+
+It consists of a set of routines and differentiable modules to solve generic
+computer vision problems. At its core, 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.
+
+Features include image transformations, filtering, color space conversions,
+camera models, 3D augmentations, and more.