π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix linter error
edgarribaa324dbb36dd7
diff --git a/torchgeometry/conversions.py b/torchgeometry/conversions.pyindex 818e70b7f..a0f268db2 100644--- a/torchgeometry/conversions.py+++ b/torchgeometry/conversions.py@@ -372,7 +372,7 @@ def rotation_matrix_to_quaternion(rotation_matrix, eps=1e-6):q /= torch.sqrt(t0_rep * mask_c0 + t1_rep * mask_c1 + # noqat2_rep * mask_c2 + t3_rep * mask_c3)q *= 0.5-+if len(input_shape) == 2:q = q.squeeze(0)return q@@ -437,7 +437,7 @@ def quaternion_to_angle_axis(quaternion, eps=1e-6):angle_axis[:, 0] = q1 * kangle_axis[:, 1] = q2 * kangle_axis[:, 2] = q3 * k-+if len(input_shape) == 1:angle_axis = angle_axis.squeeze(0)diff --git a/torchgeometry/depth_warper.py b/torchgeometry/depth_warper.pyindex 46da85dc5..2f454ab5e 100644--- a/torchgeometry/depth_warper.py+++ b/torchgeometry/depth_warper.py@@ -115,7 +115,7 @@ accurate sampling of the depth cost volume, per camera.factor_x = (self.width - 1) / 2factor_x = factor_x.to(device)-+factor_y = (self.height - 1) / 2factor_y = factor_y.to(device)