Metadata-Version: 2.5
Name: anomavision
Version: 3.6.1
Summary: Advanced Anomaly Detection Environment - Production Ready
Author-email: Deep Knowledge <Deepp.Knowledge@gmail.com>
License: MIT
License-File: LICENSE
Keywords: PaDim,anomaly,anomaly-detection,computer-vision,vision
Requires-Python: <3.13,>=3.10
Requires-Dist: easydict==1.13
Requires-Dist: fastapi>=0.127.0
Requires-Dist: gradio>=6.3.0
Requires-Dist: matplotlib==3.8.3
Requires-Dist: numpy==1.26.4
Requires-Dist: onnx>=1.15.0
Requires-Dist: onnxruntime>=1.16.0
Requires-Dist: onnxscript>=0.6.2
Requires-Dist: opencv-python>=4.6.0
Requires-Dist: openvino-dev>=2024.0
Requires-Dist: pydantic>=2.12.5
Requires-Dist: pytest>=8.0.2
Requires-Dist: python-multipart==0.0.20
Requires-Dist: scikit-image==0.22.0
Requires-Dist: scikit-learn<1.4,>=1.2
Requires-Dist: streamlit>=1.52.2
Requires-Dist: tqdm>=4.67.1
Requires-Dist: uvicorn>=0.30.0
Provides-Extra: cpu
Requires-Dist: torch>=2.4.0; extra == 'cpu'
Requires-Dist: torchaudio>=2.4.0; extra == 'cpu'
Requires-Dist: torchvision>=0.19.0; extra == 'cpu'
Provides-Extra: cu118
Requires-Dist: torch>=2.4.0; extra == 'cu118'
Requires-Dist: torchaudio>=2.4.0; extra == 'cu118'
Requires-Dist: torchvision>=0.19.0; extra == 'cu118'
Provides-Extra: cu121
Requires-Dist: torch>=2.4.0; extra == 'cu121'
Requires-Dist: torchaudio>=2.4.0; extra == 'cu121'
Requires-Dist: torchvision>=0.19.0; extra == 'cu121'
Provides-Extra: cu124
Requires-Dist: torch>=2.4.0; extra == 'cu124'
Requires-Dist: torchaudio>=2.4.0; extra == 'cu124'
Requires-Dist: torchvision>=0.19.0; extra == 'cu124'
Provides-Extra: dev
Requires-Dist: black==24.2.0; extra == 'dev'
Requires-Dist: flake8==7.0.0; extra == 'dev'
Requires-Dist: pre-commit==3.6.2; extra == 'dev'
Requires-Dist: pytest==8.0.2; extra == 'dev'
Description-Content-Type: text/markdown

# AnomaVision

<p align="center">
  <img src="docs/images/banner.png" width="100%" alt="AnomaVision banner"/>
</p>

<p align="center"><strong>Simple visual anomaly detection from normal images.</strong></p>

AnomaVision is a production-oriented computer vision toolkit for detecting **defects and unusual patterns** from normal images.

Supported methods:
- **PaDiM**
- **PatchCore**
- **EfficientAD**

It supports training, evaluation, threshold calibration, ONNX/OpenVINO/TensorRT export where supported, KV260/XModel deployment, and **production data-drift monitoring**.

## Quick start

### Install

```bash
git clone https://github.com/DeepKnowledge1/AnomaVision.git
cd AnomaVision
uv venv --python 3.11 .venv
source .venv/bin/activate        # Windows: .venv\\Scripts\\Activate.ps1
uv sync --extra cpu
```

### Train

```bash
anomavision train --config config.yml
```

### Detect

```bash
anomavision detect --config config.yml --img_path ./dataset/bottle/test
```

### Export

```bash
anomavision export --config config.yml --format onnx
```

---

## Production data drift

Production data-drift monitoring is available as an optional observer around anomaly detection.

See the [Production Data Drift guide](docs/anomaly_detection_production_data_drift.md) for setup, reference generation, metrics, dashboard, and troubleshooting.
---

## KV260 support

AnomaVision supports a **Vitis AI workflow for PaDiM and PatchCore on the AMD/Xilinx Kria KV260**. XModel compilation has been validated in the Vitis AI environment; final on-device validation requires the physical hardware.

## Documentation

| Topic | Guide |
|---|---|
| Quick start | [docs/quickstart.md](docs/quickstart.md) |
| Installation | [docs/installation.md](docs/installation.md) |
| CLI / configuration | [docs/cli.md](docs/cli.md), [docs/config.md](docs/config.md) |
| Python API | [docs/api.md](docs/api.md) |
| **Production data drift** | [docs/anomaly_detection_production_data_drift.md](docs/anomaly_detection_production_data_drift.md) |
| KV260 / XModel | [docs/kv260_xmodel.md](docs/kv260_xmodel.md) |
| Production deployment | [docs/production_deployment.md](docs/production_deployment.md) |
| Benchmarks | [docs/benchmark.md](docs/benchmark.md) |
| Troubleshooting | [docs/troubleshooting.md](docs/troubleshooting.md) |

## License

AnomaVision is released under the **MIT License**. See [LICENSE](LICENSE).
