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"))
Differentiable Summary¶
Check tutorial_tensor.ipynb for how to use differentiable operators
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 |