Skip to content

Latest commit

 

History

History
101 lines (67 loc) · 1.53 KB

File metadata and controls

101 lines (67 loc) · 1.53 KB
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 1
---

# 📦 Installation

## 1. Clone the Repository

```bash
git clone https://github.com/DeepKnowledge1/AnomaVision.git
cd AnomaVision
```

## 2. Install Dependencies

### uv (Recommended)

**Create and activate a virtual environment:**

```bash
uv venv --python 3.11 .venv
source .venv/bin/activate        # Windows: .venv\Scripts\Activate.ps1
```

**CPU-only:**

```bash
uv sync --extra cpu
```

**GPU (choose your CUDA version):**

```bash
uv sync --extra cu118   # CUDA 11.8
uv sync --extra cu121   # CUDA 12.1
uv sync --extra cu124   # CUDA 12.4
```

**Install the package in editable mode** (registers the `anomavision` CLI command):

```bash
uv pip install -e .
```

---

pip (Basic CPU-only)

pip install anomavision

Development Mode

For contributors:

uv pip install -e ".[dev]"

3. Optional Backends

  • ONNX Runtime

    pip install onnxruntime onnxruntime-tools
  • OpenVINO

    pip install openvino
  • TensorRT (requires NVIDIA setup) Follow NVIDIA TensorRT Installation Guide.

  • Visualization (Matplotlib)

    pip install matplotlib

4. Verify Installation

Run a quick test to confirm everything is available:

python -c "import anomavision, torch; print('✅ Ready —', torch.__version__)"

# Confirm the CLI is registered
anomavision --help
anomavision train --help
anomavision detect --help
anomavision eval --help
anomavision export --help