Merge pull request #1825 from roboflow/feat/support-int-labels

feat(LabelAnnotator): add support for non-str labels
This commit is contained in:
Piotr Skalski authored and GitHub committed 2025-04-23 08:58:57 +02:00
commit 1dd6ff6ce5
1 file changed
+1 -1
+1 -1
View File
@@ -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)):