π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
add spaces to warnings.warn output (#1658)
qwertyforcef4d91ba9e723
diff --git a/kornia/feature/affine_shape.py b/kornia/feature/affine_shape.pyindex 33c9d3a14..e30454a66 100644--- a/kornia/feature/affine_shape.py+++ b/kornia/feature/affine_shape.py@@ -100,9 +100,9 @@ class LAFAffineShapeEstimator(nn.Module):self.affine_shape_detector = affine_shape_detector or PatchAffineShapeEstimator(self.patch_size)self.preserve_orientation = preserve_orientationif preserve_orientation:- warnings.warn("`LAFAffineShapeEstimator` default behaviour is changed"- "and now it does preserve original LAF orientation"- "Make sure your code accounts for this",+ warnings.warn("`LAFAffineShapeEstimator` default behaviour is changed "+ "and now it does preserve original LAF orientation. "+ "Make sure your code accounts for this.",DeprecationWarning,stacklevel=2)@@ -195,9 +195,9 @@ class LAFAffNetShapeEstimator(nn.Module):self.load_state_dict(pretrained_dict['state_dict'], strict=False)self.preserve_orientation = preserve_orientationif preserve_orientation:- warnings.warn("`LAFAffNetShapeEstimator` default behaviour is changed"- "and now it does preserve original LAF orientation"- "Make sure your code accounts for this",+ warnings.warn("`LAFAffNetShapeEstimator` default behaviour is changed "+ "and now it does preserve original LAF orientation. "+ "Make sure your code accounts for this.",DeprecationWarning,stacklevel=2)self.eval()