Merge pull request #1825 from roboflow/feat/support-int-labels
feat(LabelAnnotator): add support for non-str labels
This commit is contained in:
commit
1dd6ff6ce5
|
|
@ -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)):
|
||||
|
|
|
|||
Loading…
Reference in New Issue