π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
homography_bugfix_#693 (#698)
Danielf32ea0ae14cb
diff --git a/kornia/geometry/homography.py b/kornia/geometry/homography.pyindex 916d5c903..d9983636e 100644--- a/kornia/geometry/homography.py+++ b/kornia/geometry/homography.py@@ -47,7 +47,7 @@ def find_homography_dlt(else:# We should use provided weightsassert len(weights.shape) == 2 and weights.shape == points1.shape[:2], weights.shape- w_diag = torch.diag_embed(weights.repeat(1, 2))+ w_diag = torch.diag_embed(weights.unsqueeze(dim=-1).repeat(1, 1, 2).reshape(weights.shape[0], -1))A = A.transpose(-2, -1) @ w_diag @ Atry: