π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Updating docs to include interactive demos (#2958)
Michael6bd3262f0a3a
diff --git a/.gitignore b/.gitignoreindex 979467e5e..3b93725ac 100644--- a/.gitignore+++ b/.gitignore@@ -19,6 +19,8 @@ kornia.egg-info/*bak*ipynb_checkpoints*docs/source/_static/*jpg+docs/source/_static/img/*jpg+docs/source/_static/scripts/**DS_Store# onnx tests create temp.onnx filediff --git a/docs/source/applications/image_denoising.rst b/docs/source/applications/image_denoising.rstindex cb9438df3..1b035ebb8 100644--- a/docs/source/applications/image_denoising.rst+++ b/docs/source/applications/image_denoising.rst@@ -5,4 +5,4 @@ Image Denoising.. raw:: html- <gradio-app space="kornia/total_variation_denoising"></gradio-app>+ <gradio-app src="kornia/total_variation_denoising"></gradio-app>diff --git a/docs/source/applications/image_registration.rst b/docs/source/applications/image_registration.rstindex 7468114bc..837afe3b6 100644--- a/docs/source/applications/image_registration.rst+++ b/docs/source/applications/image_registration.rst@@ -27,7 +27,7 @@ Interactive Demo----------------.. raw:: html- <gradio-app space="kornia/image-registration-with-kornia"></gradio-app>+ <gradio-app src="kornia/image-registration-with-kornia"></gradio-app>Visit the `image registration demo on the Hugging Face Spaces <https://huggingface.co/spaces/kornia/image-registration-with-kornia>`_.diff --git a/docs/source/applications/image_stitching.rst b/docs/source/applications/image_stitching.rstindex c6f7f8575..e0bcbb635 100644--- a/docs/source/applications/image_stitching.rst+++ b/docs/source/applications/image_stitching.rst@@ -26,6 +26,6 @@ Interactive Demo----------------.. raw:: html- <gradio-app space="kornia/Image-Stitching"></gradio-app>+ <gradio-app src="kornia/Image-Stitching"></gradio-app>Visit the demo on `Hugging Face Spaces <https://huggingface.co/spaces/kornia/Image-Stitching>`_.diff --git a/docs/source/conf.py b/docs/source/conf.pyindex 96f19d814..ca45a3227 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -167,7 +167,10 @@ html_extra_path = []# Output file base name for HTML help builder.htmlhelp_basename = "Kornia"html_css_files = ["css/main.css"]-html_js_files = ["js/custom.js"]+html_js_files = [+ "js/custom.js",+ ("https://gradio.s3-us-west-2.amazonaws.com/4.38.1/gradio.js", {"defer": "defer", "type": "module"}),+]# Configure viewcode extension.# based on https://github.com/readthedocs/sphinx-autoapi/issues/202diff --git a/docs/source/contrib.rst b/docs/source/contrib.rstindex 041805323..7c248abe2 100644--- a/docs/source/contrib.rst+++ b/docs/source/contrib.rst@@ -86,7 +86,7 @@ Interactive Demo^^^^^^^^^^^^^^^^.. raw:: html- <gradio-app space="kornia/Face-Detection"></gradio-app>+ <gradio-app src="kornia/Face-Detection"></gradio-app>Visit the `Kornia face detection demo on the Hugging Face Spaces<https://huggingface.co/spaces/kornia/Face-Detection>`_.diff --git a/docs/source/enhance.rst b/docs/source/enhance.rstindex d27ebe525..62cd35481 100644--- a/docs/source/enhance.rst+++ b/docs/source/enhance.rst@@ -26,7 +26,7 @@ Interactive Demo~~~~~~~~~~~~~~~~.. raw:: html- <gradio-app space="kornia/kornia-image-enhancement"></gradio-app>+ <gradio-app src="kornia/kornia-image-enhancement"></gradio-app>Visit the demo on `Hugging Face Spaces <https://huggingface.co/spaces/kornia/kornia-image-enhancement>`_.@@ -83,4 +83,4 @@ ZCA Whitening Interactive Demo------------------------------.. raw:: html- <gradio-app space="kornia/zca-whitening"></gradio-app>+ <gradio-app src="kornia/zca-whitening"></gradio-app>diff --git a/docs/source/filters.rst b/docs/source/filters.rstindex 04ce46bcc..88c4750a4 100644--- a/docs/source/filters.rst+++ b/docs/source/filters.rst@@ -23,7 +23,7 @@ Interactive Demo~~~~~~~~~~~~~~~~.. raw:: html- <gradio-app space="kornia/kornia-image-filtering"></gradio-app>+ <gradio-app src="kornia/kornia-image-filtering"></gradio-app>Visit the `Kornia image filtering demo on the Hugging Face Spaces<https://huggingface.co/spaces/kornia/kornia-image-filtering>`_.@@ -50,7 +50,7 @@ Interactive Demo~~~~~~~~~~~~~~~~.. raw:: html- <gradio-app space="kornia/edge_detector"></gradio-app>+ <gradio-app src="kornia/edge_detector"></gradio-app>Visit the `Kornia edge detector demo on the Hugging Face Spaces<https://huggingface.co/spaces/kornia/edge_detector>`_.diff --git a/docs/source/geometry.homography.rst b/docs/source/geometry.homography.rstindex f7a27362b..ee859ec60 100644--- a/docs/source/geometry.homography.rst+++ b/docs/source/geometry.homography.rst@@ -11,4 +11,4 @@ Interactive Demo----------------.. raw:: html- <gradio-app space="kornia/homography-warping"></gradio-app>+ <gradio-app src="kornia/homography-warping"></gradio-app>diff --git a/docs/source/geometry.line.rst b/docs/source/geometry.line.rstindex 138b52a38..b5d92a180 100644--- a/docs/source/geometry.line.rst+++ b/docs/source/geometry.line.rst@@ -17,4 +17,4 @@ Interactive Demo.. raw:: html- <gradio-app space="kornia/line-segment-matching"></gradio-app>+ <gradio-app src="kornia/line-segment-matching"></gradio-app>diff --git a/docs/source/geometry.transform.rst b/docs/source/geometry.transform.rstindex b75e4873b..94bb2625c 100644--- a/docs/source/geometry.transform.rst+++ b/docs/source/geometry.transform.rst@@ -98,9 +98,9 @@ Interactive Demo.. raw:: html- <gradio-app space="kornia/kornia-resize-antialias"></gradio-app>+ <gradio-app src="kornia/kornia-resize-antialias"></gradio-app>.. raw:: html- <gradio-app space="kornia/geometry_image_transform_with_kornia"></gradio-app>+ <gradio-app src="kornia/geometry_image_transform_with_kornia"></gradio-app>diff --git a/docs/source/morphology.rst b/docs/source/morphology.rstindex cf84f6596..bf9c10925 100644--- a/docs/source/morphology.rst+++ b/docs/source/morphology.rst@@ -15,6 +15,6 @@ Interactive Demo~~~~~~~~~~~~~~~~.. raw:: html- <gradio-app space="kornia/morphological_operators"></gradio-app>+ <gradio-app src="kornia/morphological_operators"></gradio-app>Visit the demo on `Hugging Face Spaces <https://huggingface.co/spaces/kornia/morphological_operators>`_.diff --git a/kornia/geometry/transform/affwarp.py b/kornia/geometry/transform/affwarp.pyindex ee6b0e91e..b0abb14fe 100644--- a/kornia/geometry/transform/affwarp.py+++ b/kornia/geometry/transform/affwarp.py@@ -670,7 +670,7 @@ class Resize(nn.Module):.. raw:: html- <gradio-app space="kornia/kornia-resize-antialias"></gradio-app>+ <gradio-app src="kornia/kornia-resize-antialias"></gradio-app>"""def __init__(