[0.3.0] - 2023-03-06 #37
Replies: 3 comments 9 replies
-
In the I get this error: AttributeError: type object 'Detections' has no attribute 'from_coco_annotations' |
Beta Was this translation helpful? Give feedback.
-
But if I change it like this : detections = sv.DetectionDataset.from_coco(images_directory_path=TRAIN_DIRECTORY, Then i will get error for the labels: we will use id2label function for trainingcategories = TRAIN_DATASET.coco.cats ValueError: not enough values to unpack (expected 4, got 3) |
Beta Was this translation helpful? Give feedback.
-
I solved similar errors with this code: |
Beta Was this translation helpful? Give feedback.
-
🚀 Added
New methods in
sv.Detections
API:from_transformers
- convert Object Detection 🤗 Transformer result intosv.Detections
from_detectron2
- convert Detectron2 result intosv.Detections
from_coco_annotations
- convert COCO annotation intosv.Detections
area
- dynamically calculated property storing bbox areawith_nms
- initial implementation (only class agnostic) ofsv.Detections
NMS🌱 Changed
sv.Detections.confidence
fieldOptional
.🏆 Contributors
This discussion was created from the release [0.3.0] - 2023-03-06.
Beta Was this translation helpful? Give feedback.
All reactions