π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
remove spaces
HassanAlsamahiec8dc30bfa3b
diff --git a/kornia/color/gray.py b/kornia/color/gray.pyindex ea24dd6a3..317e55ce7 100644--- a/kornia/color/gray.py+++ b/kornia/color/gray.py@@ -53,7 +53,6 @@ def rgb_to_grayscale(input: torch.Tensor) -> torch.Tensor:raise ValueError("Input size must have a shape of (*, 3, H, W). Got {}".format(input.shape))-r, g, b = torch.chunk(input, chunks=3, dim=-3)gray: torch.Tensor = 0.299 * r + 0.587 * g + 0.110 * breturn gray@@ -110,7 +109,6 @@ def bgr_to_grayscale(input: torch.Tensor) -> torch.Tensor:raise ValueError("Input size must have a shape of (*, 3, H, W). Got {}".format(input.shape))-b, g, r = torch.chunk(input, chunks=3, dim=-3)gray: torch.Tensor = 0.299 * r + 0.587 * g + 0.110 * breturn gray