Skip to content

Commit 12ee177

Browse files
committed
DCO Remediation Commit for AymanL <40838419+AymanL@users.noreply.github.com>
I, AymanL <40838419+AymanL@users.noreply.github.com>, hereby add my Signed-off-by to this commit: be31e64 Signed-off-by: AymanL <40838419+AymanL@users.noreply.github.com>
1 parent e56a919 commit 12ee177

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

monai/metrics/frd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ def get_frd_score(y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
6666
ValueError: When either tensor has more than 2 dimensions. Inputs must have
6767
shape (number of samples, number of features).
6868
"""
69+
if y_pred.ndimension() > 2 or y.ndimension() > 2:
70+
raise ValueError("Inputs should have (number images, number of features) shape.")
6971
return get_fid_score(y_pred, y)

0 commit comments

Comments
 (0)