Anomalib Documentation

Anomalib Documentation#

Anomalib is a deep learning library that aims to collect state-of-the-art anomaly detection algorithms for benchmarking on both public and private datasets. Anomalib provides several ready-to-use implementations of anomaly detection algorithms described in the recent literature, as well as a set of tools that facilitate the development and implementation of custom models. The library has a strong focus on visual anomaly detection, where the goal of the algorithm is to detect and/or localize anomalies within images or videos in a dataset. Anomalib is constantly updated with new algorithms and training/inference extensions, so keep checking!

  Key Features
  • Simple and modular API and CLI for training, inference, benchmarking, and hyperparameter optimization.

  • The largest public collection of ready-to-use deep learning anomaly detection algorithms and benchmark datasets.

  • Lightning based model implementations to reduce boilerplate code and limit the implementation efforts to the bare essentials.

  • All models can be exported to OpenVINO Intermediate Representation (IR) for accelerated inference on intel hardware.

  • A set of inference tools for quick and easy deployment of the standard or custom anomaly detection models.

Installation#

Anomalib provides two ways to install the library. The first is through PyPI, and the second is through a local installation. PyPI installation is recommended if you want to use the library without making any changes to the source code. If you want to make changes to the library, then a local installation is recommended.

pip install anomalib
# Use of virtual environment is highy recommended
# Using conda
yes | conda create -n anomalib_env python=3.10
conda activate anomalib_env

# Or using your favorite virtual environment
# ...

# Clone the repository and install in editable mode
git clone https://github.com/openvinotoolkit/anomalib.git
cd anomalib
pip install -e .

Get Started#

Anomalib in 15 minutes

Get started with anomalib in 15 minutes.

Guides#

Reference Guide

Learn more about anomalib API and CLI.

How-To Guide

Learn how to use anomalib for your anomaly detection tasks.

Topic Guide

Learn more about the internals of anomalib.

Developer Guide

Learn how to develop and contribute to anomalib.