SDK reference
mp_sdk.training.ExportRequest
class mp_sdk.training.ExportRequest(*,
id: int,
session_id: int,
synced_folder_path: str,
step_number: str
)
Model export request object.
Represents and export request for a single model that was initiated by the user. Contains all the information required to start the export process, including stored folder from training session process.
Attributes
id - int: The export request ID that was assigned in application backend. Used to link current process if the export record in database.
session_id - int: The session ID that was assigned in application backend. Used to link current process if the training record in database.
model_path - str: The path to the model file in application storage.
synced_folder_path - str: The path to the local folder to which training process data was downloaded. Content that was synced with mp_sdk.training.TrainingSession.sync_local_folder method.
Methods
store_model
(self, model: Union[str, bytes])
Save the model to application storage.
This method is used to store models in the application storage and makes it available through user workspace models library.
Arguments
- model: Union[str, bytes] - The model file path or binary data.