Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix anomaly wrapper configuration #513

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions geti_sdk/deployment/deployed_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,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
Loading