From e0c92907af262591d2df090f4920af32223a4955 Mon Sep 17 00:00:00 2001 From: Darius Couchard Date: Wed, 18 Sep 2024 13:19:24 +0200 Subject: [PATCH] Added _parameters to the locally initialized FeatureExtractor/ModelInference object before evaluating the output_labels --- src/openeo_gfmap/features/feature_extractor.py | 1 + src/openeo_gfmap/inference/model_inference.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/openeo_gfmap/features/feature_extractor.py b/src/openeo_gfmap/features/feature_extractor.py index b0a46e3..e5ae6a9 100644 --- a/src/openeo_gfmap/features/feature_extractor.py +++ b/src/openeo_gfmap/features/feature_extractor.py @@ -379,6 +379,7 @@ def apply_feature_extractor_local( ) feature_extractor = feature_extractor_class() + feature_extractor._parameters = parameters output_labels = feature_extractor.output_labels() dependencies = feature_extractor.dependencies() diff --git a/src/openeo_gfmap/inference/model_inference.py b/src/openeo_gfmap/inference/model_inference.py index 080ecf9..88ee03a 100644 --- a/src/openeo_gfmap/inference/model_inference.py +++ b/src/openeo_gfmap/inference/model_inference.py @@ -331,6 +331,7 @@ def apply_model_inference_local( ) model_inference = model_inference_class() + model_inference._parameters = parameters output_labels = model_inference.output_labels() dependencies = model_inference.dependencies()