Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kprokofi committed Oct 16, 2024
1 parent 8104a7c commit 779cc8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/otx/core/metrics/average_precision_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def reset(self) -> None:
super().reset()
self.preds: list[dict[str, np.array]] = []
self.targets: list[dict[str, np.array]] = []
self.mean_ap.reset()

Check warning on line 48 in src/otx/core/metrics/average_precision_3d.py

View check run for this annotation

Codecov / codecov/patch

src/otx/core/metrics/average_precision_3d.py#L48

Added line #L48 was not covered by tests

def update(self, preds: list[dict[str, Tensor]], target: list[dict[str, Tensor]]) -> None:
"""Update total predictions and targets from given batch predicitons and targets."""
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/cli/test_export_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def fxt_local_seed() -> int:
"zero_shot_visual_prompting": "test/f1-score",
"action_classification": "test/accuracy",
"keypoint_detection": "test/PCK",
"object_detection_3d": "test/mAP_bbox_3d",
"object_detection_3d": "test/[email protected]",
}


Expand Down

0 comments on commit 779cc8f

Please sign in to comment.