Skip to content

Fix/benchmark numpy compatibility - #186

Merged
DeepKnowledge1 merged 2 commits into
mainfrom
fix/benchmark-numpy-compatibility
Oct 22, 2026
Merged

DeepKnowledge1 merged 2 commits into
mainfrom
fix/benchmark-numpy-compatibility

Conversation

@DeepKnowledge1

Copy link
Copy Markdown
Owner

🔗 Related Issue

Fixes #

📝 Description

  • Fix NumPy compatibility by replacing np.trapezoid() with np.trapz() in the AUPRO calculation.
  • Include expanded image-level and pixel-level anomaly detection metrics for research evaluation.
  • Add benchmark reporting for model efficiency, including latency, throughput, training time, memory usage, and model size.

🔄 Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📖 Documentation update
  • 🏗️ Infrastructure / CI/CD update

🧪 Hardware & Matrix Testing

I have successfully built and tested this code using uv on:

  • anomavision[cpu] (Standard/Edge)
  • anomavision[cu121] (CUDA 12.1)
  • anomavision[cu124] (CUDA 12.4)
  • anomavision[cu118] (CUDA 11.8)

Host OS used for testing:

  • Linux / Ubuntu
  • Windows (Native or WSL2)
  • macOS

✅ Developer Checklist

  • My code follows the core style guidelines of this project (Ruff/Black formatting).
  • I have run uv run pytest and all unit tests pass locally.
  • Lockfile Guard: If I added or modified a dependency in pyproject.toml, I have run uv lock --python 3.10 and committed the updated uv.lock file.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the documentation accordingly (if applicable).

📸 Screenshots / Visual Proof (Optional)

Not applicable — benchmark script update.

@DeepKnowledge1
DeepKnowledge1 merged commit 9ef965a into main Oct 22, 2026
5 checks passed
@DeepKnowledge1
DeepKnowledge1 deleted the fix/benchmark-numpy-compatibility branch October 22, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant