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.

  • The majority of 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.

Anomalib in 15 Minutes

Guides#

Reference Guide

Learn more about anomalib API and CLI.

Reference Guide
How-To Guide

Learn how to use anomalib for your anomaly detection tasks.

How to Guide
Topic Guide

Learn more about the internals of anomalib.

Topic Guide
Developer Guide

Learn how to develop and contribute to anomalib.

Developer Guide