Skip to content

Commit

Permalink
Merge branch 'main' into fix-instance-segmentation-label-id-parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcornel authored Oct 29, 2024
2 parents a021417 + e56c195 commit be64892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geti_sdk/deployment/deployed_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,9 @@ def get_model_config(self) -> Dict[str, Any]:
continue
except ValueError:
pass
if value in ["false", "False", "FALSE"]:
if isinstance(value, str) and value.lower() in ["false", "no"]:
value = False
elif value in ["true", "True", "TRUE"]:
elif isinstance(value, str) and value.lower() in ["true", "yes"]:
value = True
config[child.tag] = value
return config
Expand Down

0 comments on commit be64892

Please sign in to comment.