Skip to content

Commit

Permalink
Fix unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jaegukhyun committed Apr 12, 2023
1 parent 7385752 commit 68e9f27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/algorithms/detection/adapters/mmdet/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ def test_det_evaluate(self) -> None:
def test_det_evaluate_with_empty_annotations(self) -> None:
"""Test evaluate function for detection with empty predictions."""

_config = ModelConfiguration(DetectionConfig(), self.det_label_schema)
_model = ModelEntity(self.det_dataset, _config)
resultset = ResultSetEntity(_model, self.det_dataset, self.det_dataset.with_empty_annotations())
self.det_task.evaluate(resultset)
assert resultset.performance.score.value == 0.0
Expand Down

0 comments on commit 68e9f27

Please sign in to comment.