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 (Images and Video):
- YOLO BBox, Segmentation and Poses:
load_yolo_from_fs - COCO BBox Object Detection and Stuff Segmentation:
load_coco_from_file - Label Studio:
parse_ls_task(Only reading JSON tasks from the filesystem is implemented, importing from a project is left up to user):
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()
- CVAT for image (BBox, Segmentation, Poses) and video (BBox):
load_cvat_from_zip - MOT (Video BBox) -
load_mot_from_dir
Exporters (Images and Video):
- YOLO BBox, Segmentation and Poses:
export_to_fs - COCO BBox Object Detection and Stuff Segmentation:
export_to_coco_file - Label Studio:
task.model_dump_json()(Again, only to JSON files, uploading the task to the project is left to the user) - MOT (Video BBox) -
export_mot_to_dir - CVAT for video (BBox):
export_cvat_video_to_zip
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
Release files for dagshub-annotation-converter 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dagshub_annotation_converter-0.2.1.tar.gz | 76.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dagshub_annotation_converter-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 144.2 kB
Release files / dagshub_annotation_converter-0.2.1.tar.gz
| Download URL | dagshub_annotation_converter-0.2.1.tar.gz |
|---|---|
| Size | 76.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20afab808ccebc3e07ba649b1a746efbdaed9fcb0b72028db62acdab5aec7a6f
|
|
BLAKE2b-256 checksum How to use checksums |
2832cfa62fc03c97ceebec3b1e178d5f4a50477b2979ffee4f849282725e1e23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 22, 2026.
Transparency logRelease files / dagshub_annotation_converter-0.2.1-py3-none-any.whl
| Download URL | dagshub_annotation_converter-0.2.1-py3-none-any.whl |
|---|---|
| Size | 68.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b285aff8c8bb8e97126f60fdce3b670c04615b1913c67cc2773fd55ab1130998
|
|
BLAKE2b-256 checksum How to use checksums |
7ed5d8b3f77c62d01353d2a72116ad8b902b474119eb2b6dac72754836f78e46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 22, 2026.
Transparency log