diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index 1b5b9bee..d42e46d3 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -1130,7 +1130,7 @@ class LabelAnnotator(BaseAnnotator): detections: Detections, custom_labels: Optional[List[str]] ) -> List[str]: if custom_labels is not None: - return custom_labels + return [str(label) for label in custom_labels] labels = [] for idx in range(len(detections)):