frameworks.ultralytics.services.model.exporter¶
exporter
¶
Classes:
Name | Description |
---|---|
UltralyticsModelExporter |
Exporter class for Ultralytics models. |
UltralyticsModelExporter(model)
¶
Bases: ModelExporter
Exporter class for Ultralytics models.
This class handles the export process for models trained using the Ultralytics framework. It supports exporting to formats such as ONNX and relocating the exported model to a specified path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
UltralyticsModel
|
The model instance containing metadata and paths required for export. |
required |
Methods:
Name | Description |
---|---|
export_model |
Exports the model to the specified format and moves the file to a target directory. |
save_model_to_experiment |
Save exported model to a Picsellia experiment. |
save_model_to_model_version |
Save exported model to a Picsellia model version. |
Attributes:
Name | Type | Description |
---|---|---|
model |
UltralyticsModel
|
|
model = model
instance-attribute
¶
export_model(exported_model_destination_path, export_format, hyperparameters)
¶
Exports the model to the specified format and moves the file to a target directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
str
|
Path to save the exported model. |
required |
|
str
|
Export format (e.g., 'onnx'). |
required |
|
UltralyticsHyperParameters
|
Export configuration including image size. |
required |