class documentation
class CreateMLExporter(BaseExporter):
Constructor: CreateMLExporter(dataset_identifier, output_path, max_partition_size_gb)
Undocumented
| Static Method | get |
Undocumented |
| Method | __init__ |
Undocumented |
| Method | export |
Convert the prepared dataset into the exporter's format. |
| Method | supported |
Return task types supported by this exporter. |
| Instance Variable | current |
Undocumented |
| Static Method | _estimate |
Undocumented |
| Method | _collect |
Undocumented |
| Method | _dump |
Undocumented |
| Method | _get |
Return the folder path to store data files for this split. |
| Method | _maybe |
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 _collect_bounding_box_annotations(self, group_df:
Any, width: int, height: int) -> list[ dict[ str, Any]]:
¶
Undocumented
def _dump_annotations(self, anns_by_split:
dict[ str, dict[ str, list[ dict[ str, Any]]]], output_path: Path, part: int | None = None):
¶
Undocumented
def _maybe_roll_partition(self, anns_by_split:
dict[ str, dict[ str, list[ dict[ str, Any]]]], additional_size: int) -> dict[ str, dict[ str, list[ dict[ str, Any]]]]:
¶
Undocumented