AlbumentationsX vs Kornia 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.

Kornia against AX on 61 shared recipes, per recipe
Kornia against AX on 61 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,1931,5691,574
R02RandomCrop2243,4181,5911,574
R03RandomResizedCrop3,1611,3651,359
R04HorizontalFlip3,3901,5161,583
R05VerticalFlip3,2451,5081,587
R06Pad+RandomCrop2243,225——
R07Rotate2,9231,0401,584
R08Affine2,9781,0081,594
R09Perspective2,7499751,571
R10Elastic2,1015701,588
R11ColorJitter2,499698331
R12ChannelShuffle3,2231,4831,546
R13Grayscale3,2261,4351,552
R14RGBShift3,0361,4091,552
R15GaussianBlur3,0508861,542
R16GaussianNoise2,2821,2421,556
R17Invert3,3651,4911,560
R18Posterize3,3081,1851,560
R19Solarize3,1911,3761,540
R20Sharpen3,0768851,539
R21AutoContrast2,8591,2911,559
R22Equalize2,7681,1131,559
R23Erasing3,2311,3021,527
R24JpegCompression2,8654761,583
R25RandomGamma3,1951,2391,570
R26PlankianJitter3,0141,3611,546
R27MedianBlur2,9413831,374
R28MotionBlur2,9681,0301,509
R29CLAHE2,1995961,572
R30Brightness3,1751,4571,583
R31Contrast3,1241,3951,570
R32Blur3,1899451,580
R33ChannelDropout3,2601,4401,575
R34LinearIllumination2,7381,3151,597
R35CornerIllumination2,8131,1131,579
R36GaussianIllumination2,6621,0971,566
R37Hue2,7377911,585
R38PlasmaBrightness1,7923491,597
R39PlasmaContrast1,5883471,574
R40PlasmaShadow1,7335781,583
R41Rain2,7021,1301,547
R42SaltAndPepper3,1661,131809
R43Saturation3,0331,3901,588
R44Snow2,4067781,594
R45OpticalDistortion2,7219211,571
R46Shear2,9571,0351,589
R47ThinPlateSpline2,1044691,589
R48PhotoMetricDistort2,439——
R49ColorJiggle2,504701331
R50LongestMaxSize+RandomCrop2242,736928927
R51SmallestMaxSize+RandomCrop2242,542714724
R52Transpose3,333——
R53RandomRotate903,2491,0451,557
R54RandomJigsaw3,0761,3421,566
R55EnhanceEdge3,095——
R56EnhanceDetail3,118——
R57UnsharpMask2,928——
R58CenterCrop3,4091,8301,833
R59Resize256+Crop3,1111,4451,453
R60Resize224+CropAndPad3,144——
R61LetterBox3,151——
R62PadIfNeeded+RandomCrop2243,2401,3851,388
R63Resize224+RGBToBGR3,0591,5351,576
R64Resize224+Dithering617——
R65Resize224+MorphologicalDilation3,0822571,613
R66Resize224+MorphologicalErosion3,0672571,639
R67RandomScale+RandomCrop2242,673869856
R68Resize224+RandomSizedCrop3,0131,1491,568
R69Resize224+CoarseDropout2,9501,3171,571
R70Resize224+Emboss2,925——
R71Resize224+PixelSpread2,493——
R72Resize224+ShiftScaleRotate2,8231,0121,568

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