[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.




Uh oh!
There was an error while loading. Please reload this page.
-
🚀 Added
New methods in
sv.DetectionsAPI:from_transformers- convert Object Detection 🤗 Transformer result intosv.Detectionsfrom_detectron2- convert Detectron2 result intosv.Detectionsfrom_coco_annotations- convert COCO annotation intosv.Detectionsarea- dynamically calculated property storing bbox areawith_nms- initial implementation (only class agnostic) ofsv.DetectionsNMS🌱 Changed
sv.Detections.confidencefieldOptional.🏆 Contributors
This discussion was created from the release [0.3.0] - 2023-03-06.
Beta Was this translation helpful? Give feedback.
All reactions