Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

torch.gesv -> torch.solve in get_perspective_transform

edgarriba70cccd9ea39a
diff --git a/torchgeometry/core/imgwarp.py b/torchgeometry/core/imgwarp.py
index 6f62ae0d9..e0d0199f9 100644
--- a/torchgeometry/core/imgwarp.py
+++ b/torchgeometry/core/imgwarp.py
@@ -259,7 +259,7 @@ def get_perspective_transform(src, dst):
], dim=1)
# solve the system Ax = b
- X, LU = torch.gesv(b, A)
+ X, LU = torch.solve(b, A)
# create variable to return
batch_size = src.shape[0]