Unverified Commit b6189a8d authored by TilmannR's avatar TilmannR Committed by GitHub
Browse files

Fixed markup in functional.py (#8007)

parent 48f8473e
...@@ -1270,7 +1270,7 @@ def rgb_to_grayscale(img: Tensor, num_output_channels: int = 1) -> Tensor: ...@@ -1270,7 +1270,7 @@ def rgb_to_grayscale(img: Tensor, num_output_channels: int = 1) -> Tensor:
Note: Note:
Please, note that this method supports only RGB images as input. For inputs in other color spaces, Please, note that this method supports only RGB images as input. For inputs in other color spaces,
please, consider using meth:`~torchvision.transforms.functional.to_grayscale` with PIL Image. please, consider using :meth:`~torchvision.transforms.functional.to_grayscale` with PIL Image.
Args: Args:
img (PIL Image or Tensor): RGB Image to be converted to grayscale. img (PIL Image or Tensor): RGB Image to be converted to grayscale.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment