π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
remove blanks
HassanAlsamahid88087fd2ed5
diff --git a/kornia/color/gray.py b/kornia/color/gray.pyindex 482b0c771..810f9e7a2 100644--- a/kornia/color/gray.py+++ b/kornia/color/gray.py@@ -50,7 +50,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))-# https://docs.opencv.org/4.0.1/de/d25/imgproc_color_conversions.htmlr, g, b = torch.chunk(input, chunks=3, dim=-3)gray: torch.Tensor = 0.299 * r + 0.587 * g + 0.110 * b