Updated BUILD and tests

This commit is contained in:
kinaryml
2022-09-29 02:03:07 -07:00
parent d25626ff63
commit 63e0c04253
2 changed files with 2 additions and 11 deletions
@@ -45,13 +45,6 @@ _MASK_MAGNIFICATION_FACTOR = 10
_MATCH_PIXELS_THRESHOLD = 0.01
def _iou(ground_truth, prediction):
intersection = np.logical_and(ground_truth, prediction)
union = np.logical_or(ground_truth, prediction)
iou = np.sum(intersection) / np.sum(union)
return iou
class ModelFileType(enum.Enum):
FILE_CONTENT = 1
FILE_NAME = 2