Skip to content

Incompatibility with latest supervision version: no detections_to_voc_xml #236

Open
@Mehanik

Description

@Mehanik

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

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?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions