π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
update with working example
edgarribae8194828c009
diff --git a/torchgeometry/functional.py b/torchgeometry/functional.pyindex 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 tensorsreturn torch.stack([torch.inverse(homo) for homo in homography])