Merge pull request #1825 from roboflow/feat/support-int-labels
feat(LabelAnnotator): add support for non-str labels
This commit is contained in:
1 file changed
+1
-1
@@ -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)):
|
||||
|
||||
Reference in new issue
Block a user