Skip to content

Commit

Permalink
Added _parameters to the locally initialized FeatureExtractor/ModelIn…
Browse files Browse the repository at this point in the history
…ference object before evaluating the output_labels
  • Loading branch information
GriffinBabe committed Sep 18, 2024
1 parent 5e00159 commit e0c9290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/openeo_gfmap/features/feature_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
1 change: 1 addition & 0 deletions src/openeo_gfmap/inference/model_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit e0c9290

Please sign in to comment.