Skip to content

RandomBlur

RandomBlur class

dlf.preprocessing.blur.RandomBlur(size=3, mean=0, std=5)

Data augmentation method that applies randomly a Gaussian blur to an image

Aliases

  • blur
  • random_blur
  • Blur
  • RandomBlur

Arguments

  • size: float. Size of the convolutional kernel. Defaults to 3.
  • mean: float. Mean value, centre of the distribution. Defaults to 0.
  • std: float. Standard deviation or width of the distribution. Defaults to 5.

YAML Configuration

preprocess_list:
    blur:
        size: 5
        mean: 0.0
        std: 6