Skip to content

Get Model

netspresso.np_qai.base.NPQAIBase.get_model(model_id)

Get a model from the QAI Hub.

Parameters:

Name Type Description Default
model_id str

The ID of the model to get.

required

Returns:

Name Type Description
Model Model

Returns a model object if successful.

Note

For details, see get_model in QAI Hub API.

Example

from netspresso import NPQAI

QAI_HUB_API_TOKEN = "YOUR_QAI_HUB_API_TOKEN"
np_qai = NPQAI(api_token=QAI_HUB_API_TOKEN)
model = np_qai.get_model("YOUR_MODEL_ID")