Detections loaded with sv.DetectionDataset.from_yolo
annotate class IDs instead of class names with sv.LabelAnnotator
#1772
Labels
bug
Something isn't working
Search before asking
Bug
What's the problem?
sv.Detections
with something like this:When we use
sv.LabelAnnotator
with thesedetections
, we get the following output:sv.DetectionDataset.from_yolo
loads the dataset and stores the labels assv.Detections
When we use
sv.LabelAnnotator
with thesedetections
, we get the following output:What's the expected result?
How to fix the problem?
Please see the Minimal Reproducible Example.
Environment
Minimal Reproducible Example
Note: Please run the code in a notebook to use functions such as
display
.Common code
Annotate
detections
fromsv.Detections.from_inference
Annotate
detections
fromsv.DetectionDataset.from_yolo
How to Fix?
We need to add the
data
in the detections.Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: