class documentation
class YoloV8InstanceSegmentationExporter(BaseExporter):
Constructor: YoloV8InstanceSegmentationExporter(dataset_identifier, output_path, max_partition_size_gb)
Export instance-segmentation annotations in YOLOv8 format.
| Method | __init__ |
Undocumented |
| Method | export |
Convert the prepared dataset into the exporter's format. |
| Method | get |
Undocumented |
| Method | supported |
Return task types supported by this exporter. |
| Instance Variable | class |
Class names ordered by class ID. |
| Instance Variable | class |
Class-name to class-ID mapping. |
| Instance Variable | current |
Undocumented |
| Static Method | _to |
Undocumented |
| Method | _dump |
Undocumented |
| Method | _get |
Return the folder path to store data files for this split. |
| Method | _maybe |
Undocumented |
| Method | _yaml |
Undocumented |
Inherited from BaseExporter:
| Instance Variable | dataset |
Name or identifier used for exported paths. |
| Instance Variable | image |
Per-image export indices used by concrete exporters. |
| Instance Variable | max |
Optional maximum partition size in bytes. |
| Instance Variable | max |
Optional maximum partition size in GiB. |
| Instance Variable | output |
Directory where the export is written. |
| Instance Variable | part |
Current partition index, or None when partitioning is disabled. |
def __init__(self, dataset_identifier:
str, output_path: Path, max_partition_size_gb: float | None):
¶
Undocumented
Convert the prepared dataset into the exporter's format.
| Parameters | |
preparedPreparedLDF | Dataset data prepared for export. |
| Raises | |
NotImplementedError | Always raised by the abstract base implementation. |
Return task types supported by this exporter.
| Returns | |
list[ | Supported annotation task types. |
| Raises | |
NotImplementedError | Always raised by the abstract base implementation. |
def _dump_annotations(self, annotation_splits:
dict[ str, dict[ str, list[ str]]], output_path: Path, part: int | None = None):
¶
Undocumented
def _maybe_roll_partition(self, annotation_splits:
dict[ str, dict[ str, list[ str]]], additional_size: int) -> dict[ str, dict[ str, list[ str]]]:
¶
Undocumented