Skip to content

steps.ultralytics.model.exporter

exporter

Functions:

Name Description
export_ultralytics_model

Export a trained Ultralytics model and save it to the associated experiment.

export_ultralytics_model(model)

Export a trained Ultralytics model and save it to the associated experiment.

This step performs the following: - Retrieves the active Picsellia training context. - Initializes a model exporter for the given Ultralytics model. - Exports the model to the format specified in the export parameters (e.g., ONNX). - Saves the exported model as an artifact in the experiment.

If the model does not have an exported_weights_dir set, the function logs a message and skips the export.

Parameters:

Name Type Description Default

model

UltralyticsModel

The trained Ultralytics model to export.

required
Logs

Skips export if no export destination is defined on the model.