Properties

Property APIs

beacon_aug.properties.isAntiAliasing(BA_operator, library, interpolation, **kwargs)[source]

Check if op is anti aliasing. source Paper Whether or not the operator is anti-alising depends on the PSNR between original and rescaled images

Contributed by Richard Zhang,

e.g.

import beacon_aug as BA
BA.properties.isAntiAliasing(BA.Resize, library= "torchvision",interpolation = "linear" )
beacon_aug.properties.isOpDifferentiable(op=None, size: Iterable[int] = (2, 3, 8, 8), device: str = 'cpu')[source]

Check if op is differentiable. source

Contributed by Yannick Hold-Geoffroy

e.g.

import beacon_aug as BA
BA.properties.isOpDifferentiable(op=BA.RandomCrop(library="torch"))
beacon_aug.properties.library_attributes(BA_operator, image_data=None, **kwargs)[source]

Visualize the augmentation result comparision to all available libraries

e.g.

import beacon_aug as BA
attributes_result = library_attributes(BA.Add)
beacon_aug.properties.set_seed(seed)[source]

Set Random seed to control the replication of transformations

Differentiable Summary

Library

albumentations

imgaug

torchvision

keras

augly

mmcv

imagenet_c

kornia

custom

Affine

x

x

x

Autocontrast

x

x

Blur

x

x

x

Brightness

x

x

x

x

x

CLAHE

x

x

x

CenterCrop

x

ChannelShuffle

x

x

CoarseDropout

x

x

ColorJitter

x

x

Contrast

x

x

x

x

Crop

x

x

CropAndPad

x

x

Cutout

x

x

ElasticTransform

x

x

x

Emboss

x

x

Equalize

x

x

x

Fog

x

x

x

GaussianBlur

x

x

x

GaussianNoise

x

x

GlassBlur

x

x

Grayscale

x

x

HidePatch

x

HorizontalFlip

x

x

x

x

ImpulseNoise

x

x

Invert

x

x

JpegCompression

x

x

x

x

KeepSizeCrop

x

Lambda

x

x

x

x

MedianBlur

x

x

MotionBlur

x

x

x

Normalize

x

x

OverlayText

x

x

Pad

x

x

x

PerspectiveTransform

x

x

PiecewiseAffine

x

x

Pixelization

x

x

Posterize

x

RandomCrop

x

x

x

RandomGrayscale

RandomResizedCrop

x

RandomSizedCrop

x

Resize

x

x

x

x

Rotate

x

x

x

x

x

Saturation

x

x

x

x

Scale

x

Sharpen

x

x

x

ShotNoise

x

Snow

x

x

Solarize

x

x

Superpixels

x

x

TextFlow

x

VerticalFlip

x

x

x

x