documentation change for as_coco

This commit is contained in:
magda skoczen committed 2024-05-17 11:16:37 +02:00
1 parent aad5e2a212
commit 0cd2c9d146
1 file changed
+4
+4
View File
@@ -430,6 +430,10 @@ class DetectionDataset(BaseDataset):
"""
Exports the dataset to COCO format. This method saves the
images and their corresponding annotations in COCO format.
The format of the mask is determined automatically:
when a mask consists of multiple disconnected elements
or has holes the RLE format is used,
otherwise, the mask is encoded as a polygon.
Args:
images_directory_path (Optional[str]): The path to the directory