Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

display both shapes rather than just one (#454)

Jakub Langr8e8c6135e056
diff --git a/kornia/utils/metrics/mean_iou.py b/kornia/utils/metrics/mean_iou.py
index ce87bd014..d68b75079 100644
--- a/kornia/utils/metrics/mean_iou.py
+++ b/kornia/utils/metrics/mean_iou.py
@@ -35,7 +35,7 @@ def mean_iou(
"torch.int64 dtype. Got {}".format(type(target)))
if not input.shape == target.shape:
raise ValueError("Inputs input and target must have the same shape. "
- "Got: {}".format(input.shape, target.shape))
+ "Got: {} and {}".format(input.shape, target.shape))
if not input.device == target.device:
raise ValueError("Inputs must be in the same device. "
"Got: {} - {}".format(input.device, target.device))