Skip to main content

Advanced Anomaly Detection Environment - Deep learning library for state-of-the-art anomaly detection algorithms

Project description

AnomaVision banner

๐Ÿš€ AnomaVision: Edge-Ready Visual Anomaly Detection

Python 3.9โ€“3.12 PyTorch 2.0+ ONNX Ready OpenVINO Ready TorchScript TensorRT Quantization

PyPI Version PyPI Downloads License: MIT

๐Ÿ”ฅ Lightweight, fast, and production-ready anomaly detection โ€” powered by PaDiM. Deploy anywhere: edge devices, servers, or the cloud.


โœจ Features

  • ๐ŸŽฏ State-of-the-art PaDiM algorithm
  • โšก 3ร— faster inference than Anomalib (CPU benchmarks)
  • ๐Ÿ“ฆ Multi-backend exports: PyTorch, ONNX, TorchScript, OpenVINO, TorchRT
  • ๐ŸŽจ Visualizations: anomaly heatmaps, bounding boxes, ROC curves
  • ๐Ÿ–ฅ๏ธ Unified Python + CLI workflows
  • ๐ŸŒ Edge-first design with compact .pth models

๐Ÿ†š Why AnomaVision over Anomalib?

  • โšก 3ร— faster inference on CPU (MVTec & Visa benchmarks)
  • ๐Ÿ“ฆ Smaller models (30 MB vs 40 MB) with lower memory usage
  • ๐ŸŽฏ Higher AUROC across most classes on both MVTec AD and Visa datasets
  • ๐ŸŒ Edge-first design โ†’ optimized for ONNX, TorchScript, and OpenVINO
  • ๐Ÿ›ก๏ธ Production-ready with clean API, CLI, and deployment options

๐Ÿ‘‰ See detailed results in Benchmarks.

๐Ÿ‘‰ Download: AnomaVision vs Anomalib โ€” A Comprehensive Performance Analysis (PDF)


๐Ÿ–ฅ๏ธ C++ Inference with ONNX

AnomaVision isnโ€™t just Python ๐Ÿš€ โ€” it also provides a C++ implementation for ONNX Runtime + OpenCV.

  • โšก Real-time edge inference (~25 FPS on CPU)
  • ๐Ÿ–ผ๏ธ Full pipeline: preprocessing โ†’ inference โ†’ postprocessing โ†’ visualization
  • ๐Ÿ“ฆ Modular design (Config, Preprocessor, ONNXModel, Postprocessor, Visualizer, App)
  • ๐ŸŒ Perfect for edge devices and production environments without Python

๐Ÿ‘‰ See full guide: Quickstart โ€” C++ Inference


๐Ÿ“š Documentation

๐Ÿ“– Full docs are available in the /docs folder.


โšก Quick Example

Train with a config file:

python train.py --config config.yml

## Save:
# Full model โ†’ padim_model.pt
# Compact stats-only model โ†’ padim_model.pth
# Config snapshot โ†’ config.yml

Run detection:

python detect.py --config config.yml

Evaluate performance:

python eval.py --config config.yml

Export to ONNX:

python export.py --config export_config.yml

โžก For more examples, see Quick Start.


๐Ÿ“Š Benchmarks (Summary)

MVTec AD (15 classes)

  • Image AUROC: AV 0.85 โ†‘ vs AL 0.81
  • Pixel AUROC: AV 0.96 โ†‘ vs AL 0.94
  • FPS: AV 43 โ†‘ vs AL 13

Visa (12 classes)

  • Image AUROC: AV 0.81 โ†‘ vs AL 0.78
  • Pixel AUROC: AV 0.96 โ†‘ vs AL 0.95
  • FPS: AV 45 โ†‘ vs AL 13

๐Ÿ“Š Full tables & plots โ†’ Benchmarks


๐Ÿค Contributing

We welcome contributions!


๐Ÿ™ Acknowledgments

AnomaVision is built on top of the excellent Anodet repository. We thank the original authors for their contributions to open-source anomaly detection research, which laid the foundation for this work.


๐Ÿ“œ Citation

If you use AnomaVision in your research, please cite:

@software{anomavision2025,
  title={AnomaVision: Edge-Ready Visual Anomaly Detection},
  author={DeepKnowledge Contributors},
  year={2025},
  url={https://github.com/DeepKnowledge1/AnomaVision},
}

๐Ÿ’ฌ Community & Support


๐Ÿ‘‰ Start with Quick Start and build your first anomaly detection pipeline in 5 minutes!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anomavision-3.0.27.tar.gz (44.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anomavision-3.0.27-py3-none-any.whl (61.2 kB view details)

Uploaded Python 3

File details

Details for the file anomavision-3.0.27.tar.gz.

File metadata

  • Download URL: anomavision-3.0.27.tar.gz
  • Upload date:
  • Size: 44.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.0 Windows/10

File hashes

Hashes for anomavision-3.0.27.tar.gz
Algorithm Hash digest
SHA256 71692ce4ccdd849e86b2c0d4263c097eb6ef2d2a4946afe65091f726acf6d781
MD5 e7c14ead1abd6a0032e88dc5428cd4b2
BLAKE2b-256 33fb8a8619595f7caf446dc1e56605a1cd43a5fda27d687f32dbfb6d830760d3

See more details on using hashes here.

File details

Details for the file anomavision-3.0.27-py3-none-any.whl.

File metadata

  • Download URL: anomavision-3.0.27-py3-none-any.whl
  • Upload date:
  • Size: 61.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.0 Windows/10

File hashes

Hashes for anomavision-3.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 c6177c2e6f6df37ce5c9a5d8705582cef5407a08ad1921aa966c976770e9df03
MD5 a077ea0616b4264b9c34c099a8694eda
BLAKE2b-256 b4bc626f47a87e4c0292f861e4085e09f119b8c807aa6477ea526ceb6183328f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page