π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Update hf spaces in docs (#2964)
Michaelbc3bfd347fae
diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.jsindex c714701d7..03f76e15c 100644--- a/docs/source/_static/js/custom.js+++ b/docs/source/_static/js/custom.js@@ -31,3 +31,12 @@ function onLoad() {}window.addEventListener("load", onLoad);+++document.addEventListener("DOMContentLoaded", function () {+ if (typeof iFrameResize === "function") {+ iFrameResize({}, "#augmentation-tester");+ } else {+ console.error("iFrameResize function is not available");+ }+});diff --git a/docs/source/augmentation.rst b/docs/source/augmentation.rstindex 630f1d3f1..74d2c3cc7 100644--- a/docs/source/augmentation.rst+++ b/docs/source/augmentation.rst@@ -13,10 +13,17 @@ itself, or to be applied to additional metadata such as the label images for semin bounding boxes or landmark keypoints for object detection tasks. It gives the user the flexibility toperform complex data augmentations pipelines.-Try it out :+Interactive Demo+~~~~~~~~~~~~~~~~+.. raw:: html-.. image:: https://img.shields.io/badge/%F0%9F%A4%97%20Spaces-Interactive%20Demo-blue- :target: https://huggingface.co/spaces/kornia/kornia-augmentations-tester+ <iframe+ id="augmentation-tester"+ src="https://kornia-kornia-augmentations-tester.hf.space"+ frameborder="0"+ width="850"+ height="450"+ ></iframe>Benchmark---------diff --git a/docs/source/conf.py b/docs/source/conf.pyindex ca45a3227..910818fb7 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -170,6 +170,7 @@ html_css_files = ["css/main.css"]html_js_files = ["js/custom.js",("https://gradio.s3-us-west-2.amazonaws.com/4.38.1/gradio.js", {"defer": "defer", "type": "module"}),+ "https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.2/iframeResizer.min.js",]# Configure viewcode extension.diff --git a/docs/source/feature.rst b/docs/source/feature.rstindex f81f03cd6..d74ded30e 100644--- a/docs/source/feature.rst+++ b/docs/source/feature.rst@@ -115,6 +115,12 @@ Matching.. autoclass:: LoFTR:members: forward+Interactive Demo+~~~~~~~~~~~~~~~~+.. raw:: html++ <gradio-app src="https://kornia-kornia-loftr.hf.space"></gradio-app>+.. autoclass:: OnnxLightGlue:members: forwarddiff --git a/docs/source/geometry.line.rst b/docs/source/geometry.line.rstindex b5d92a180..f25cb430c 100644--- a/docs/source/geometry.line.rst+++ b/docs/source/geometry.line.rst@@ -18,3 +18,4 @@ Interactive Demo.. raw:: html<gradio-app src="kornia/line-segment-matching"></gradio-app>+ <gradio-app src="kornia/Line-Fitting"></gradio-app>