π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
modify code style
HassanAlsamahif1e92aa93f1b
diff --git a/kornia/color/gray.py b/kornia/color/gray.pyindex 00440e592..7e3276300 100644--- a/kornia/color/gray.py+++ b/kornia/color/gray.py@@ -110,6 +110,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))- bgr_rgb = bgr_to_rgb(input)- gray = rgb_to_grayscale(bgr_rgb)+ input_rgb = bgr_to_rgb(input)+ gray: torch.Tensor = rgb_to_grayscale(bgr_rgb)return gray