π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Remove assignment of variable to itself (#1079)
deepsource-autofix[bot]f85c7278868a
diff --git a/kornia/utils/image.py b/kornia/utils/image.pyindex 7986edeac..14f963ee5 100644--- a/kornia/utils/image.py+++ b/kornia/utils/image.py@@ -118,7 +118,7 @@ def tensor_to_image(tensor: torch.Tensor) -> np.ndarray:if len(input_shape) == 2:# (H, W) -> (H, W)- image = image+ passelif len(input_shape) == 3:# (C, H, W) -> (H, W, C)if input_shape[0] == 1: