π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs(contrib): add a Returns section to the to_onnx docstrings of SuperResolution and EdgeDetector (#6236)
Dmytro Mishkin4cbd62d4ca8b
diff --git a/kornia/contrib/edge_detection.py b/kornia/contrib/edge_detection.pyindex 4c0b1eb16..92f2afd4e 100644--- a/kornia/contrib/edge_detection.py+++ b/kornia/contrib/edge_detection.py@@ -265,6 +265,9 @@ class EdgeDetector(ModelBase, ONNXExportMixin):Additional metadata to add to the ONNX model.kwargs: Additional keyword arguments of :func:`torch.onnx.export`.+ Returns:+ The exported ONNX model.+Raises:ValueError: With the pre- and post-processor, if the ``ResizePostProcessor`` resizes with ``"area"``:adaptive average pooling cannot be exported with the input's size; or if the post-processor returnsdiff --git a/kornia/contrib/super_resolution.py b/kornia/contrib/super_resolution.pyindex bc85563cd..20f75bbe1 100644--- a/kornia/contrib/super_resolution.py+++ b/kornia/contrib/super_resolution.py@@ -234,6 +234,9 @@ class SuperResolution(ModelBase[SuperResolutionConfig], ONNXExportMixin):Additional metadata to add to the ONNX model.kwargs: Additional keyword arguments of :func:`torch.onnx.export`.+ Returns:+ The exported ONNX model.+Raises:ValueError: With the pre- and post-processor, if the output is a list (or tuple) with one image per inputimage and the exported batch is dynamic, from a ``dynamic_axes`` or ``dynamic_shapes`` argument or,