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