π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix build-docs warnings
edgarriba8deaf207cdb4
diff --git a/torchgeometry/conversions.py b/torchgeometry/conversions.pyindex 452be080a..85e27773f 100644--- a/torchgeometry/conversions.py+++ b/torchgeometry/conversions.py@@ -543,7 +543,7 @@ class TransformPoints(nn.Module):Args:dst_pose_src (Tensor): tensor for transformations of- shape :math:`(B, D+1, D+1)`.+ shape :math:`(B, D+1, D+1)`.Returns:Tensor: tensor of N-dimensional points.diff --git a/torchgeometry/depth_warper.py b/torchgeometry/depth_warper.pyindex 82c8fa351..d52b147fb 100644--- a/torchgeometry/depth_warper.py+++ b/torchgeometry/depth_warper.py@@ -62,7 +62,8 @@ class DepthWarper(nn.Module):def compute_subpixel_step(self):"""This computes the required inverse depth step to achieve sub pixel-accurate sampling of the depth cost volume, per camera.+ accurate sampling of the depth cost volume, per camera.+Szeliski, Richard, and Daniel Scharstein."Symmetric sub-pixel stereo matching." European Conference on ComputerVision. Springer Berlin Heidelberg, 2002.diff --git a/torchgeometry/image/gaussian.py b/torchgeometry/image/gaussian.pyindex 63a481b52..6de9ac73c 100644--- a/torchgeometry/image/gaussian.py+++ b/torchgeometry/image/gaussian.py@@ -29,10 +29,10 @@ def get_gaussian_kernel(ksize: int, sigma: float) -> torch.Tensor:Examples::>>> tgm.image.get_gaussian_kernel(3, 2.5)- >>> tensor([0.3243, 0.3513, 0.3243])+ tensor([0.3243, 0.3513, 0.3243])>>> tgm.image.get_gaussian_kernel(5, 1.5)- >>> tensor([0.1201, 0.2339, 0.2921, 0.2339, 0.1201])+ tensor([0.1201, 0.2339, 0.2921, 0.2339, 0.1201])"""if not isinstance(ksize, int) or ksize % 2 == 0 or ksize <= 0:raise TypeError("ksize must be an odd positive integer. Got {}"@@ -60,14 +60,14 @@ def get_gaussian_kernel2d(ksize: Tuple[int, int],Examples::>>> tgm.image.get_gaussian_kernel2d((3, 3), (1.5, 1.5))- >>> tensor([[0.0947, 0.1183, 0.0947],- [0.1183, 0.1478, 0.1183],- [0.0947, 0.1183, 0.0947]])-- >>> tgm.image.get_gaussian_kernel((3, 5), (1.5, 1.5))- >>> tensor([[0.0370, 0.0720, 0.0899, 0.0720, 0.0370],- [0.0462, 0.0899, 0.1123, 0.0899, 0.0462],- [0.0370, 0.0720, 0.0899, 0.0720, 0.0370]])+ tensor([[0.0947, 0.1183, 0.0947],+ [0.1183, 0.1478, 0.1183],+ [0.0947, 0.1183, 0.0947]])++ >>> tgm.image.get_gaussian_kernel2d((3, 5), (1.5, 1.5))+ tensor([[0.0370, 0.0720, 0.0899, 0.0720, 0.0370],+ [0.0462, 0.0899, 0.1123, 0.0899, 0.0462],+ [0.0370, 0.0720, 0.0899, 0.0720, 0.0370]])"""if not isinstance(ksize, tuple) or len(ksize) != 2:raise TypeError("ksize must be a tuple of length two. Got {}"diff --git a/torchgeometry/imgwarp.py b/torchgeometry/imgwarp.pyindex 010b4d976..b6f1f1a6c 100644--- a/torchgeometry/imgwarp.py+++ b/torchgeometry/imgwarp.py@@ -127,7 +127,7 @@ def warp_affine(src, M, dsize, flags='bilinear', border_mode=None,.. note::See a working example `here <https://github.com/arraiy/torchgeometry/- blob/master/examples/warp_affine.ipynb>`_.+ blob/master/examples/warp_affine.ipynb>`__."""if not torch.is_tensor(src):raise TypeError("Input src type is not a torch.Tensor. Got {}"