🥥 add `from_coco` and `as_coco` to `README.md`

This commit is contained in:
Piotr Skalski 2023-06-27 14:06:29 +02:00 committed by GitHub
parent 0d39de898a
commit 34e45bed5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

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