From fa80cdc5ee537e3dade7ecce9b6b2835c5c71a0a Mon Sep 17 00:00:00 2001 From: DeepKnowledge1 Date: Mon, 26 Oct 2026 14:59:52 +0100 Subject: [PATCH] Fix Anomalib model device placement --- scripts/benchmarks/compare_with_anomalib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/benchmarks/compare_with_anomalib.py b/scripts/benchmarks/compare_with_anomalib.py index d1fbaa9..ed0795a 100644 --- a/scripts/benchmarks/compare_with_anomalib.py +++ b/scripts/benchmarks/compare_with_anomalib.py @@ -810,6 +810,7 @@ def _anomalib_preprocess(model, images): def _anomalib_raw(model, images): """Torch model on already pre-processed images, skipping Anomalib's post-processor (min-max normalisation + clamping), like AnomaVision.""" + model.model = model.model.to(images.device) output = model.model(images) if not getattr(model, "_debug_features_printed", False):