laclouis5 / globox

A package to read and convert object detection datasets (COCO, YOLO, PascalVOC, LabelMe, CVAT, OpenImage, ...) and evaluate them with COCO and PascalVOC metrics.
MIT License
182 stars 23 forks source link

The document tutorial is not detailed enough #50

Open monkeycc opened 2 days ago

monkeycc commented 2 days ago
  1. How to call AnnotationSet NameError: name 'AnnotationSet' is not defined. Did you mean: 'annotations'?

  2. How to call Annotation annotation = Annotation.from_labelme(file_path="path/to/file.xml")

  3. I want to convert coco to yolo and coco to labelme. How to implement the code method

laclouis5 commented 15 hours ago

Hi @monkeycc,

You can import the different classes using the standard import statement: from globox import AnnotationSet. You can also import globox and then use Ann = globox.AnnotationSet(...).

Your other questions are covered in the documentation, take a look at the README file of the repo. There are methods on AnnotationSet to parse YOLO annotations and to convert them to other formats such as COCO and LabelMe.