adjust_brightness — Torchvision 0.22 documentation (original) (raw)

torchvision.transforms.functional.adjust_brightness(img: Tensor, brightness_factor: float) → Tensor[source]

Adjust brightness of an image.

Parameters:

Returns:

Brightness adjusted image.

Return type:

PIL Image or Tensor