Compare commits

..

4 Commits
v0.1.4 ... main

Author SHA1 Message Date
34e05476ba add hint for missing models 2025-11-21 07:17:31 +01:00
9f5ea4af5f bump to v0.1.5 2025-11-21 07:08:24 +01:00
507e94a73f add dep dotenv to please anomalib, closes #18 2025-11-21 07:04:42 +01:00
6e3192885b adapted anomaly threshold constant based on tests (#19)
ANOMALY_THRESHOLD changed

Co-authored-by: frasu <frasu@noreply.localhost>
Reviewed-on: #19
2025-11-21 05:58:46 +00:00
4 changed files with 21 additions and 6 deletions

16
pdm.lock generated
View File

@ -5,7 +5,7 @@
groups = ["default", "dev", "lint", "nb", "tests"]
strategy = ["inherit_metadata"]
lock_version = "4.5.0"
content_hash = "sha256:80c4f12ed395aff33031d8f355fb80685376a4283dc025567f8a8f3ab45e77c1"
content_hash = "sha256:68a0d82fb8cdbb8c525191dfbd6b290c14ccb7b60e44ae1d07760f21fe43bb5e"
[[metadata.targets]]
requires_python = ">=3.11,<3.14"
@ -901,6 +901,18 @@ files = [
{file = "dopt_basics-0.2.4.tar.gz", hash = "sha256:c21fbe183bec5eab4cfd1404e10baca670035801596960822d0019e6e885983f"},
]
[[package]]
name = "dotenv"
version = "0.9.9"
summary = "Deprecated package"
groups = ["default"]
dependencies = [
"python-dotenv",
]
files = [
{file = "dotenv-0.9.9-py2.py3-none-any.whl", hash = "sha256:29cf74a087b31dafdb5a446b6d7e11cbce8ed2741540e2339c69fbef92c94ce9"},
]
[[package]]
name = "einops"
version = "0.8.1"
@ -3161,7 +3173,7 @@ name = "python-dotenv"
version = "1.1.1"
requires_python = ">=3.9"
summary = "Read key-value pairs from a .env file and set them as environment variables"
groups = ["dev"]
groups = ["default", "dev"]
files = [
{file = "python_dotenv-1.1.1-py3-none-any.whl", hash = "sha256:31f23644fe2602f88ff55e1f5c79ba497e01224ee7737937930c448e4d0e24dc"},
{file = "python_dotenv-1.1.1.tar.gz", hash = "sha256:a8a6399716257f45be6a007360200409fce5cda2661e3dec71d23dc15f6189ab"},

View File

@ -1,11 +1,11 @@
[project]
name = "dopt-sensor-anomalies"
version = "0.1.4"
version = "0.1.5"
description = "anomaly detection for sensor images for quality assurance processes"
authors = [
{name = "d-opt GmbH (resp.: Florian Foerster)", email = "f.foerster@d-opt.com"},
]
dependencies = ["imutils>=0.5.4", "dopt-basics>=0.2.4", "numpy>=2.2.6", "open-clip-torch>=3.2.0", "anomalib==2.1.0"]
dependencies = ["imutils>=0.5.4", "dopt-basics>=0.2.4", "numpy>=2.2.6", "open-clip-torch>=3.2.0", "anomalib==2.1.0", "dotenv>=0.9.9"]
requires-python = "<3.14,>=3.11"
readme = "README.md"
license = {text = "LicenseRef-Proprietary"}
@ -77,7 +77,7 @@ directory = "reports/coverage"
[tool.bumpversion]
current_version = "0.1.4"
current_version = "0.1.5"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.

View File

@ -9,7 +9,7 @@ THRESHOLD_BW: Final[int] = 63
BACKBONE: Final[str] = "wide_resnet50_2"
LAYERS: Final[tuple[str, ...]] = ("layer1", "layer2", "layer3")
RATIO: Final[float] = 0.01
ANOMALY_THRESHOLD: Final[float] = 0.2
ANOMALY_THRESHOLD: Final[float] = 0.14
NUM_VALID_ELECTRODES: Final[int] = 6
HEATMAP_FILENAME_SUFFIX: Final[str] = "_Heatmap"

3
tests/_models/README.md Normal file
View File

@ -0,0 +1,3 @@
**PLACE MODELS IN THIS FOLDER**
The model files are too large. Download the files from our internal distribution channel (primarily cloud).