Skip to content

RandomSaturation

RandomSaturation class

dlf.preprocessing.saturation.RandomSaturation(lower=0.8, upper=1.25)

Data augmentation method that randomly adjust the saturation of a RGB image

Aliases

  • saturation
  • Saturation
  • RandomStaturation
  • random_staturation

Arguments

  • lower: float. Lowest value that is added to the saturation channel of a HSV converted image
  • upper: float. Highest value that is added to the saturation channel of a HSV converted image

YAML Configuration

preprocess_list:
    saturation:
        lower: 0.3
        upper: 1.5