avoid rare divide by zero

This commit is contained in:
Blake Blackshear 2022-02-06 13:28:53 -06:00 committed by Nick Mowen
parent ae43fefa20
commit ae3e96d313

View File

@ -604,6 +604,7 @@ def add_mask(mask, mask_img):
) )
cv2.fillPoly(mask_img, pts=[contour], color=(0)) cv2.fillPoly(mask_img, pts=[contour], color=(0))
def load_labels(path, encoding="utf-8"): def load_labels(path, encoding="utf-8"):
"""Loads labels from file (with or without index numbers). """Loads labels from file (with or without index numbers).
Args: Args: