roboflow / notebooks

Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
https://roboflow.com/models
4.76k stars 742 forks source link

Incompatibility with latest supervision version: no detections_to_voc_xml #236

Open Mehanik opened 6 months ago

Mehanik commented 6 months ago

Search before asking

Notebook name

automated-dataset-annotation-and-evaluation-with-grounding-dino.ipynb

Bug

It seems that in latest supervision version, function detections_to_voc_xml was renamed and its signature was changed.

Correct usage will probably be:

    xml_string = sv.dataset.formats.pascal_voc.detections_to_pascal_voc(
        detections=detections,
        classes=CLASSES,
        filename=image_name, 
        image_shape=image.shape
    )

Environment

supervision==0.17.1

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?