π Geometric Computer Vision Library for Spatial AI
Brightness, Contrast and Saturate in kornia.augmentation.auto.operations, and with them the brightness, contrast and color entries of AutoAugment, RandAugment and TrivialAugment, now apply the PIL ImageEnhance formulas their 0.1 to 1.9 factor ranges come from: brightness multiplies the image by the factor, contrast blends each image with its mean grayscale level, and color blends it with its grayscale version. They used to add factor - 1 for brightness, multiply the image by the factor for contrast and scale the HSV saturation for color, so a brightness factor of 0.3 clipped most of an image to black. Saturate now also returns a single-channel image unchanged instead of raising. RandomBrightness, RandomContrast and RandomSaturation are unchanged.