🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
update docs
edgarribab723e30fc46f
diff --git a/docs/source/_static/img/kornia_logo_mini.png b/docs/source/_static/img/kornia_logo_mini.pngnew file mode 100644index 000000000..eadfc980eBinary files /dev/null and b/docs/source/_static/img/kornia_logo_mini.png differdiff --git a/docs/source/about.rst b/docs/source/about.rstnew file mode 100644index 000000000..fb00f1139--- /dev/null+++ b/docs/source/about.rst@@ -0,0 +1,42 @@+About+=====++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.+Overview++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 ?+------------++to be filled++Hightlighted Features+---------------------++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 like OpenCV, with strong GPU support |++----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------++| `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.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.utils <https://kornia.readthedocs.io/en/latest/utils.html>`_ | image to tensor utilities and metrics for vision problems |++----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+diff --git a/docs/source/color.rst b/docs/source/color.rstindex 437fdd8be..32b89e157 100644--- a/docs/source/color.rst+++ b/docs/source/color.rst@@ -1,5 +1,5 @@kornia.color--------------------+------------.. currentmodule:: kornia.colordiff --git a/docs/source/conf.py b/docs/source/conf.pyindex 13d6ede12..2ccf3061e 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -53,7 +53,8 @@ master_doc = 'index'# General information about the project.project = u'Kornia'-copyright = u'2018, Arraiy, Inc.'+author = u'%s developers' % project+copyright = u'2019, %s' % authorauthor = u'Arraiy, Inc.'# The version info for the project you're documenting, acts as replacement for@@ -111,6 +112,7 @@ html_theme_options = {}html_logo = '_static/img/kornia_logo.svg'+html_favicon = '_static/img/kornia_logo_mini.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,diff --git a/docs/source/contribute.rst b/docs/source/contribute.rstnew file mode 100644index 000000000..d4af64c6b--- /dev/null+++ b/docs/source/contribute.rst@@ -0,0 +1,4 @@+Contribute to Kornia+====================++refer to contribution file\ No newline at end of filediff --git a/docs/source/faq.rst b/docs/source/faq.rstnew file mode 100644index 000000000..e7f649f3a--- /dev/null+++ b/docs/source/faq.rst@@ -0,0 +1,14 @@+Frequently Asked Questions+==========================++This document contains frequently asked questions.++How to Install+--------------++See [Installation](http://docs.kornia.org/install/)++Kornia relation to Other Computer Vision Projects+-------------------------------------------------++to be filled.\ No newline at end of filediff --git a/docs/source/index.rst b/docs/source/index.rstindex b2becd227..88a608552 100644--- a/docs/source/index.rst+++ b/docs/source/index.rst@@ -1,14 +1,22 @@:github_url: https://github.com/arraiyopensource/kornia-kornia-======+Kornia Documentation+====================-Kornia is a differentiable computer vision library for PyTorch.+.. toctree::+ :maxdepth: 2+ :caption: Get Started++ about+ installation+ contribute+ faq-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.-Overview+.. toctree::+ :maxdepth: 2+ :caption: Tutorials-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.+ tutorials.. toctree:::maxdepth: 2@@ -22,14 +30,6 @@ Inspired by OpenCV, this library is composed by a subset of packages containinglossesutils-.. toctree::- :maxdepth: 2- :caption: Tutorials-- warp_affine- warp_perspective- gaussian_blur-Indices and tables==================diff --git a/docs/source/installation.rst b/docs/source/installation.rstnew file mode 100644index 000000000..81b34654b--- /dev/null+++ b/docs/source/installation.rst@@ -0,0 +1,4 @@+Installation+============++To be filled\ No newline at end of filediff --git a/docs/source/tutorials.rst b/docs/source/tutorials.rstnew file mode 100644index 000000000..47035a071--- /dev/null+++ b/docs/source/tutorials.rst@@ -0,0 +1,28 @@+Basic Tutorials+===============++.. toctree::+ :maxdepth: 2++ notebooks/warp_affine+ notebooks/warp_perspective+ notebooks/gaussian_blur++Intermediate Tutorials+======================++.. toctree::+ :maxdepth: 2++ notebooks/data_augmentation+++Advanced Tutorials+==================++.. toctree::+ :maxdepth: 2++ notebooks/homography+ notebooks/depth+ notebooks/features\ No newline at end of filediff --git a/kornia/color/adjust.py b/kornia/color/adjust.pyindex 4997f32e4..009977d23 100644--- a/kornia/color/adjust.py+++ b/kornia/color/adjust.py@@ -165,7 +165,7 @@ class AdjustSaturation(nn.Module):The input image is expected to be an RGB image in the range of [0, 1].Args:- input (torch.Tensor): Image/Tensor to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Tensor to be adjusted in the shape of (\*, N).saturation_factor (float): How much to adjust the saturation. 0 will give a blackand white image, 1 will give the original image while 2 will enhance the saturationby a factor of 2.@@ -188,7 +188,7 @@ class AdjustHue(nn.Module):The input image is expected to be an RGB image in the range of [0, 1].Args:- input (torch.Tensor): Image/Tensor to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Tensor to be adjusted in the shape of (\*, N).hue_factor (float): How much to shift the hue channel. Should be in [-0.5, 0.5]. 0.5and -0.5 give complete reversal of hue channel in HSV space in positive and negativedirection respectively. 0 means no shift. Therefore, both -0.5 and 0.5 will give an@@ -212,7 +212,7 @@ class AdjustGamma(nn.Module):The input image is expected to be in the range of [0, 1].Args:- input (torch.Tensor): Image/Tensor to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Tensor to be adjusted in the shape of (\*, N).gamma (float): Non negative real number, same as γ\gammaγ in the equation.gamma larger than 1 make the shadows darker, while gamma smaller than 1 makedark regions lighter.@@ -237,7 +237,7 @@ class AdjustContrast(nn.Module):The input image is expected to be in the range of [0, 1].Args:- input (torch.Tensor): Image to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image to be adjusted in the shape of (\*, N).contrast_factor (Union[float, torch.Tensor]): Contrast adjust factor per elementin the batch. 0 generates a compleatly black image, 1 does not modifythe input image while any other non-negative number modify the@@ -261,7 +261,7 @@ class AdjustBrightness(nn.Module):The input image is expected to be in the range of [0, 1].Args:- input (torch.Tensor): Image/Input to be adjusted in the shape of (*, N).+ input (torch.Tensor): Image/Input to be adjusted in the shape of (\*, N).brightness_factor (Union[float, torch.Tensor]): Brightness adjust factor per elementin the batch. 0 generates a compleatly black image, 1 does not modifythe input image while any other non-negative number modify the