Skip to content

Commit

Permalink
Reflect reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
jaegukhyun committed Jul 26, 2023
1 parent 65d7866 commit 5e71721
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Please note, by default, the optimal confidence threshold is detected based on v
.. code-block::
(otx) ...$ otx export --load-weights ../outputs/weights.pth \
--output ../outputs
--output ../outputs \
params \
--postprocessing.confidence_threshold 0.5 \
--postprocessing.result_based_confidence_threshold false
Expand Down
4 changes: 2 additions & 2 deletions src/otx/algorithms/detection/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def __init__(self, task_environment: TaskEnvironment, output_path: Optional[str]
self._anchors: Dict[str, int] = {}

if (
not self._hyperparams.postprocessing.result_based_confidence_threshold
and hasattr(self._hyperparams, "postprocessing")
hasattr(self._hyperparams, "postprocessing")
and not getattr(self._hyperparams.postprocessing, "result_based_confidence_threshold", False)
and hasattr(self._hyperparams.postprocessing, "confidence_threshold")
):
self.confidence_threshold = self._hyperparams.postprocessing.confidence_threshold
Expand Down

0 comments on commit 5e71721

Please sign in to comment.