We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece3889 commit 469a767Copy full SHA for 469a767
otx/algorithms/detection/task.py
@@ -117,7 +117,7 @@ def _load_postprocessing(self, model_data):
117
"""
118
loaded_postprocessing = model_data.get("config", {}).get("postprocessing", {})
119
hparams = self._hyperparams.postprocessing
120
- if hasattr(loaded_postprocessing, "use_ellipse_shapes"):
+ if "use_ellipse_shapes" in loaded_postprocessing:
121
hparams.use_ellipse_shapes = loaded_postprocessing["use_ellipse_shapes"]["value"]
122
else:
123
hparams.use_ellipse_shapes = False
0 commit comments