π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Add models section in docs and some improvements (#1279)
Edgar Riba16629f351354
diff --git a/docs/requirements.txt b/docs/requirements.txtindex 2b402c6c4..bd0b2f3a5 100644--- a/docs/requirements.txt+++ b/docs/requirements.txt@@ -13,3 +13,4 @@ sphinx-copybutton>=0.3sphinx-autodoc-defaultargsPyYAML>=5.1,<=5.4.1furo+sphinx-designdiff --git a/docs/source/_static/img/kornia_logo_only_dark.svg b/docs/source/_static/img/kornia_logo_only_dark.svgnew file mode 100644index 000000000..1a7c8f8c8--- /dev/null+++ b/docs/source/_static/img/kornia_logo_only_dark.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 315.51 359.54"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#3980f5;}.cls-3{fill:#30c730;}.cls-4{fill:#f01616;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path id="Path_228" data-name="Path 228" class="cls-1" d="M315.51,89.88,157.76,0,0,89.88V269.66l157.76,89.88,157.75-89.88Z"/><path id="Path_229" data-name="Path 229" class="cls-2" d="M171.74,301.68V184.53L273.48,126V243.09Z"/><path id="Path_230" data-name="Path 230" class="cls-3" d="M42,126V243.09l101.74,58.59V184.53Z"/><path id="Path_231" data-name="Path 231" class="cls-4" d="M53.53,104.23l103.12,58.13,103.11-58.13L156.65,46.07Z"/></g></g></svg>diff --git a/docs/source/_static/img/kornia_logo_only_light.svg b/docs/source/_static/img/kornia_logo_only_light.svgnew file mode 100644index 000000000..f80aa37ba--- /dev/null+++ b/docs/source/_static/img/kornia_logo_only_light.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 315.51 359.54"><defs><style>.cls-1{fill:#3980f5;}.cls-2{fill:#30c730;}.cls-3{fill:#f01616;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path id="Path_228" data-name="Path 228" d="M315.51,89.88,157.76,0,0,89.88V269.66l157.76,89.88,157.75-89.88Z"/><path id="Path_229" data-name="Path 229" class="cls-1" d="M171.74,301.68V184.53L273.48,126V243.09Z"/><path id="Path_230" data-name="Path 230" class="cls-2" d="M42,126V243.09l101.74,58.59V184.53Z"/><path id="Path_231" data-name="Path 231" class="cls-3" d="M53.53,104.23l103.12,58.13,103.11-58.13L156.65,46.07Z"/></g></g></svg>diff --git a/docs/source/applications/image_augmentations.rst b/docs/source/applications/image_augmentations.rstindex 886f8177b..0000bbd43 100644--- a/docs/source/applications/image_augmentations.rst+++ b/docs/source/applications/image_augmentations.rst@@ -8,7 +8,7 @@ where training data is limited or expensive to obtain like in biomedical applica.. image:: https://github.com/kornia/data/raw/main/girona_aug.png:align: center-Learn more @ PWC : `https://paperswithcode.com/task/image-registration <https://paperswithcode.com/task/image-augmentation>`_+Learn more: `https://paperswithcode.com/task/image-registration <https://paperswithcode.com/task/image-augmentation>`_Kornia Augmentations--------------------diff --git a/docs/source/applications/image_registration.rst b/docs/source/applications/image_registration.rstindex e285955ae..aaaab8e2d 100644--- a/docs/source/applications/image_registration.rst+++ b/docs/source/applications/image_registration.rst@@ -3,7 +3,7 @@ Image RegistrationImage registration is the process of transforming different sets of data into one coordinate system. Data may be multiple photographs, data from different sensors, times, depths, or viewpoints. It is used in computer vision, medical imaging, and compiling and analyzing images and data from satellites. Registration is necessary in order to be able to compare or integrate the data obtained from these different measurements.-Learn more @ PWC : `https://paperswithcode.com/task/image-registration <https://paperswithcode.com/task/image-registration>`_+Learn more: `https://paperswithcode.com/task/image-registration <https://paperswithcode.com/task/image-registration>`_.. youtube:: Re1q6vRfZacdiff --git a/docs/source/applications/intro.rst b/docs/source/applications/intro.rstindex d66f52c69..9a84ad2a4 100644--- a/docs/source/applications/intro.rst+++ b/docs/source/applications/intro.rst@@ -1,11 +1,23 @@-Computer Vision Applications-============================+Computer Vision Algorithms+==========================-Kornia provides from bottom to top granularity in order to implement Computer Vision related applications.+Kornia provides a bottom to top granularity for **CURATED** Computer Vision algorithms.In this section, we showcase our high-level API in terms of abstraction for common Computer Vision algorithmsthat can be used across different domains such as Robotics, Industrial applications or for the AR/VR industry.+.. tip::++ Expect to see in the future a selection of the top performing algorithms in the following sub-areas:++ - Super Resolution+ - Deep Edge detection+ - Stereo and Optical flow and camera calibration+ - Neural Rendering+ - Semantic and Panoptic segmentation+ - Object Detection and Tracking+ - Image classification+.. admonition:: We are looking for contributors !!- If you have any suggestion or proposal - join our `Slack <https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ>`_+ If you have any suggestion, proposal or just want to give us a hand - join our `Slack <https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ>`_diff --git a/docs/source/conf.py b/docs/source/conf.pyindex 5523d8686..f6b88fb48 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -43,6 +43,7 @@ extensions = ['sphinx.ext.githubpages','sphinxcontrib.bibtex','sphinxcontrib.youtube',+ 'sphinx_design',]# substitutes the default values@@ -110,8 +111,8 @@ html_theme = 'furo'html_baseurl = 'https://kornia.readthedocs.io'html_theme_options = {- 'light_logo': 'img/kornia_logo_only.png',- 'dark_logo': 'img/kornia_logo_only.png',+ 'light_logo': 'img/kornia_logo_only_light.svg',+ 'dark_logo': 'img/kornia_logo_only_dark.svg',"sidebar_hide_name": True,"navigation_with_keys": True,'display_version': False,diff --git a/docs/source/get-started/highlights.rst b/docs/source/get-started/highlights.rstindex f31bc0b2a..3fda15782 100644--- a/docs/source/get-started/highlights.rst+++ b/docs/source/get-started/highlights.rst@@ -1,6 +1,9 @@Highlighted Features====================+.. image:: https://github.com/kornia/data/raw/main/kornia_paper_mosaic.png+ :align: center+At a granular level, Kornia is a library that consists of the following components:+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+diff --git a/docs/source/get-started/introduction.rst b/docs/source/get-started/introduction.rstindex 5c4ea53fb..a4688ce91 100644--- a/docs/source/get-started/introduction.rst+++ b/docs/source/get-started/introduction.rst@@ -17,8 +17,8 @@ and low level image processing such as filtering and edge detection that operateWhy Kornia ?-------------With *Kornia* we fill the gap within the PyTorch ecosystem introducing a computer vision library that implements-standard vision algorithms taking advantage of the different properties that modern frameworks for AI:+With *Kornia* we fill the gap between classical and deep computer vision that implements+standard and advanced vision algorithms for AI:1. **Computer Vision:** Kornia fills the gap between Classical and Deep computer Vision.2. **Differentiable:** We leverage the Computer Vision 2.0 paradigm.diff --git a/docs/source/index.rst b/docs/source/index.rstindex 8d618c9c0..db002bfb3 100644--- a/docs/source/index.rst+++ b/docs/source/index.rst@@ -49,6 +49,15 @@ Join the communityapplications/image_matchingapplications/video_deblur+.. toctree::+ :caption: KORNIA MODELS+ :hidden:++ models/loftr+ models/defmo+ models/hardnet+ models/affnet+.. toctree:::caption: API REFERENCE:maxdepth: 2diff --git a/docs/source/models/affnet.rst b/docs/source/models/affnet.rstnew file mode 100644index 000000000..3659ed35b--- /dev/null+++ b/docs/source/models/affnet.rst@@ -0,0 +1,23 @@+Affnet+......++.. card::+ :link: https://paperswithcode.com/paper/repeatability-is-not-enough-learning-affine++ **Affnet: Repeatability Is Not Enough: Learning Affine Regions via Discriminability**+ ^^^+ **Abstract:** A method for learning local affine-covariant regions is presented. We show that maximizing geometric repeatability does not lead to local regions, a.k.a features,that are reliably matched and this necessitates descriptor-based learning. We explore factors that influence such learning and registration: the loss function, descriptor type, geometric parametrization and the trade-off between matchability and geometric accuracy and propose a novel hard negative-constant loss function for learning of affine regions. The affine shape estimator -- AffNet -- trained with the hard negative-constant loss outperforms the state-of-the-art in bag-of-words image retrieval and wide baseline stereo. The proposed training process does not require precisely geometrically aligned patches.++ **Tasks:** Image Retrieval++ **Datasets:** Oxford5k, HPatches++ **Conference:** ECCV 2018++ **Licence:** MIT++ ++++ **Authors:** Dmytro Mishkin, Filip Radenovic, Jiri Matas++.. image:: https://raw.githubusercontent.com/ducha-aiki/affnet/master/imgs/graf16HesAffNet.jpg+ :align: centerdiff --git a/docs/source/models/defmo.rst b/docs/source/models/defmo.rstnew file mode 100644index 000000000..5b86a1883--- /dev/null+++ b/docs/source/models/defmo.rst@@ -0,0 +1,22 @@+DeFMO+.....++.. card::+ :link: https://paperswithcode.com/paper/defmo-deblurring-and-shape-recovery-of-fast++ **DeFMO: Deblurring and Shape Recovery of Fast Moving Objects**+ ^^^+ **Abstract:** Objects moving at high speed appear significantly blurred when captured with cameras. The blurry appearance is especially ambiguous when the object has complex shape or texture. In such cases, classical methods, or even humans, are unable to recover the object's appearance and motion. We propose a method that, given a single image with its estimated background, outputs the object's appearance and position in a series of sub-frames as if captured by a high-speed camera (i.e. temporal super-resolution). The proposed generative model embeds an image of the blurred object into a latent space representation, disentangles the background, and renders the sharp appearance. Inspired by the image formation model, we design novel self-supervised loss function terms that boost performance and show good generalization capabilities. The proposed DeFMO method is trained on a complex synthetic dataset, yet it performs well on real-world data from several datasets. DeFMO outperforms the state of the art and generates high-quality temporal super-resolution frames.++ **Tasks:** Deblurring, Object Tracking, Super-Resolution, Video Super-Resolution.++ **Datasets:** Falling Objects.++ **Conference:** CVPR 2021++ **Licence:** Apache-2.0++ ++++ **Authors:** Denys Rozumnyi, Martin R. Oswald, Vittorio Ferrari, Jiri Matas, Marc Pollefeys++.. youtube:: pmAynZvaaQ4diff --git a/docs/source/models/hardnet.rst b/docs/source/models/hardnet.rstnew file mode 100644index 000000000..98afdaa36--- /dev/null+++ b/docs/source/models/hardnet.rst@@ -0,0 +1,23 @@+Hardnet+.......++.. card::+ :link: https://paperswithcode.com/paper/working-hard-to-know-your-neighbors-margins++ **Hardnet: Working hard to know your neighbor's margins: Local descriptor learning loss**+ ^^^+ **Abstract:** We introduce a novel loss for learning local feature descriptors which is inspired by the Lowe's matching criterion for SIFT. We show that the proposed loss that maximizes the distance between the closest positive and closest negative patch in the batch is better than complex regularization methods; it works well for both shallow and deep convolution network architectures. Applying the novel loss to the L2Net CNN architecture results in a compact descriptor -- it has the same dimensionality as SIFT (128) that shows state-of-art performance in wide baseline stereo, patch verification and instance retrieval benchmarks. It is fast, computing a descriptor takes about 1 millisecond on a low-end GPU++ **Tasks:** Image Retrieval, Patch Matching++ **Datasets:** Oxford5k, HPatches, Oxford-Affine++ **Conference:** NeurIPS 2017++ **Licence:** MIT++ ++++ **Authors:** Anastasiya Mishchuk, Dmytro Mishkin, Filip Radenovic, Jiri Matas++.. image:: https://raw.githubusercontent.com/DagnyT/hardnet/master/img/hardnet_hpatches.png+ :align: centerdiff --git a/docs/source/models/loftr.rst b/docs/source/models/loftr.rstnew file mode 100644index 000000000..bfa3c4f46--- /dev/null+++ b/docs/source/models/loftr.rst@@ -0,0 +1,23 @@+LoFTR+.....++.. card::+ :link: https://paperswithcode.com/paper/loftr-detector-free-local-feature-matching++ **LoFTR: Detector-Free Local Feature Matching with Transformers**+ ^^^+ **Abstract:** We present a novel method for local image feature matching. Instead of performing image feature detection, description, and matching sequentially, we propose to first establish pixel-wise dense matches at a coarse level and later refine the good matches at a fine level. In contrast to dense methods that use a cost volume to search correspondences, we use self and cross attention layers in Transformer to obtain feature descriptors that are conditioned on both images. The global receptive field provided by Transformer enables our method to produce dense matches in low-texture areas, where feature detectors usually struggle to produce repeatable interest points. The experiments on indoor and outdoor datasets show that LoFTR outperforms state-of-the-art methods by a large margin. LoFTR also ranks first on two public benchmarks of visual localization among the published methods.++ **Tasks:** Local Feature Matching, Visual Localisation++ **Datasets:** ScanNet, HPatches, MegaDepth, InLoc++ **Conference:** CVPR 2021++ **Licence:** Apache-2.0++ ++++ **Authors:** Jiaming Sun*, Zehong Shen*, Yu'ang Wang*, Hujun Bao, Xiaowei Zhou++.. image:: https://raw.githubusercontent.com/zju3dv/LoFTR/master/assets/loftr-github-demo.gif+ :align: center