albucore
High-performance image processing functions for deep learning and computer vision.
What it is and what it does
Albucore is a library of optimized image processing functions designed as the foundation for AlbumentationsX, an image augmentation library. It implements arithmetic operations (multiply, add, power, add_weighted, multiply_add), elementwise math (exp, log, sqrt), and normalization functions that work on images in channel-last format with explicit channel dimensions. The core feature is automatic backend routing: each operation benchmarks across NumPy, OpenCV, NumKong, StringZilla, and eligible PyTorch implementations and selects the fastest path for the given input dtype, size, layout, and channel count.
Most functions support uint8 and float32 dtypes; elementwise operations (exp, log, sqrt) are float32-only. Images must follow strict shape conventions: single images as (H, W, C), batches as (N, H, W, C), and 3D volumes as (D, H, W, C), with channel dimension always required even for grayscale. The library depends on numpy, numkong, and stringzilla at runtime, and requires Python 3.10+. Full functionality also requires a pre-installed PyTorch build (CPU, CUDA, or MPS selected separately) and OpenCV.
Use it for:
- Accelerate image augmentation pipelines in deep learning workflows by routing arithmetic and normalization operations to the fastest available backend.
- Preprocess uint8 or float32 images for computer vision models with automatic dtype-aware optimization.
- Normalize image batches using precomputed statistics (e.g., ImageNet mean/std) via lookup tables for uint8 or fused NumPy operations for float32.
- Apply elementwise transformations (exponential, logarithm, square root) to large float32 image arrays with automatic selection between NumPy and OpenCV.
- Build custom image processing pipelines that adapt to input characteristics without manual backend selection.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Albucore provides optimized atomic image processing functions that automatically select the fastest implementation (NumPy, OpenCV, NumKong, StringZilla, or PyTorch) based on input characteristics for efficient uint8 and float32 image manipulation.
Yes, with conditions. Albucore is actively maintained, has no known vulnerabilities, and offers genuine performance value through automatic backend routing for image operations. Install it if you are building image augmentation or preprocessing pipelines and want to avoid manual optimization. The main friction is the mandatory separate PyTorch installation and the requirement for Python 3.10+; ensure your environment meets these prerequisites before installing.
Install
albucore on PyPI
pip
pip install albucoreuv
uv add albucorepoetry
poetry add albucoreInstalling albucore
Before you install
Low friction: pure Python wheel with three runtime dependencies (numpy, numkong, stringzilla). Actively maintained with a release 1 day old. Requires Python 3.10+ and a separate PyTorch installation; the package itself installs cleanly but full functionality depends on pre-installing a platform-specific PyTorch build.
License in practice
MIT license (permissive): you can use, modify, and distribute Albucore freely in commercial and private projects with minimal restrictions, provided you include the license notice.
Quickstart
pip install albucore numpy
import numpy as np
import albucore
image = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
result = albucore.multiply(image, 1.5)
Requires Python 3.10+. Full functionality requires a separate PyTorch installation (CPU, CUDA, or MPS) before installing Albucore; base install works but current public API requires both OpenCV and PyTorch.
Verify before relying
- Performance improvement magnitude and conditions under which each backend (NumPy, OpenCV, NumKong, StringZilla, PyTorch) is selected
- Whether all documented functions in the description excerpt are fully implemented and stable in version 0.2.13
- Compatibility and performance characteristics with different PyTorch versions and CUDA/MPS configurations
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — numkong, numpy, stringzilla |
| Maintenance | actively maintained — 1 days since the last release |
| First released | |
| Downloads | 3,930,017/month — #2,450 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: albucore-0.2.13-py3-none-any.whl
Keywords: deep learning, image processing
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
numpy-minmaxFinds the minimum and maximum values in a NumPy…
permissive · top 15,000 on PyPI
numkongNumKong provides mixed-precision linear algebra…
permissive · top 15,000 on PyPI
torchPyTorch provides GPU-accelerated tensor…
permissive · top 1,000 on PyPI
opencv-contrib-python-headlessProvides OpenCV's computer vision algorithms…
permissive · top 5,000 on PyPI
BottleneckBottleneck provides fast NumPy array functions…
permissive · top 5,000 on PyPI
qoiA Python wrapper for the QOI (Quite OK Image)…
permissive · top 15,000 on PyPI
vit-pytorchProvides PyTorch implementations of Vision…
permissive · top 15,000 on PyPI
opencv-python-headlessOpenCV Python bindings for computer vision…
permissive · top 1,000 on PyPI
nvidia-cutlass-dsl-libs-coreProvides a Python interface for writing…
unclear · top 5,000 on PyPI