diff --git a/CITATION.cff b/CITATION.cff index 093d8807..51200e67 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,7 +2,7 @@ cff-version: 1.2.0 author: Roboflow message: If you use this software, please cite it as below. title: supervision -version: 0.10.0 +version: 0.11.0 date-released: 2023-01-19 license: MIT repository-code: https://github.com/roboflow/supervision diff --git a/README.md b/README.md index dd044c69..04ea6c28 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,28 @@ pip install -e ".[dev]" (700, 150, 150) ``` +- Merge multiple datasets together + + ```python + >>> ds_1 = sv.DetectionDataset(...) + >>> len(ds_1) + 100 + >>> ds_1.classes + ['dog', 'person'] + + >>> ds_2 = sv.DetectionDataset(...) + >>> len(ds_2) + 200 + >>> ds_2.classes + ['cat'] + + >>> ds_merged = sv.DetectionDataset.merge([ds_1, ds_2]) + >>> len(ds_merged) + 300 + >>> ds_merged.classes + ['cat', 'dog', 'person'] + ``` + - Save object detection / instance segmentation datasets in one of supported formats ```python @@ -184,7 +206,7 @@ pip install -e ".[dev]" ... ) ``` -- Convert labels between suppoted formats +- Convert labels between supported formats ```python >>> sv.DetectionDataset.from_yolo( diff --git a/docs/changelog.md b/docs/changelog.md index 1224fbc3..03b55b89 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,47 @@ +### 0.10.0 June 28, 2023 + +- Added [[#150](https://github.com/roboflow/supervision/pull/150)]: ability to load and save [`sv.DetectionDataset`](https://roboflow.github.io/supervision/dataset/core/#detectiondataset) in COCO format using [`as_coco`](https://roboflow.github.io/supervision/dataset/core/#supervision.dataset.core.DetectionDataset.as_coco) and [`from_coco`](https://roboflow.github.io/supervision/dataset/core/#supervision.dataset.core.DetectionDataset.from_coco) methods. + +```python +>>> import supervision as sv + +>>> ds = sv.DetectionDataset.from_coco( +... images_directory_path='...', +... annotations_path='...' +... ) + +>>> ds.as_coco( +... images_directory_path='...', +... annotations_path='...' +... ) +``` + +- Added [[#158](https://github.com/roboflow/supervision/pull/158)]: ability to marge multiple [`sv.DetectionDataset`](https://roboflow.github.io/supervision/dataset/core/#detectiondataset) together using [`merge`](https://roboflow.github.io/supervision/dataset/core/#supervision.dataset.core.DetectionDataset.merge) method. + +```python +>>> import supervision as sv + +>>> ds_1 = sv.DetectionDataset(...) +>>> len(ds_1) +100 +>>> ds_1.classes +['dog', 'person'] + +>>> ds_2 = sv.DetectionDataset(...) +>>> len(ds_2) +200 +>>> ds_2.classes +['cat'] + +>>> ds_merged = sv.DetectionDataset.merge([ds_1, ds_2]) +>>> len(ds_merged) +300 +>>> ds_merged.classes +['cat', 'dog', 'person'] +``` + +- Fix [[#157](https://github.com/roboflow/supervision/pull/157)]: incorrect loading of YOLO dataset class names from `data.yaml`. + ### 0.10.0 June 14, 2023 - Added [[#125](https://github.com/roboflow/supervision/pull/125)]: ability to load and save [`sv.ClassificationDataset`](https://roboflow.github.io/supervision/dataset/core/#classificationdataset) in a folder structure format. diff --git a/supervision/__init__.py b/supervision/__init__.py index 3fafef8c..9756d474 100644 --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.10.0" +__version__ = "0.11.0" from supervision.classification.core import Classifications from supervision.dataset.core import (