🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
release 0.7.3 (#2938)
Edgar Ribaa56838361164
diff --git a/README.md b/README.mdindex fbda2261c..fb790b402 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@<div align="center"><p align="center">- <img width="75%" src="https://github.com/kornia/data/raw/main/kornia_banner_pixie.png" />+ <img width="55%" src="https://github.com/kornia/data/raw/main/kornia_banner_pixie.png" /></p>---@@ -8,90 +8,57 @@English | [简体中文](README_zh-CN.md)<!-- prettier-ignore -->-<a href="https://kornia.org">Website</a> •<a href="https://kornia.readthedocs.io">Docs</a> •-<a href="https://colab.research.google.com/github/kornia/tutorials/blob/master/source/hello_world_tutorial.ipynb">Try it Now</a> •+<a href="https://colab.sandbox.google.com/github/kornia/tutorials/blob/master/nbs/hello_world_tutorial.ipynb">Try it Now</a> •<a href="https://kornia.github.io/tutorials/">Tutorials</a> •<a href="https://github.com/kornia/kornia-examples">Examples</a> •<a href="https://kornia.github.io//kornia-blog">Blog</a> •<a href="https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ">Community</a>-[](https://pypi.org/project/kornia)-[](https://pytorch.org/get-started/locally/)-[](LICENCE)-[](https://pypi.org/project/kornia)[](https://pepy.tech/project/kornia)[](https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-2AQRi~X9Uu6PLMuUZdvfjA)[](https://twitter.com/kornia_foss)--[](https://github.com/kornia/kornia/actions/workflows/scheduled_test_cpu.yml)-[](https://codecov.io/gh/kornia/kornia)-[](https://kornia.readthedocs.io/en/latest/?badge=latest)-[](https://results.pre-commit.ci/latest/github/kornia/kornia/main)--<a href="https://www.producthunt.com/posts/kornia?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-kornia" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=306439&theme=light" alt="Kornia - Computer vision library for deep learning | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>+[](LICENCE)</p></div>-*Kornia* is a differentiable computer vision library for [PyTorch](https://pytorch.org).+**Kornia** is a differentiable computer vision library for [PyTorch](https://pytorch.org).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.-<div align="center">- <img src="https://github.com/kornia/kornia/raw/main/docs/source/_static/img/hakuna_matata.gif" width="75%" height="75%">-</div>--<!--<div align="center">- <img src="http://drive.google.com/uc?export=view&id=1KNwaanUdY1MynF0EYfyXjDM3ti09tzaq">-</div>-->+Inspired by existing packages, this library is composed by a subset of packages containing operators that can be inserted within neural networks to train models to perform image transformations, epipolar geometry, depth estimation, and low-level image processing such as filtering and edge detection that operate directly on tensors.-## Overview+## Sponsorship-Inspired by existing packages, this library is composed by a subset of packages containing operators that can be inserted within neural networks to train models to perform image transformations, epipolar geometry, depth estimation, and low-level image processing such as filtering and edge detection that operate directly on tensors.+Kornia is an open-source project that is developed and maintained by volunteers. Whether you're using it for research or commercial purposes, consider sponsoring or collaborating with us. Your support will help ensure Kornia's growth and ongoing innovation. Reach out to us today and be a part of shaping the future of this exciting initiative!-At a granular level, Kornia is a library that consists of the following components:--| **Component** | **Description** |-|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|-| [kornia](https://kornia.readthedocs.io/en/latest/index.html) | a Differentiable Computer Vision library, with strong GPU support |-| [kornia.augmentation](https://kornia.readthedocs.io/en/latest/augmentation.html) | a module to perform data augmentation in the GPU |-| [kornia.color](https://kornia.readthedocs.io/en/latest/color.html) | a set of routines to perform color space conversions |-| [kornia.contrib](https://kornia.readthedocs.io/en/latest/contrib.html) | a compilation of user contrib and experimental operators |-| [kornia.enhance](https://kornia.readthedocs.io/en/latest/enhance.html) | a module to perform normalization and intensity transformation |-| [kornia.feature](https://kornia.readthedocs.io/en/latest/feature.html) | a module to perform feature detection |-| [kornia.filters](https://kornia.readthedocs.io/en/latest/filters.html) | a module to perform image filtering and edge detection |-| [kornia.geometry](https://kornia.readthedocs.io/en/latest/geometry.html) | a geometric computer vision library to perform image transformations, 3D linear algebra and conversions using different camera models |-| [kornia.losses](https://kornia.readthedocs.io/en/latest/losses.html) | a stack of loss functions to solve different vision tasks |-| [kornia.morphology](https://kornia.readthedocs.io/en/latest/morphology.html) | a module to perform morphological operations |-| [kornia.utils](https://kornia.readthedocs.io/en/latest/utils.html) | image to tensor utilities and metrics for vision problems |+<a href="https://opencollective.com/kornia/donate" target="_blank">+ <img src="https://opencollective.com/webpack/donate/[email protected]?color=blue" width=300 />+</a>## Installation-### From pip:+[](https://pypi.org/project/kornia)+[](https://pytorch.org/get-started/locally/)++### From pip```bashpip install kornia- pip install kornia[x] # to get the training API !```<details><summary>Other installation options</summary>- #### From source:-- ```bash- python setup.py install- ```-- #### From source with symbolic links:+#### From source with editable mode```bashpip install -e .```- #### From source using pip:+#### From Github url (latest version)```bashpip install git+https://github.com/kornia/kornia@@ -99,21 +66,6 @@ At a granular level, Kornia is a library that consists of the following componen</details>--## Examples--Run our Jupyter notebooks [tutorials](https://kornia.github.io/tutorials) to learn to use the library.--<div align="center">- <a href="https://colab.research.google.com/github/kornia/tutorials/blob/master/source/hello_world_tutorial.ipynb" target="_blank">- <img src="https://raw.githubusercontent.com/kornia/data/main/hello_world_arturito.png" width="75%" height="75%">- </a>-</div>--:triangular_flag_on_post: **Updates**-- :white_check_mark: [Image Matching](https://kornia.readthedocs.io/en/latest/applications/image_matching.html) Integrated to [Huggingface Spaces](https://huggingface.co/spaces). See [Gradio Web Demo](https://huggingface.co/spaces/akhaliq/Kornia-LoFTR).-- :white_check_mark: [Face Detection](https://kornia.readthedocs.io/en/latest/applications/face_detection.html) Integrated to [Huggingface Spaces](https://huggingface.co/spaces). See [Gradio Web Demo](https://huggingface.co/spaces/frapochetti/blurry-faces).-## CiteIf you are using kornia in your research-related documents, it is recommended that you cite the paper. See more in [CITATION](./CITATION.md).@@ -129,17 +81,21 @@ If you are using kornia in your research-related documents, it is recommended th```## Contributing-We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us. Please, consider reading the [CONTRIBUTING](./CONTRIBUTING.md) notes. The participation in this open source project is subject to [Code of Conduct](./CODE_OF_CONDUCT.md).+We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us. Please, consider reading the [CONTRIBUTING](./CONTRIBUTING.md) notes. The participation in this open source project is subject to [Code of Conduct](./CODE_OF_CONDUCT.md).## Community+- **Forums:** discuss implementations, research, etc. [GitHub Forums](https://github.com/kornia/kornia/discussions)- **GitHub Issues:** bug reports, feature requests, install issues, RFCs, thoughts, etc. [OPEN](https://github.com/kornia/kornia/issues/new/choose)- **Slack:** Join our workspace to keep in touch with our core contributors and be part of our community. [JOIN HERE](https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-2AQRi~X9Uu6PLMuUZdvfjA)-- For general information, please visit our website at www.kornia.org<a href="https://github.com/Kornia/kornia/graphs/contributors">- <img src="https://contrib.rocks/image?repo=Kornia/kornia" width="75%" height="75%" />+ <img src="https://contrib.rocks/image?repo=Kornia/kornia" width="60%" /></a>Made with [contrib.rocks](https://contrib.rocks).++## License++Kornia is released under the Apache 2.0 license. See the [LICENSE](./LICENSE) file for more information.diff --git a/kornia/__init__.py b/kornia/__init__.pyindex 94a6769e9..fa992da9e 100644--- a/kornia/__init__.py+++ b/kornia/__init__.py@@ -5,11 +5,32 @@ from . import geometryfrom . import grad_estimator# import the other modules for convenience-from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x+from . import (+ augmentation,+ color,+ contrib,+ core,+ enhance,+ feature,+ io,+ losses,+ metrics,+ morphology,+ tracking,+ utils,+ x,+)# NOTE: we are going to expose to top level very few thingsfrom kornia.constants import pi-from kornia.utils import eye_like, vec_like, create_meshgrid, image_to_tensor, tensor_to_image, xla_is_available+from kornia.utils import (+ eye_like,+ vec_like,+ create_meshgrid,+ image_to_tensor,+ tensor_to_image,+ xla_is_available,+)# Version variable-__version__ = "0.7.3-dev"+__version__ = "0.7.3"