Library / SDK
open-edge-platform/anomalib avatar
open-edge-platform/anomalib

Anomalib pins Lightning out of two releases and defaults checkpoint loading to weights_only

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.

6,416 stars1,045 forksPythonApache-2.0

At a glance

What is it?
Anomalib is a Python anomaly detection library built on Lightning and PyTorch, with extras for CPU, CUDA, ROCm and XPU, OpenVINO export for most models, and a v2.7.0 release that defaults checkpoint loading to weights_only=True.
Who is it for?
Anomalib fits teams already running PyTorch over images or video that want OpenVINO export on Intel hardware. Before pinning it, check your interpreter against the 3.10 to 3.12 classifiers, check that your PyTorch is 2.10 or newer (ROCm 2.13+), as v2.7.0 requires, and read the extras table instead of assuming a plain install gives you a GPU build.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • open-edge-platform/anomalib6,416 ★ · +221
Star history
Repository2026-09-232026-11-22
open-edge-platform/anomalib6.2k6.4k

221 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Tabular.from_file() now rejects pickle and hdf

The latest release is v2.7.0, a minor release that adds new models (MH-PatchCore, RAD and FoundAD) and hardens checkpoint and path handling. Checkpoint loading now defaults to weights_only=True, and when a dataset root is set, metadata paths must resolve under that root. It also removes APIs scheduled for 2.7.0: the legacy ONNX exporter (dynamo=False) is gone in favour of dynamo=True with anomalib[openvino], pre-timm ViT checkpoint migration is no longer supported, and the minimum PyTorch is 2.10+ (ROCm 2.13+).

The extras table is the only place backends are declared

A bare install pulls PyTorch under its default behavior, which the project says usually works for CPU and standard CUDA setups. Everything else starts with an extra: [cpu] for the default, [cu126] for CUDA 12.6 on Linux or Windows with an NVIDIA GPU, [cu130] for CUDA 13.0, [rocm] for AMD GPUs on Linux, and [xpu] for Intel GPUs on Linux or Windows. A second family of extras adds features rather than hardware: [openvino] for Intel optimization, [clip] for the winclip vision-language model, [vlm] for other vision-language backends, [loggers] for experiment tracking with wandb and comet, [notebooks] for Jupyter, and [full] for everything at once. They combine:

bash
# Example: Install with OpenVINO support and CUDA 13.0
uv pip install "anomalib[openvino,cu130]"

# Example: Install all optional dependencies for a CPU-only setup
uv pip install "anomalib[full,cpu]"

A contributor path exists too, using the lock file for reproducible environments:

bash
git clone https://github.com/open-edge-platform/anomalib.git
cd anomalib

# Create the virtual environment
uv venv

# Sync with the lockfile for a specific backend (e.g., CPU)
uv sync --extra cpu

A Lightning pin blocks two releases over a supply chain attack

pyproject.toml requires lightning>=2.6 and explicitly excludes versions 2.6.2 and 2.6.3, with an inline comment naming a malicious supply chain attack. That is an unusual thing to find in a dependency list, and it has a cost. Any environment that resolves Lightning to those two versions is rejected outright instead of being routed around. The same file pins jsonargparse[signatures] between 4.27.7 and 4.47.0, so a breaking release above that ceiling is blocked as well. Both bounds mean the resolver can fail to find a working combination on a machine that already carries other constraints, and no documented flag exists for relaxing either one.

Four example trees split API, CLI, configs and notebooks

Examples are organized as examples/api/, examples/cli/, examples/configs/ and examples/notebooks/, which mirrors the API and CLI named in the feature list. The CLI stack comes from omegaconf, jsonargparse[signatures], docstring_parser and rich_argparse, so configuration files and terminal output are treated as first class rather than bolted on. The rest of the tree is wider than a plain library: application/, tools/, docs/, tests/, tox.ini, uv.lock, a pre-commit config, semgrep and trufflehog ignore files, plus governance entries such as MAINTAINERS.md and GOVERNANCE.md. The inference tools the feature list points at live under tools/.

OpenVINO export is promised for the majority of models

The feature list says the majority of models can be exported to OpenVINO Intermediate Representation for accelerated inference on Intel hardware. The word majority carries the caveat. If your deployment target is an Intel CPU or GPU, export for your chosen model has to be verified before you commit to it. On AMD or NVIDIA hardware that sentence offers nothing, since the acceleration path described is Intel only, and the [openvino] extra is described purely as an Intel optimization rather than a general converter.

Python 3.10 to 3.12 is the declared support range

requires-python is set to >=3.10 and the classifiers stop at 3.12, listing 3.10, 3.11 and 3.12. There is no classifier for 3.13, so the newest interpreter is undeclared even though the lower bound technically accepts it. Packaging uses the hatchling backend and declares the version field as dynamic rather than writing a number into the metadata you can read.

The description promises more than the feature list covers

The project summary names experiment management, hyper-parameter optimization and edge inference as headline features. The feature list itself covers something narrower: a modular API and CLI for training, inference and benchmarking, a collection of ready-to-use algorithms and benchmark datasets, Lightning based model implementations, OpenVINO export, and a set of inference tools. In the visible install docs, experiment tracking surfaces as an optional [loggers] extra for wandb and comet; check the docs site at anomalib.readthedocs.io for tuning and edge-inference details.

Editorial conclusion

Anomalib fits teams already running PyTorch over images or video that want OpenVINO export on Intel hardware. Before pinning it, check your interpreter against the 3.10 to 3.12 classifiers, check that your PyTorch is 2.10 or newer (ROCm 2.13+), as v2.7.0 requires, and read the extras table instead of assuming a plain install gives you a GPU build.

Frequently asked questions

How do you install anomalib and pick a hardware backend?

It is on PyPI, so `uv pip install anomalib` or `pip install anomalib` covers CPU and standard CUDA setups. Named extras cover the rest: `[cpu]`, `[cu126]`, `[cu130]`, `[rocm]` for AMD on Linux, and `[xpu]` for Intel GPUs on Linux or Windows.

How do you use anomalib for a first training run?

The feature list describes a modular API and CLI for training, inference and benchmarking, with worked examples under examples/api/, examples/cli/, examples/configs/ and examples/notebooks/.

Can AI detect anomalies in industrial images with anomalib?

The library is deep learning throughout. Model implementations are Lightning based, the algorithms are described as state-of-the-art ones from recent literature, and the focus is visual anomaly detection, meaning detecting or localizing anomalies inside images or videos in a dataset.

What is the purpose of anomaly detection in anomalib?

Anomalib collects ready-to-use anomaly detection algorithms so they can be benchmarked on public and private datasets, and it ships tools for building custom models on top. New algorithms and training or inference extensions are added over time.

Official sources

  1. License: Apache-2.0
  2. open-edge-platform/anomalib on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/open-edge-platform-anomalib.svg)](https://hysenlabs.com/projects/open-edge-platform-anomalib)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/open-edge-platform-anomalib.svg)](https://hysenlabs.com/projects/open-edge-platform-anomalib)

Was this useful?