From 13a31d9de9f74a3a39b8abd9797b871b6253c3a1 Mon Sep 17 00:00:00 2001 From: mbsantiago Date: Thu, 19 Mar 2026 01:28:05 +0000 Subject: [PATCH] Do not sync with model in loading from checkpoint otherwise device clash --- src/batdetect2/api_v2.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/batdetect2/api_v2.py b/src/batdetect2/api_v2.py index a714ec6..9f013b8 100644 --- a/src/batdetect2/api_v2.py +++ b/src/batdetect2/api_v2.py @@ -583,10 +583,6 @@ class BatDetect2API: transform=output_transform, ) - model.preprocessor = preprocessor - model.postprocessor = postprocessor - model.targets = targets - return cls( model_config=model_config, audio_config=audio_config,