Upload Model

upload_model(self, model_file_path: str) → netspresso.launcher.schemas.model.Model

Upload a model for launcher.

Parameters

model_file_path (str) – The file path of the model.

Raises

e – If an error occurs while uploading the model.

Returns

Uploaded launcher model object.

Return type

Model

Example

from netspresso.launcher import ModelConverter, ModelBenchmarker


converter = ModelConverter(email="YOUR_EMAIL", password="YOUR_PASSWORD")
model = converter.upload_model("YOUR_MODEL_PATH")

# or

benchmarker = ModelBenchmarker(email="YOUR_EMAIL", password="YOUR_PASSWORD")
model = benchmarker.upload_model("YOUR_MODEL_PATH")