π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
added clamping to log (#3277)
Sidd99a10bed3bcd
diff --git a/kornia/geometry/liegroup/se3.py b/kornia/geometry/liegroup/se3.pyindex a4f2ee508..1643c02d4 100644--- a/kornia/geometry/liegroup/se3.py+++ b/kornia/geometry/liegroup/se3.py@@ -207,7 +207,7 @@ class Se3(Module):"""omega = self.r.log()- theta = batched_dot_product(omega, omega).sqrt()+ theta = batched_dot_product(omega, omega).clamp_min(1e-12).sqrt()t = self.t.dataomega_hat = So3.hat(omega)omega_hat_sq = omega_hat @ omega_hat