Skip to content

Commit

Permalink
Update src/anomalib/metrics/per_image/pimo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcbertoldo committed Jul 8, 2024
1 parent c92a6a9 commit 1cde9ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/anomalib/metrics/per_image/pimo.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,7 @@ def aupimo_scores(
Returns:
tuple[PIMOResult, AUPIMOResult]: PIMO and AUPIMO results dataclass objects. See `PIMOResult` and `AUPIMOResult`.
"""
_validate_is_anomaly_maps(anomaly_maps)
anomaly_maps_array = anomaly_maps.detach().cpu().numpy()

_validate_is_masks(masks)
masks_array = masks.detach().cpu().numpy()

if paths is not None:
Expand Down

0 comments on commit 1cde9ce

Please sign in to comment.