Skip to content

Commit 27662c3

Browse files
author
Matt Sokoloff
committed
cleanup
1 parent 3385c99 commit 27662c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/data/metrics/iou.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# type: ignore
2-
from multiprocessing.dummy import Value
32
from typing import Dict, Any, List, Optional, Tuple, Union
43
from shapely.geometry import Polygon
54
from itertools import product
@@ -28,9 +27,10 @@ def mask_miou(predictions: List[NDMask], labels: List[NDMask]) -> float:
2827
Returns:
2928
float indicating iou score
3029
"""
30+
3131
colors_pred = {tuple(pred.mask['colorRGB']) for pred in predictions}
3232
colors_label = {tuple(label.mask['colorRGB']) for label in labels}
33-
error_msg = "segmentation {} being passed to mask_miou should all have the same color. Found {}"
33+
error_msg = "segmentation {} should all have the same color. Found {}"
3434
if len(colors_pred) > 1:
3535
raise ValueError(error_msg.format("predictions", colors_pred))
3636
elif len(colors_label) > 1:

0 commit comments

Comments
 (0)