Albumentations vs Torchvision Benchmarks

On this page

This route is reserved for benchmark results generated during the website build.

The benchmark implementation source is public:

Methodology Notes

The generated benchmark page should separate at least these cases:

  • image transforms
  • multichannel image transforms
  • video or batched transform paths
  • pipeline benchmarks

This matters because torchvision can be useful for tensor and batch operations, while Albumentations is usually evaluated as a per-sample CPU augmentation pipeline with target propagation.

The generated output should include hardware, Python version, library versions, image shape, channel count, and whether inputs are tensors or NumPy arrays.

Generated benchmark tables

Values are taken from the benchmark JSON downloaded during the website build. AlbumentationsX 2.2.5, Torchvision 0.26.0.

Run context: macOS-26.4.1-arm64-arm-64bit, Python 3.12.8, CPUs 16, media image, dataset files 50000, channels 3, runs 5.

Higher median throughput is better. Speedup range matches the interactive benchmark pages (AlbumentationsX interval vs competitor interval). means unsupported or missing data.

RGB (micro)

TransformAlbumentationsX (median ± std)Torchvision (median ± std)Speedup (AlbX / other, range)
Affine1456 ± 23331 ± 74.2-4.6x
AutoContrast1619 ± 44399 ± 23.9-4.2x
Blur7544 ± 134
Brightness9849 ± 991989 ± 94.9-5.0x
CLAHE644 ± 5
CenterCrop12895346 ± 128134279 ± 3072.7-2.8x
ChannelDropout11971 ± 434
ChannelShuffle8235 ± 865383 ± 121.5-1.5x
ColorJiggle1208 ± 16133 ± 18.9-9.2x
ColorJitter1221 ± 10131 ± 29.1-9.5x
Colorize3858 ± 11
Contrast10045 ± 1191228 ± 48.1-8.3x
CornerIllumination866 ± 28
Dithering6 ± 0
Elastic453 ± 28 ± 053-55x
Equalize1086 ± 12946 ± 51.1-1.2x
Erasing27849 ± 40284175 ± 105.7-7.7x
GaussianBlur2462 ± 11336 ± 47.2-7.4x
GaussianIllumination773 ± 21
GaussianNoise328 ± 20
Grayscale19593 ± 3503409 ± 85.6-5.9x
HorizontalFlip13200 ± 4301678 ± 157.5-8.2x
Hue1908 ± 18
Invert31753 ± 13275195 ± 845.8-6.5x
JpegCompression1351 ± 11925 ± 31.4-1.5x
LinearIllumination557 ± 18
LongestMaxSize3847 ± 62
MedianBlur1546 ± 16
MotionBlur3847 ± 49
Normalize1642 ± 261091 ± 61.5-1.5x
OpticalDistortion395 ± 4
Pad34979 ± 32745072 ± 686.2-7.6x
Perspective1185 ± 9268 ± 64.3-4.6x
PhotoMetricDistort1070 ± 19129 ± 08.1-8.5x
PlankianJitter3278 ± 13
PlasmaBrightness394 ± 9
PlasmaContrast250 ± 6
PlasmaShadow526 ± 8
Posterize28724 ± 32595162 ± 64.9-6.2x
RGBShift5025 ± 48
Rain2169 ± 27
RandomCrop12893574 ± 196431208 ± 5642.9-3.1x
RandomGamma14482 ± 424
RandomJigsaw9413 ± 136
RandomResizedCrop4354 ± 22939 ± 234.5-4.8x
RandomRotate908652 ± 167
Resize3542 ± 11288 ± 212-12x
Rotate2996 ± 12451 ± 96.5-6.8x
SaltAndPepper946 ± 4
Saturation1389 ± 27
Sharpen2221 ± 35525 ± 14.2-4.3x
Shear1322 ± 7
SmallestMaxSize2676 ± 7
Snow754 ± 4
Solarize13505 ± 4421297 ± 210-11x
ThinPlateSpline92 ± 1
Transpose8184 ± 199
UnsharpMask3063 ± 37
VerticalFlip29169 ± 26575023 ± 295.2-6.4x

Multichannel

TransformAlbumentationsX (median ± std)Torchvision (median ± std)Speedup (AlbX / other, range)
Affine670 ± 11198 ± 23.3-3.5x
AutoContrast437 ± 15780 ± 20.5-0.6x
Blur2567 ± 100
Brightness3013 ± 284985 ± 32.8-3.4x
CenterCrop12851003 ± 21736610 ± 1431.4-1.4x
ChannelDropout9472 ± 959
ChannelShuffle2641 ± 1061892 ± 61.3-1.5x
Contrast3052 ± 99572 ± 45.1-5.5x
CornerIllumination289 ± 16
Elastic335 ± 38 ± 042-43x
Erasing19946 ± 43386362 ± 2272.4-4.0x
GaussianBlur802 ± 12121 ± 16.5-6.8x
GaussianIllumination295 ± 9
GaussianNoise109 ± 3
Grayscale392 ± 31491 ± 70.3-0.3x
HorizontalFlip2630 ± 7318238 ± 3180.1-0.2x
Invert16207 ± 338823672 ± 1080.5-0.8x
JpegCompression160 ± 0258 ± 10.6-0.6x
LinearIllumination206 ± 3
LongestMaxSize858 ± 16
MedianBlur419 ± 5
MotionBlur1342 ± 65
Normalize1311 ± 541375 ± 10.9-1.0x
OpticalDistortion290 ± 7
Pad8066 ± 8815071 ± 1030.5-0.5x
Perspective602 ± 17176 ± 03.3-3.5x
PlasmaBrightness151 ± 3
PlasmaContrast85 ± 0
PlasmaShadow253 ± 4
Posterize23588 ± 513523074 ± 2760.8-1.3x
RandomCrop12847302 ± 238429917 ± 18421.4-1.8x
RandomGamma5465 ± 672
RandomJigsaw5609 ± 44
RandomResizedCrop986 ± 22335 ± 22.9-3.0x
RandomRotate901478 ± 24
Rotate1772 ± 31246 ± 27.0-7.4x
Sharpen770 ± 11286 ± 42.6-2.8x
Shear662 ± 7
SmallestMaxSize603 ± 18
Solarize5615 ± 502567 ± 29.0-11x
ThinPlateSpline85 ± 1
VerticalFlip9190 ± 294119143 ± 1300.3-0.6x

Video

TransformAlbumentationsX (median ± std)Torchvision (median ± std)Speedup (AlbX / other, range)
AdditiveNoise9.6 ± 0.1
AdvancedBlur24 ± 1.3
Affine25 ± 0.1453 ± 0.10.1-0.1x
AtmosphericFog6.0 ± 0.1
AutoContrast22 ± 0.3578 ± 170.0-0.0x
Blur110 ± 0.5
Brightness241 ± 1.9756 ± 4350.2-0.8x
CLAHE10 ± 0.1
CenterCrop128975 ± 131133 ± 2350.7-1.1x
ChannelDropout205 ± 0.7
ChannelShuffle26 ± 0.1958 ± 0.20.0-0.0x
ChannelSwap24 ± 0.3
ChromaticAberration8.6 ± 0.1
CoarseDropout487 ± 6.0
ColorJitter19 ± 0.969 ± 0.10.3-0.3x
ConstrainedCoarseDropout112591 ± 2961
Contrast239 ± 1.8547 ± 130.4-0.5x
CornerIllumination10 ± 0.2
CropAndPad42 ± 1.6
Defocus2.3 ± 0.0
Dithering0.1 ± 0.0
Downscale83 ± 1.4
Elastic26 ± 0.3127 ± 1.30.2-0.2x
Emboss47 ± 0.6
Equalize16 ± 0.4192 ± 1.20.1-0.1x
Erasing458 ± 7.5255 ± 6.61.7-1.9x
FancyPCA1.8 ± 0.0
FilmGrain4.7 ± 0.0
GaussianBlur42 ± 0.7543 ± 110.1-0.1x
GaussianIllumination10 ± 0.2
GaussianNoise11 ± 0.4
GlassBlur0.7 ± 0.0
Grayscale82 ± 0.3838 ± 4670.1-0.2x
GridDistortion28 ± 0.2
GridDropout93 ± 14
GridMask199 ± 3.1
HSV15 ± 0.9
Halftone0.5 ± 0.2
HorizontalFlip30 ± 0.1978 ± 490.0-0.0x
Hue26 ± 2.2
ISONoise8.6 ± 0.1
Invert467 ± 27843 ± 1760.4-0.7x
JpegCompression25 ± 0.2
LensFlare7.0 ± 0.1
LinearIllumination10 ± 0.2
LongestMaxSize28 ± 0.2
MedianBlur24 ± 0.2
Morphological219 ± 1.6
MotionBlur80 ± 2.3
MultiplicativeNoise40 ± 0.1
Normalize22 ± 0.3461 ± 0.20.0-0.0x
OpticalDistortion26 ± 0.3
Pad302 ± 11760 ± 3380.3-0.7x
PadIfNeeded17 ± 0.2
Perspective22 ± 0.1435 ± 0.10.0-0.0x
PhotoMetricDistort16 ± 0.6
PiecewiseAffine25 ± 0.3
PixelDropout76 ± 0.2
PlankianJitter59 ± 0.4
PlasmaBrightness4.4 ± 0.0
PlasmaContrast2.9 ± 0.0
PlasmaShadow6.8 ± 0.0
Posterize240 ± 8.1631 ± 150.4-0.4x
RGBShift9.4 ± 0.1
Rain27 ± 0.6
RandomCrop128933 ± 6.61133 ± 150.8-0.8x
RandomFog0.2 ± 0.0
RandomGamma238 ± 0.8
RandomGravel24 ± 1.0
RandomGridShuffle11 ± 0.0
RandomResizedCrop28 ± 0.5182 ± 160.1-0.2x
RandomRotate9041 ± 3.9
RandomScale56 ± 1.4
RandomShadow8.0 ± 0.6
RandomSizedCrop24 ± 0.1
RandomSunFlare5.3 ± 0.0
RandomToneCurve239 ± 1.4
Resize26 ± 0.2140 ± 350.1-0.2x
RingingOvershoot2.6 ± 0.0
Rotate49 ± 0.1534 ± 0.20.1-0.1x
SafeRotate24 ± 0.0
SaltAndPepper12 ± 0.0
Saturation19 ± 0.7
Sharpen38 ± 0.4420 ± 9.00.1-0.1x
Shear23 ± 0.1
ShiftScaleRotate24 ± 0.1
ShotNoise0.9 ± 0.0
SmallestMaxSize18 ± 0.1
Snow13 ± 0.2
Solarize249 ± 8.9628 ± 5.90.4-0.4x
Spatter7.2 ± 0.1
SquareSymmetry37 ± 3.2
Superpixels0.1 ± 0.0
ThinPlateSpline23 ± 0.4
ToSepia135 ± 0.4
Transpose28 ± 0.1
UnsharpMask7.6 ± 0.1
VerticalFlip591 ± 20978 ± 5.20.6-0.6x
Vignetting9.6 ± 0.9
WaterRefraction22 ± 0.1
ZoomBlur3.7 ± 0.2