roboflow / roboflow/notebooks

Incompatibility with latest supervision version: no detections_to_voc_xml

Open
#236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Jupyter Notebook
Stars
9.7k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open automated-dataset-annotation-and-evaluation-with-grounding-dino.ipynb and locate the detections_to_voc_xml call. Check the suggested supervision 0.17.1 Pascal VOC usage, then run the notebook to confirm annotation export works; done means the notebook no longer calls the unavailable function.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.