# yolov8_instance_segmentation_exporter

Python API: `luxonis_ml.data.exporters.yolov8_instance_segmentation_exporter`

## Classes

### YoloV8InstanceSegmentationExporter

Export instance-segmentation annotations in YOLOv8 format.

#### Methods

##### init

```python
def __init__(dataset_identifier: str, output_path: Path, max_partition_size_gb: float | None):
```

##### export

```python
def export(prepared_ldf: PreparedLDF):
```

Convert the prepared dataset into the exporter's format.

Parameters

 * `prepared_ldf` (`PreparedLDF`): Dataset data prepared for export.

Raises

 * `NotImplementedError`: Always raised by the abstract base implementation.

##### get_split_names

```python
def get_split_names(self) -> dict[str, str]:
```

##### supported_ann_types

```python
def supported_ann_types(self) -> list[str]:
```

Return task types supported by this exporter.

Returns

 * `list[str]`: Supported annotation task types.

Raises

 * `NotImplementedError`: Always raised by the abstract base implementation.

#### Attributes

##### class_names

Class names ordered by class ID.

##### class_to_id

Class-name to class-ID mapping.

##### current_size
