🥥 add from_coco and as_coco to README.md

This commit is contained in:
Piotr Skalski authored and GitHub committed 2023-06-27 14:06:29 +02:00
1 parent 0d39de898a
commit 34e45bed5e
1 file changed
+10
+10
View File
@@ -136,6 +136,11 @@ pip install -e ".[dev]"
... images_directory_path='...',
... annotations_directory_path='...'
... )
>>> dataset = sv.DetectionDataset.from_coco(
... images_directory_path='...',
... annotations_path='...'
... )
```
- Loop over dataset entries
@@ -172,6 +177,11 @@ pip install -e ".[dev]"
... images_directory_path='...',
... annotations_directory_path='...'
... )
>>> dataset.as_coco(
... images_directory_path='...',
... annotations_path='...'
... )
```
- Convert labels between suppoted formats