From 13c4d964ee2dbd846f5ab42bfcb07079661b0625 Mon Sep 17 00:00:00 2001 From: ljcornel Date: Wed, 19 Jun 2024 10:27:51 +0200 Subject: [PATCH] Fix model_group_id assignment in DeployedModel deserialization --- geti_sdk/deployment/deployed_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geti_sdk/deployment/deployed_model.py b/geti_sdk/deployment/deployed_model.py index 708b7303..daeee19b 100644 --- a/geti_sdk/deployment/deployed_model.py +++ b/geti_sdk/deployment/deployed_model.py @@ -402,9 +402,9 @@ def from_model_and_hypers( model_dict.update({"hyper_parameters": hyper_parameters}) model_group_id = model_dict.pop("model_group_id", None) deployed_model = cls(**model_dict) + deployed_model.model_group_id = model_group_id try: base_url = model.base_url - deployed_model.model_group_id = model_group_id deployed_model.base_url = base_url except ValueError: pass