Skip to content

Commit a020416

Browse files
Add support for CVAT annotation format (#29)
* Add support for CVAT annotation format * format * update * format * remove sequence * fix type check error * keep order of attributes for python 3.7 * update xml compare * clean up * no nned for OrderedDict anymore as the xml comparison changed * Update error message * use Pydantic XML * add pydantic-xml to project.toml * update poetry.lock file * update * remove unused "type: ignore" comment * update * update after review * remove test as it will produce mypy error * update type of output_annotation_scope parameter * fix test and xml compare function * remove default value from output-annotation-scope cli argument * add default value for output_annotation_scope
1 parent d2b9af4 commit a020416

File tree

5 files changed

+616
-1
lines changed

5 files changed

+616
-1
lines changed

poetry.lock

Lines changed: 166 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ python = ">=3.8"
1515
tqdm = "*"
1616
pyyaml = "*"
1717
pillow = "*"
18+
pydantic-xml = "*"
1819

1920
[tool.poetry.group.dev.dependencies]
2021
mypy = "*"

src/labelformat/formats/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
COCOObjectDetectionInput,
55
COCOObjectDetectionOutput,
66
)
7+
from labelformat.formats.cvat import CVATObjectDetectionInput, CVATObjectDetectionOutput
78
from labelformat.formats.kitti import (
89
KittiObjectDetectionInput,
910
KittiObjectDetectionOutput,
@@ -53,6 +54,8 @@
5354
"COCOInstanceSegmentationOutput",
5455
"COCOObjectDetectionInput",
5556
"COCOObjectDetectionOutput",
57+
"CVATObjectDetectionInput",
58+
"CVATObjectDetectionOutput",
5659
"KittiObjectDetectionInput",
5760
"KittiObjectDetectionOutput",
5861
"LabelboxObjectDetectionInput",

0 commit comments

Comments
 (0)