Kornia-Augment-Bench
Fast Vision: GPU Benchmarks & vision augmentations
Created on 17th January 2026
•
Kornia-Augment-Bench
Fast Vision: GPU Benchmarks & vision augmentations
The problem Kornia-Augment-Bench solves
Kornia is built to be incredibly fast, but right now, we don’t have a simple, automatic way to prove it or keep it that way. When we update the code, we can't always tell if we’ve accidentally made it slower. Also, developers often wonder, "Is Kornia actually faster than other libraries like Albumentations?" Without clear data, they just have to take our word for it.
How This Project Helps
This project creates a "speed test" for Kornia that helps in three big ways:
Showing the GPU Advantage: Instead of just saying it’s faster, we’ll provide real numbers. We want to show how moving the heavy lifting to the GPU lets the CPU focus on just loading data, making the whole system run smoother.
A "Safety Net" for Code: We’ll build this test right into our development process (CI/CD). If a new update accidentally slows things down, the system will flag it immediately so we can fix it before it reaches users.
Building Trust: By showing a side-by-side comparison of "images processed per second" on different hardware, we give developers the data they need to feel 100% confident using Kornia for their high-speed projects.
Challenges I ran into
Measuring "True" GPU Speed: On a GPU, tasks often start before the previous one finishes, which can make it look faster than it actually is. I’ll need to use specific "stopwatch" commands to make sure I’m measuring the full time the work actually takes.
Comparing Apples to Apples: Kornia lives on the GPU, while other libraries like Albumentations work on the CPU. To compare them fairly, I have to account for the time it takes to move data between the two. Otherwise, the results won't tell the whole story.
Different Computers, Different Results: A test run on a free Google Colab notebook will look very different from one run on a high-end gaming PC. To fix this, I’m going to use "containers" (like Docker) to create a standard, identical environment so the results are consistent no matter where they are run.
Keeping Things Fast for Developers: If our speed tests take an hour to run every time someone updates the code, it will slow down the whole team. My goal is to create a "lightweight" version of these tests that gives quick, helpful feedback in just a few minutes.
Tracks Applied (1)
AOPS
Technologies used