batch_adjust_brightness#
- torchaug.batch_transforms.functional.batch_adjust_brightness(imgs, brightness_factor, value_check=False)[source]#
Adjust brightness of a batch of images.
- Parameters:
imgs (
Tensor) – Batch of images to be adjusted. It is expected to be in [B, …, 1 or 3, H, W] format, where … means it can have an arbitrary number of dimensions.brightness_factor (
float|Tensor) – How much to adjust the brightness. Can be any 1 or B non-negative number. 0 gives a black image, 1 gives the original image while 2 increases the brightness by a factor of 2.value_check (
bool, optional) – Bool to perform tensor value check. Might cause slow down on some devices because of synchronization or large batch size.Default:False- Return type:
Tensor- Returns:
Brightness adjusted batch of images.