From df579c866c55b888dfdce0ffc4b421e271bdc32d Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Wed, 17 May 2023 16:13:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20change=20default=20value=20of=20?= =?UTF-8?q?`approximation=5Fpercentage`=20parameter=20from=20`0.75`=20to?= =?UTF-8?q?=20`0.0`=20in=20`DetectionDataset.as=5Fyolo`=20and=20`Detection?= =?UTF-8?q?Dataset.as=5Fpascal=5Fvoc`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelog.md | 5 +++-- supervision/dataset/core.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 21daf55c..2d632ae4 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,7 +1,8 @@ ### 0.8.0 May 17, 2023 -- Added [[#100](https://github.com/roboflow/supervision/pull/100)]: ability to save datasets in YOLO format using `Dataset.as_yolo`. -- Added [[#100](https://github.com/roboflow/supervision/pull/100)]: support for Dataset inheritance. Current `Dataset` got renamed to `DetectionDataset` and make it inherit from `BaseDataset`. +- Added [[#100](https://github.com/roboflow/supervision/pull/100)]: support for Dataset inheritance. Current `Dataset` got renamed to `DetectionDataset` and make it inherit from `BaseDataset`. +- Added [[#100](https://github.com/roboflow/supervision/pull/100)]: ability to save datasets in YOLO format using `DetectionDataset.as_yolo`. +- Changed [[#100](https://github.com/roboflow/supervision/pull/100)]: default value of `approximation_percentage` parameter from `0.75` to `0.0` in `DetectionDataset.as_yolo` and `DetectionDataset.as_pascal_voc`. ### 0.7.0 May 11, 2023 diff --git a/supervision/dataset/core.py b/supervision/dataset/core.py index ff888acb..f1ccb3d5 100644 --- a/supervision/dataset/core.py +++ b/supervision/dataset/core.py @@ -67,7 +67,7 @@ class DetectionDataset(BaseDataset): annotations_directory_path: Optional[str] = None, min_image_area_percentage: float = 0.0, max_image_area_percentage: float = 1.0, - approximation_percentage: float = 0.75, + approximation_percentage: float = 0.0, ) -> None: """ Exports the dataset to PASCAL VOC format. This method saves the images and their corresponding annotations in @@ -238,7 +238,7 @@ class DetectionDataset(BaseDataset): data_yaml_path: Optional[str] = None, min_image_area_percentage: float = 0.0, max_image_area_percentage: float = 1.0, - approximation_percentage: float = 0.75, + approximation_percentage: float = 0.0, ) -> None: """ Exports the dataset to YOLO (You Only Look Once) format. This method saves the images and their corresponding