Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

update with working example

edgarribae8194828c009
diff --git a/torchgeometry/functional.py b/torchgeometry/functional.py
index 7303f532f..22af230bc 100644
--- a/torchgeometry/functional.py
+++ b/torchgeometry/functional.py
@@ -121,7 +121,7 @@ def inverse(homography):
"""
if not len(homography.shape) == 3:
raise ValueError("Input size must be a three dimensional tensor. Got {}"
- .format(points.shape))
+ .format(homography.shape))
# iterate, compute inverse and stack tensors
return torch.stack([torch.inverse(homo) for homo in homography])