diff --git a/luxonis_ml/data/datasets/annotation.py b/luxonis_ml/data/datasets/annotation.py index a4dacdd7..2f85b2ed 100644 --- a/luxonis_ml/data/datasets/annotation.py +++ b/luxonis_ml/data/datasets/annotation.py @@ -376,7 +376,7 @@ def validate_mask(cls, values: Dict[str, Any]) -> Dict[str, Any]: ) except Exception as e: raise ValueError( - f"Failed to load mask from {mask_path}. {str(e)}" + f"Failed to load mask from {mask_path}" ) from e if not isinstance(mask, np.ndarray): raise ValueError(