From 34e45bed5eec0b4ed1b4b4bb969eac97f95f690d Mon Sep 17 00:00:00 2001 From: Piotr Skalski Date: Tue, 27 Jun 2023 14:06:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=A5=20add=20`from=5Fcoco`=20and=20`as?= =?UTF-8?q?=5Fcoco`=20to=20`README.md`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 0232e631..dd044c69 100644 --- a/README.md +++ b/README.md @@ -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