AlbumentationsX vs Torchvision Benchmark

Compare JPEG-to-CUDA throughput and peak GPU memory. The Summary page covers library tradeoffs, and the Transform Mapping page covers supported operations.

RGB input pipeline results

Every path reads RGB JPEGs, prepares the recipe, and delivers a synchronized CUDA batch. CPU and GPU labels identify where most augmentation stages run. Every path normalizes on GPU.

TorchVision against AX on 42 shared recipes, per recipe
TorchVision against AX on 42 shared recipes, per recipe Scroll horizontally to see the full chart. Open the image for full size.

Each comparison uses its own shared recipe set. Compare paths within each chart. The table below includes every measured recipe for these paths, including recipes outside the summary set. Recipe names are shortened; hover over a name for its full pipeline.

Benchmark metric

Higher throughput is better. Values are medians across seeds. Hover for the observed range. A dash means no measured result.

R01Resize2243,1932,6943,084
R02RandomCrop2243,4182,9763,849
R03RandomResizedCrop3,1612,5292,101
R04HorizontalFlip3,3902,8913,023
R05VerticalFlip3,2452,9213,147
R06Pad+RandomCrop2243,2252,5772,704
R07Rotate2,9231,6901,169
R08Affine2,9781,9461,330
R09Perspective2,7491,802888
R10Elastic2,10116422
R11ColorJitter2,499860635
R12ChannelShuffle3,2232,8152,639
R13Grayscale3,2262,7042,811
R14RGBShift3,036——
R15GaussianBlur3,0501,7021,731
R16GaussianNoise2,2829102,661
R17Invert3,3652,9442,983
R18Posterize3,3082,9072,989
R19Solarize3,1912,5122,937
R20Sharpen3,0761,4872,064
R21AutoContrast2,8591,9822,130
R22Equalize2,7682,1181,175
R23Erasing3,2312,7291,790
R24JpegCompression2,8652,3982,095
R25RandomGamma3,1952,1643,335
R26PlankianJitter3,014——
R27MedianBlur2,941——
R28MotionBlur2,968——
R29CLAHE2,199——
R30Brightness3,1752,6363,104
R31Contrast3,1242,4382,412
R32Blur3,189——
R33ChannelDropout3,260——
R34LinearIllumination2,738——
R35CornerIllumination2,813——
R36GaussianIllumination2,662——
R37Hue2,7371,008762
R38PlasmaBrightness1,792——
R39PlasmaContrast1,588——
R40PlasmaShadow1,733——
R41Rain2,702——
R42SaltAndPepper3,166——
R43Saturation3,033——
R44Snow2,406——
R45OpticalDistortion2,721——
R46Shear2,9571,9871,381
R47ThinPlateSpline2,104——
R48PhotoMetricDistort2,439829595
R49ColorJiggle2,504860635
R50LongestMaxSize+RandomCrop2242,7362,3592,367
R51SmallestMaxSize+RandomCrop2242,5422,1842,356
R52Transpose3,333——
R53RandomRotate903,2492,9263,297
R54RandomJigsaw3,076——
R55EnhanceEdge3,095——
R56EnhanceDetail3,118——
R57UnsharpMask2,928——
R58CenterCrop3,4093,0124,796
R59Resize256+Crop3,1112,5812,980
R60Resize224+CropAndPad3,1442,6122,664
R61LetterBox3,151——
R62PadIfNeeded+RandomCrop2243,2402,9583,468
R63Resize224+RGBToBGR3,0592,5512,500
R64Resize224+Dithering617——
R65Resize224+MorphologicalDilation3,082——
R66Resize224+MorphologicalErosion3,067——
R67RandomScale+RandomCrop2242,6732,3022,276
R68Resize224+RandomSizedCrop3,0132,3371,811
R69Resize224+CoarseDropout2,9502,5241,742
R70Resize224+Emboss2,925——
R71Resize224+PixelSpread2,493——
R72Resize224+ShiftScaleRotate2,8231,8151,289

Measurement setup and limits

When a batch arrives late, the GPU sits idle and completes fewer steps in the same time.
When a batch arrives late, the GPU sits idle and completes fewer steps in the same time. Scroll horizontally to see the full chart. Open the image for full size.

The timeline illustrates input stalls with a fixed model step duration.

g2-standard-16, nvidia-l4; 49,999 selected ImageNet JPEGs. Batch size 256, 15 workers, prefetch factor 2; persistent workers enabled. Output: cuda float16, BCHW 256×3×224×224.

Seeds: 137, 138, 139, 140, 141. Each observation follows 30 warm-up batches and times 100 batches, ending with CUDA synchronization. Pipeline construction and worker startup are outside throughput timing; prefetch effects remain. JPEG files are prewarmed, so this measures filesystem reads and decoding with a warm page cache.

NVML samples peak process GPU memory every 50 ms, from pipeline construction through final synchronization and cleanup. Brief peaks can be missed. The measurements include no model and do not establish training speed or augmentation quality. Seeds do not guarantee identical augmentation draws across libraries. Observed ranges describe variation between runs; they are not confidence intervals.

In this published run, DALI Crop includes resizing the short side, and DALI Affine omits rotation and shear.

Run d84d75894f2a0b5ad879c5df1c06ca1ec82690486652c62ed50295a241e19a1a · 2105 measurements · measured source fd09812 · machine-readable results · paper and methodology. This is the run reported in the paper.

Related Pages