From 5f010365400a7e1105a68207a3bc8a4e27fa5c94 Mon Sep 17 00:00:00 2001 From: Hendrik Schreiber Date: Tue, 15 Oct 2024 09:42:51 +0200 Subject: [PATCH] Do not attempt to compile models for inference when loading. --- tempocnn/classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempocnn/classifier.py b/tempocnn/classifier.py index f3908d5..6099696 100644 --- a/tempocnn/classifier.py +++ b/tempocnn/classifier.py @@ -92,7 +92,7 @@ def __init__(self, model_name="fcn"): ) raise e logger.debug(f"Loading model {model_name} from {file}") - self.model = load_model(file) + self.model = load_model(file, compile=False) def estimate(self, data): """