Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs revamp with furo! (#1268)

Edgar Ribabcbe1328da7b
diff --git a/docs/requirements.txt b/docs/requirements.txt
index b8b889495..2b402c6c4 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -12,3 +12,4 @@ sphinx-autodoc-typehints>=1.0
sphinx-copybutton>=0.3
sphinx-autodoc-defaultargs
PyYAML>=5.1,<=5.4.1
+furo
diff --git a/docs/source/_static/css/copybtn.css b/docs/source/_static/css/copybtn.css
deleted file mode 100644
index fef76c3d5..000000000
--- a/docs/source/_static/css/copybtn.css
+++ /dev/null
@@ -1,23 +0,0 @@
-.highlight {
- position: relative;
-}
-
-.copybtn {
- position: absolute;
- top: 0;
- right: 0;
- width: 40px;
- padding: 0 10px;
- background-color: rgba(0, 0, 0, 0);
- border: 1px;
- border-style: solid;
- border-color: #DDD;
- border-top: 0;
- border-right: 0;
- border-radius: 0 0 0 5px;
-}
-
-.copybtn:hover {
- background-color: rgba(100, 30, 255, 0.1);
- opacity: 0.9;
-}
diff --git a/docs/source/_static/css/pytorch_theme.css b/docs/source/_static/css/pytorch_theme.css
deleted file mode 100644
index c49d94d16..000000000
--- a/docs/source/_static/css/pytorch_theme.css
+++ /dev/null
@@ -1,118 +0,0 @@
-body {
- font-family: "Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
-}
-
-/* Default header fonts are ugly */
-h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend, p.caption {
- font-family: "Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
-}
-
-/* Use white for docs background */
-.wy-side-nav-search {
- background-color: #fff;
-}
-
-.wy-nav-content-wrap, .wy-menu li.current > a {
- background-color: #fff;
-}
-
-@media screen and (min-width: 1400px) {
- .wy-nav-content-wrap {
- background-color: rgba(0, 0, 0, 0.0470588);
- }
-
- .wy-nav-content {
- background-color: #fff;
- }
-}
-
-/* Fixes for mobile */
-.wy-nav-top {
- background-color: #fff;
- background-image: url('../img/arraiy-logo-text-black-large-final.svg');
- background-repeat: no-repeat;
- background-position: center;
- padding: 0;
- margin: 0.4045em 0.809em;
- color: #333;
-}
-
-.wy-nav-top > a {
- display: none;
-}
-
-@media screen and (max-width: 768px) {
- .wy-side-nav-search>a img.logo {
- height: 60px;
- }
-}
-
-/* This is needed to ensure that logo above search scales properly */
-.wy-side-nav-search a {
- display: block;
-}
-
-/* This ensures that multiple constructors will remain in separate lines. */
-.rst-content dl:not(.docutils) dt {
- display: table;
-}
-
-/* Use our red for literals (it's very similar to the original color) */
-.rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal {
- color: #F05732;
-}
-
-.rst-content tt.xref, a .rst-content tt, .rst-content tt.xref,
-.rst-content code.xref, a .rst-content tt, a .rst-content code {
- color: #404040;
-}
-
-/* Change link colors (except for the menu) */
-
-a {
- color: #F05732;
-}
-
-a:hover {
- color: #F05732;
-}
-
-
-a:visited {
- color: #D44D2C;
-}
-
-.wy-menu a {
- color: #b3b3b3;
-}
-
-.wy-menu a:hover {
- color: #b3b3b3;
-}
-
-/* Default footer text is quite big */
-footer {
- font-size: 80%;
-}
-
-footer .rst-footer-buttons {
- font-size: 125%; /* revert footer settings - 1/80% = 125% */
-}
-
-footer p {
- font-size: 100%;
-}
-
-/* For hidden headers that appear in TOC tree */
-/* see http://stackoverflow.com/a/32363545/3343043 */
-.rst-content .hidden-section {
- display: none;
-}
-
-nav .hidden-section {
- display: inherit;
-}
-
-.wy-side-nav-search>div.version {
- color: #000;
-}
diff --git a/docs/source/_static/img/kornia_logo_mini.png b/docs/source/_static/img/kornia_logo_mini.png
deleted file mode 100644
index eadfc980e..000000000
Binary files a/docs/source/_static/img/kornia_logo_mini.png and /dev/null differ
diff --git a/docs/source/applications/image_augmentations.rst b/docs/source/applications/image_augmentations.rst
new file mode 100644
index 000000000..886f8177b
--- /dev/null
+++ b/docs/source/applications/image_augmentations.rst
@@ -0,0 +1,86 @@
+Image Augmentation
+==================
+
+Image Augmentation is a data augmentation method that generates more training data
+from the existing training samples. Image Augmentation is especially useful in domains
+where training data is limited or expensive to obtain like in biomedical applications.
+
+.. 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>`_
+
+Kornia Augmentations
+--------------------
+
+Kornia leverages differentiable and GPU image data augmentation through the module `kornia.augmentation <https://kornia.readthedocs.io/en/latest/augmentation.html>`_
+by implementing the functionality to be easily used with `torch.nn.Sequential <https://pytorch.org/docs/stable/generated/torch.nn.Sequential.html?highlight=sequential#torch.nn.Sequential>`_
+and other advanced containers such as
+:py:class:`~kornia.augmentation.container.AugmentationSequential`,
+:py:class:`~kornia.augmentation.container.ImageSequential`,
+:py:class:`~kornia.augmentation.container.PatchSequential` and
+:py:class:`~kornia.augmentation.container.VideoSequential`.
+
+Our augmentations package is highly inspired by Torchvision-like augmentation APIs while may not reproduce Torchvision,
+because Kornia is a library aligns to OpenCV functionalities, not PIL. Besides, pure floating computation is used in Kornia
+which guarantees a better precision without any float -> uint8 conversions.
+
+For detailed comparison, please checkout the `Colab: Kornia Playground <https://colab.research.google.com/drive/1T20UNAG4SdlE2n2wstuhiewve5Q81VpS#revisionId=0B4unZG1uMc-WR3NVeTBDcmRwN0NxcGNNVlUwUldPMVprb1dJPQ>`_.
+
+.. code-block:: python
+
+ import kornia.augmentation as K
+ import torch.nn as nn
+
+ transform = nn.Sequential(
+ K.RandomAffine(360),
+ K.ColorJitter(0.2, 0.3, 0.2, 0.3)
+ )
+
+Kornia augmentation implementations have two additional parameters compare to TorchVision,
+``return_transform`` and ``same_on_batch``. The former provides the ability of undoing one geometry
+transformation while the latter can be used to control the randomness for a batched transformation.
+To enable those behaviour, you may simply set the flags to True.
+
+.. code-block:: python
+
+ import kornia.augmentation as K
+
+ class MyAugmentationPipeline(nn.Module):
+ def __init__(self) -> None:
+ super(MyAugmentationPipeline, self).__init__()
+ self.aff = K.RandomAffine(
+ 360, return_transform=True, same_on_batch=True
+ )
+ self.jit = K.ColorJitter(0.2, 0.3, 0.2, 0.3, same_on_batch=True)
+
+ def forward(self, input):
+ input, transform = self.aff(input)
+ input, transform = self.jit((input, transform))
+ return input, transform
+
+Example for semantic segmentation using low-level randomness control:
+
+.. code-block:: python
+
+ import kornia.augmentation as K
+
+ class MyAugmentationPipeline(nn.Module):
+ def __init__(self) -> None:
+ super(MyAugmentationPipeline, self).__init__()
+ self.aff = K.RandomAffine(360)
+ self.jit = K.ColorJitter(0.2, 0.3, 0.2, 0.3)
+
+ def forward(self, input, mask):
+ assert input.shape == mask.shape,
+ f"Input shape should be consistent with mask shape, "
+ f"while got {input.shape}, {mask.shape}"
+
+ aff_params = self.aff.forward_parameters(input.shape)
+ input = self.aff(input, aff_params)
+ mask = self.aff(mask, aff_params)
+
+ jit_params = self.jit.forward_parameters(input.shape)
+ input = self.jit(input, jit_params)
+ mask = self.jit(mask, jit_params)
+ return input, mask
diff --git a/docs/source/applications/image_matching.rst b/docs/source/applications/image_matching.rst
new file mode 100644
index 000000000..5d9eb4a60
--- /dev/null
+++ b/docs/source/applications/image_matching.rst
@@ -0,0 +1,8 @@
+Image Matching
+==============
+
+High level API for Image Matching is **COMING SOON** !!
+
+.. hint::
+
+ In the meantime explore this: kornia.feature.DeFMO
diff --git a/docs/source/tasks.rst b/docs/source/applications/image_registration.rst
similarity index 71%
rename from docs/source/tasks.rst
rename to docs/source/applications/image_registration.rst
index 288144c8e..e285955ae 100644
--- a/docs/source/tasks.rst
+++ b/docs/source/applications/image_registration.rst
@@ -1,13 +1,5 @@
-Supported Applications
-======================
-
-Kornia provides from bottom to top granularity in order to implement Computer Vision related applications.
-
-In this section, we showcase our high-level API in terms of abstraction for common Computer Vision algorithms
-that can be used across different domains such as Robotics, Industrial applications or for the AR/VR industry.
-
Image Registration
-------------------
+==================
Image 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.
@@ -27,16 +19,6 @@ We provide the :py:class:`~kornia.geometry.transform.image_registrator.ImageRegi
Then, if you want to perform a more sophisticated process:
-.. literalinclude:: _static/image_registration.py
+.. literalinclude:: ../_static/image_registration.py
To reproduce the same results as in the showed video you can go through or full tutorial using Colab found `here <https://kornia-tutorials.readthedocs.io/en/latest/image_registration.html>`_ .
-
-Video Deblurring
-----------------
-
-**COMING SOON**
-
-Image Matching
---------------
-
-**COMING SOON**
diff --git a/docs/source/applications/intro.rst b/docs/source/applications/intro.rst
new file mode 100644
index 000000000..d66f52c69
--- /dev/null
+++ b/docs/source/applications/intro.rst
@@ -0,0 +1,11 @@
+Computer Vision Applications
+============================
+
+Kornia provides from bottom to top granularity in order to implement Computer Vision related applications.
+
+In this section, we showcase our high-level API in terms of abstraction for common Computer Vision algorithms
+that can be used across different domains such as Robotics, Industrial applications or for the AR/VR industry.
+
+.. 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>`_
diff --git a/docs/source/applications/video_deblur.rst b/docs/source/applications/video_deblur.rst
new file mode 100644
index 000000000..42e0d4a2f
--- /dev/null
+++ b/docs/source/applications/video_deblur.rst
@@ -0,0 +1,9 @@
+Video Deblurring
+================
+
+High level API for Video Deblurring is **COMING SOON** !!
+
+
+.. hint::
+
+ In the meantime explore this: :py:class:~kornia.feature.DeFMO`
diff --git a/docs/source/augmentation.rst b/docs/source/augmentation.rst
index 10a8c03fb..03b8e65a7 100644
--- a/docs/source/augmentation.rst
+++ b/docs/source/augmentation.rst
@@ -3,75 +3,7 @@ kornia.augmentation
.. currentmodule:: kornia.augmentation
-The classes in this section perform various data augmentation operations.
-
-Kornia provides Torchvision-like augmentation APIs while may not reproduce Torchvision, because Kornia is a library aligns to OpenCV functionalities, not PIL. Besides, pure floating computation is used in Kornia which guarantees a better precision without any float -> uint8 conversions. To be specified, the different functions are:
-
-- AdjustContrast
-- AdjustBrightness
-
-For detailed comparison, please checkout the `Colab: Kornia Playground <https://colab.research.google.com/drive/1T20UNAG4SdlE2n2wstuhiewve5Q81VpS#revisionId=0B4unZG1uMc-WR3NVeTBDcmRwN0NxcGNNVlUwUldPMVprb1dJPQ>`_.
-
-
-Kornia augmentation implementations can be easily used in a TorchVision style using `nn.Sequential`.
-
-.. code-block:: python
-
- import kornia.augmentation as K
- import torch.nn as nn
-
- transform = nn.Sequential(
- K.RandomAffine(360),
- K.ColorJitter(0.2, 0.3, 0.2, 0.3)
- )
-
-Kornia augmentation implementations have two additional parameters compare to TorchVision, `return_transform` and `same_on_batch`. The former provides the ability of undoing one geometry transformation while the latter can be used to control the randomness for a batched transformation. To enable those behaviour, you may simply set the flags to True.
-
-.. code-block:: python
-
- import kornia.augmentation as K
-
- class MyAugmentationPipeline(nn.Module):
- def __init__(self) -> None:
- super(MyAugmentationPipeline, self).__init__()
- self.aff = K.RandomAffine(
- 360, return_transform=True, same_on_batch=True
- )
- self.jit = K.ColorJitter(0.2, 0.3, 0.2, 0.3, same_on_batch=True)
-
- def forward(self, input):
- input, transform = self.aff(input)
- input, transform = self.jit((input, transform))
- return input, transform
-
-Example for semantic segmentation using low-level randomness control:
-
-.. code-block:: python
-
- import kornia.augmentation as K
-
- class MyAugmentationPipeline(nn.Module):
- def __init__(self) -> None:
- super(MyAugmentationPipeline, self).__init__()
- self.aff = K.RandomAffine(360)
- self.jit = K.ColorJitter(0.2, 0.3, 0.2, 0.3)
-
- def forward(self, input, mask):
- assert input.shape == mask.shape,
- f"Input shape should be consistent with mask shape, "
- f"while got {input.shape}, {mask.shape}"
-
- aff_params = self.aff.forward_parameters(input.shape)
- input = self.aff(input, aff_params)
- mask = self.aff(mask, aff_params)
-
- jit_params = self.jit.forward_parameters(input.shape)
- input = self.jit(input, jit_params)
- mask = self.jit(mask, jit_params)
- return input, mask
-
.. toctree::
- :maxdepth: 2
augmentation.base
augmentation.module
diff --git a/docs/source/community/bibliography.rst b/docs/source/community/bibliography.rst
new file mode 100644
index 000000000..0d21440d0
--- /dev/null
+++ b/docs/source/community/bibliography.rst
@@ -0,0 +1,4 @@
+Bibliography
+============
+
+.. bibliography::
diff --git a/docs/source/contribute.rst b/docs/source/community/contribute.rst
similarity index 72%
rename from docs/source/contribute.rst
rename to docs/source/community/contribute.rst
index 4a2efd2e6..9ad4f2ecd 100644
--- a/docs/source/contribute.rst
+++ b/docs/source/community/contribute.rst
@@ -3,20 +3,17 @@ Contribute to Kornia
Everyone is welcomed to get involved with the project. There are different ways in how you can put your two cents:
-1. Ask/Answer questions in the #kornia tag in `PyTorch Discuss <https://discuss.pytorch.org/c/vision/kornia>`_:
-
+1. Ask/Answer questions in the #kornia tag in `Kornia Discuss <https://github.com/kornia/kornia/discussions>`_:
- Please, don't use GitHub issues for Q&A.
2. Report bugs through GitHub issues:
-
- Do a quick search first to see whether others reported a similar issue.
- In case you find an unreported bug, please open a new ticket.
- Try to provide as much information as possible.
-3. Join our slack workspace `[HERE] <https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ>`_
-
-3. Fix a bug or develop a feature from the roadmap:
+3. Join our Slack `[HERE] <https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ>`_
+4. Fix a bug or develop a feature from the roadmap:
- We will always have an open ticket showing the current roadmap.
- Pick an unassigned feature (or potentially propose new one) or an open bug ticket.
- Follow the instructions from Developing Kornia in order to setup your development environment and start coding.
@@ -24,7 +21,7 @@ Everyone is welcomed to get involved with the project. There are different ways
- Run the test framework locally and make sure all works as expected before sending a pull request.
- Open a Pull Request, get the green light from the CI and get your code merged.
-4. Donate resources to the project. Reach us !
+5. Donate resources to the project through `GitHub Sponsor <https://github.com/sponsors/edgarriba>`_ or `Open Collective <https://opencollective.com/kornia>`_ !
For more information about our development process, see our `Developers corner <https://github.com/kornia/kornia/blob/master/CONTRIBUTING.rst#developing-kornia>`_.
diff --git a/docs/source/faqs.rst b/docs/source/community/faqs.rst
similarity index 83%
rename from docs/source/faqs.rst
rename to docs/source/community/faqs.rst
index c5069fa8b..c699e0ac1 100644
--- a/docs/source/faqs.rst
+++ b/docs/source/community/faqs.rst
@@ -3,16 +3,6 @@ Frequently Asked Questions
This document contains frequently asked questions.
-How to Install
---------------
-
-See `Installation <https://kornia.readthedocs.io/en/latest/installation.html/>`_
-
-How to Contribute
------------------
-
-See `How to Contribute <https://kornia.readthedocs.io/en/latest/contribute.html/>`_
-
Kornia relation to Pytorch Geometry/Geometric
---------------------------------------------
diff --git a/docs/source/governance.rst b/docs/source/community/governance.rst
similarity index 100%
rename from docs/source/governance.rst
rename to docs/source/community/governance.rst
diff --git a/docs/source/conf.py b/docs/source/conf.py
index a0d3f7853..1b5c55fb7 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -2,8 +2,6 @@ import importlib.util
import os
import sys
-import sphinx_rtd_theme
-
# readthedocs generated the whole documentation in an isolated environment
# by cloning the git repo. Thus, any on-the-fly operation will not effect
# on the resulting documentation. We therefore need to import and run the
@@ -36,8 +34,6 @@ extensions = [
'sphinx.ext.autosummary',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
- # 'sphinx.ext.todo',
- # 'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinx_autodoc_typehints',
@@ -101,35 +97,30 @@ language = None
exclude_patterns = ['_build', '.ipynb_checkpoints']
# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
-
-# If true, `todo` and `todoList` produce output, else they produce nothing.
-todo_include_todos = True
+pygments_style = 'friendly'
+pygments_dark_style = "monokai"
-# do not prepend module name to functions
-add_module_names = False
-
-# -- Options for HTML output ----------------------------------------------
-
-# The theme to use for HTML and HTML Help pages. See the documentation for
-# a list of builtin themes.
-#
-html_theme = 'sphinx_rtd_theme'
-html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+html_theme = 'furo'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
html_theme_options = {
- 'analytics_id': 'G-3LJY4GJLPR',
- 'collapse_navigation': False,
- 'display_version': True,
- 'logo_only': True,
+ "sidebar_hide_name": True,
+ "navigation_with_keys": True,
+ "announcement": """
+ <a style=\"text-decoration: none; color: white;\"
+ href=\"https://github.com/kornia/kornia\">
+ <img src=\"_static/img/GitHub-Mark-Light-32px.png\" width=20 height=20/>
+ Click here to give a Star to Kornia on GitHub
+ </a>
+ """,
}
-html_logo = '_static/img/kornia_logo.svg'
-html_favicon = '_static/img/kornia_logo_mini.png'
+# html_logo = '_static/img/kornia_logo.svg'
+html_logo = '_static/img/kornia_logo_only.png'
+html_favicon = '_static/img/kornia_logo_favicon.png'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
@@ -137,12 +128,6 @@ html_favicon = '_static/img/kornia_logo_mini.png'
html_static_path = ['_static']
html_extra_path = ['_extra']
-# html_style_path = 'css/pytorch_theme.css'
-html_context = {'css_files': [
- 'https://fonts.googleapis.com/css?family=Lato', '_static/css/pytorch_theme.css', '_static/css/copybtn.css']}
-
-# -- Options for HTMLHelp output ------------------------------------------
-
# Output file base name for HTML help builder.
htmlhelp_basename = 'Kornia'
diff --git a/docs/source/get-started/about.rst b/docs/source/get-started/about.rst
new file mode 100644
index 000000000..5b6c547d4
--- /dev/null
+++ b/docs/source/get-started/about.rst
@@ -0,0 +1,41 @@
+About
+=====
+
+We also run `LibreCV.org <www.librecv.org>`_. Join us !!
+
+.. image:: https://github.com/kornia/data/raw/main/LibreCV.png
+ :align: center
+
+Cite us
+-------
+
+Below you can find the different academic publication derived from Kornia. If you use Kornia in your
+work, do not hesitate to cite us :)
+
+.. code-block:: bash
+
+ @inproceedings{eriba2020kornia,
+ author = {E. Riba, D. Mishkin, J. Shi, D. Ponsa, F. Moreno-Noguer and G. Bradski},
+ title = {A survey on Kornia: an Open Source Differentiable Computer Vision Library for PyTorch},
+ year = {2020},
+ }
+
+.. code-block:: bash
+
+ @inproceedings{eriba2019kornia,
+ author = {E. Riba, D. Mishkin, D. Ponsa, E. Rublee and G. Bradski},
+ title = {Kornia: an Open Source Differentiable Computer Vision Library for PyTorch},
+ booktitle = {Winter Conference on Applications of Computer Vision},
+ year = {2020},
+ url = {https://arxiv.org/pdf/1910.02190.pdf}
+ }
+
+.. code-block:: bash
+
+ @misc{Arraiy2018,
+ author = {E. Riba, M. Fathollahi, W. Chaney, E. Rublee and G. Bradski},
+ title = {torchgeometry: when PyTorch meets geometry},
+ booktitle = {PyTorch Developer Conference},
+ year = {2018},
+ url = {https://drive.google.com/file/d/1xiao1Xj9WzjJ08YY_nYwsthE-wxfyfhG/view?usp=sharing}
+ }
diff --git a/docs/source/introduction.rst b/docs/source/get-started/highlights.rst
similarity index 65%
rename from docs/source/introduction.rst
rename to docs/source/get-started/highlights.rst
index d48081d6c..f31bc0b2a 100644
--- a/docs/source/introduction.rst
+++ b/docs/source/get-started/highlights.rst
@@ -1,31 +1,5 @@
-Introduction
-============
-
-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.
-
-Inspired by OpenCV, 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.
-
-**Why 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 deep learning
- like PyTorch can provide:
-
- 1. **Differentiability** for commodity avoiding to write derivative functions for complex loss functions.
-
- 2. **Transparency** to perform parallel or serial computing in either CPU or GPU devices using batches in a common API.
-
- 3. **Distributed** for computing large-scale applications.
-
- 4. **Production** ready using the *JIT* compiler.
-
Highlighted Features
----------------------
+====================
At a granular level, Kornia is a library that consists of the following components:
@@ -40,8 +14,6 @@ At a granular level, Kornia is a library that consists of the following componen
+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
| `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 transformations |
-+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
| `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 |
@@ -50,36 +22,7 @@ At a granular level, Kornia is a library that consists of the following componen
+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
| `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 |
+-----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
-
-Cite us
--------
-
-.. code-block:: bash
-
- @inproceedings{eriba2020kornia,
- author = {E. Riba, D. Mishkin, J. Shi, D. Ponsa, F. Moreno-Noguer and G. Bradski},
- title = {A survey on Kornia: an Open Source Differentiable Computer Vision Library for PyTorch},
- year = {2020},
- }
-
-.. code-block:: bash
-
- @inproceedings{eriba2019kornia,
- author = {E. Riba, D. Mishkin, D. Ponsa, E. Rublee and G. Bradski},
- title = {Kornia: an Open Source Differentiable Computer Vision Library for PyTorch},
- booktitle = {Winter Conference on Applications of Computer Vision},
- year = {2020},
- url = {https://arxiv.org/pdf/1910.02190.pdf}
- }
-
-.. code-block:: bash
-
- @misc{Arraiy2018,
- author = {E. Riba, M. Fathollahi, W. Chaney, E. Rublee and G. Bradski},
- title = {torchgeometry: when PyTorch meets geometry},
- booktitle = {PyTorch Developer Conference},
- year = {2018},
- url = {https://drive.google.com/file/d/1xiao1Xj9WzjJ08YY_nYwsthE-wxfyfhG/view?usp=sharing}
- }
diff --git a/docs/source/installation.rst b/docs/source/get-started/installation.rst
similarity index 100%
rename from docs/source/installation.rst
rename to docs/source/get-started/installation.rst
diff --git a/docs/source/get-started/introduction.rst b/docs/source/get-started/introduction.rst
new file mode 100644
index 000000000..5c4ea53fb
--- /dev/null
+++ b/docs/source/get-started/introduction.rst
@@ -0,0 +1,26 @@
+What is Kornia ?
+================
+
+Kornia is a differentiable library that allows classical computer vision to be integrated into deep learning models.
+
+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.
+
+.. image:: https://raw.githubusercontent.com/kornia/kornia/master/docs/source/_static/img/hakuna_matata.gif
+ :align: center
+
+The 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.
+
+Why 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:
+
+1. **Computer Vision:** Kornia fills the gap between Classical and Deep computer Vision.
+2. **Differentiable:** We leverage the Computer Vision 2.0 paradigm.
+3. **Open Source:** Our libraries and initiatives are always according to the community needs.
+4. **PyTorch:** At our core we use PyTorch and its Autograd engine for its efficiency.
diff --git a/docs/source/index.rst b/docs/source/index.rst
index 774102328..8d618c9c0 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -1,25 +1,58 @@
-:github_url: https://github.com/kornia/kornia
+Kornia
+======
-Kornia Documentation
-====================
+State-of-the-art and curated Computer Vision algorithms for AI.
+
+Kornia AI is on the mission is to leverage and democratize the next generation of Computer Vision tools and Deep Learning libraries
+within the context of an Open Source community.
+
+.. image:: https://github.com/kornia/data/raw/main/kornia_pytorch_banner.png
+ :align: center
+
+Kornia is powerful and easy to use:
+
+.. code:: python
+
+ >>> import kornia.geometry as K
+ >>> registrator = K.ImageRegistrator('similarity')
+ >>> model = registrator(img1, img2)
+
+
+Join the community
+------------------
+
+- Join our social network communities with 1.8k+ members:
+ - `Twitter <https://twitter.com/kornia_foss>`_: we share the recent research and news for out mainstream community.
+ - `Slack <https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ>`_: come to us and chat with our engineers and mentors to get support and resolve your questions.
+ - `LibreCV <https://librecv.org>`_: its our Open Source and Machine Learning community forum. Come and have fun !
+- Subscribe to our `YouTube channel <https://www.youtube.com/channel/UCI1SE1Ij2Fast5BSKxoa7Ag>`_ to get the latest video demos.
+
+----
.. toctree::
- :maxdepth: 2
:caption: GET STARTED
+ :hidden:
- introduction
- installation
+ get-started/introduction
+ get-started/highlights
+ get-started/installation
+ get-started/about
Tutorials <https://kornia-tutorials.readthedocs.io/en/latest/>
.. toctree::
- :maxdepth: 2
- :caption: KORNIA UNIVERSE
+ :caption: KORNIA APPLICATIONS
+ :hidden:
- tasks
+ applications/intro
+ applications/image_registration
+ applications/image_augmentations
+ applications/image_matching
+ applications/video_deblur
.. toctree::
- :maxdepth: 2
:caption: API REFERENCE
+ :maxdepth: 2
+ :hidden:
augmentation
color
@@ -33,21 +66,22 @@ Kornia Documentation
utils
.. toctree::
- :maxdepth: 2
- :caption: COMMUNITY
+ :caption: SUPPORT
+ :hidden:
- contribute
- faqs
- governance
+ Issue tracker <https://github.com/kornia/kornia/issues>
+ Slack community <https://join.slack.com/t/kornia/shared_invite/zt-csobk21g-CnydWe5fmvkcktIeRFGCEQ>
+ LibreCV community <https://librecv.org>
+ Twitter @kornia_foss <https://twitter.com/kornia_foss>
+ Kornia Youtube <https://www.youtube.com/channel/UCI1SE1Ij2Fast5BSKxoa7Ag>
+ Kornia LinkedIn <https://www.linkedin.com/company/kornia/>
+ Kornia AI <https://kornia.org>
-Indices and tables
-==================
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`
-
-References
-==========
+.. toctree::
+ :caption: COMMUNITY
+ :hidden:
-.. bibliography::
+ community/contribute
+ community/faqs
+ community/governance
+ community/bibliography
diff --git a/kornia/geometry/transform/imgwarp.py b/kornia/geometry/transform/imgwarp.py
index 4b320f130..f5c16ff0e 100644
--- a/kornia/geometry/transform/imgwarp.py
+++ b/kornia/geometry/transform/imgwarp.py
@@ -41,7 +41,7 @@ def warp_perspective(
) -> torch.Tensor:
r"""Applies a perspective transformation to an image.
- .. image:: https://kornia-tutorials.readthedocs.io/en/latest/_images/warp_perspective_10_2.png
+ .. image:: https://kornia-tutorials.readthedocs.io/en/latest/_images/warp_perspective_10_1.png
The function warp_perspective transforms the source image using
the specified matrix: