Skip to content

DagsHub/dagshub-annotation-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

148 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DagsHub Annotation Converter

This package is intended to be a multi-type importer/exporter/converter between different annotation formats.

This package is currently in development and has not that many features implemented. The API is not stable and is subject to change.

The package consists of the Intermediary Representation (IR) annotation format in Python Objects, and importers/exporters for different annotation formats.

Installation

pip install dagshub-annotation-converter

Importers (Image):

from dagshub_annotation_converter.formats.label_studio.task import LabelStudioTask
task_obj = LabelStudioTask.from_json("path/to/label_studio_task.json")

annotations = task_obj.to_ir_annotations()

Exporters (Image):

Experimental Features:

The package contains some experimental features that can be toggled on by setting a corresponding environment variable:

  • DAGSHUB_ANNOTATION_EXPERIMENTAL_CVAT_POSE_GROUPING_BY_GROUP_ID_ENABLED - When importing CVAT annotations, you can put a single bbox and either a points or skeletons annotation in a group, and then they will be grouped together into a pose annotation. When exporting that to YOLO, the bbox and the points will be exported as a single annotation.

You can read more about the features that exist, their limitations and potential side effects in the features.py file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages