cerebras.modelzoo.data.vision.segmentation.transforms.color_transforms.BrightnessMultiplicativeTransform#
- class cerebras.modelzoo.data.vision.segmentation.transforms.color_transforms.BrightnessMultiplicativeTransform[source]#
Bases:
object
Augments the brightness of data. Multiplicative brightness is sampled from multiplier_range :param multiplier_range: range to uniformly sample the brightness modifier from :param per_channel: whether to use the same brightness modifier for all color channels or a separate one for each channel :param data_key: :param p_per_sample:
Methods
- __init__(multiplier_range=(0.5, 2), per_channel=True, data_key='data', p_per_sample=1)[source]#
Augments the brightness of data. Multiplicative brightness is sampled from multiplier_range :param multiplier_range: range to uniformly sample the brightness modifier from :param per_channel: whether to use the same brightness modifier for all color channels or a separate one for each channel :param data_key: :param p_per_sample: