Skip to content

Get Models

netspresso.np_qai.base.NPQAIBase.get_models(offset=0, limit=50)

Get a list of models from the QAI Hub.

Parameters:

Name Type Description Default
offset int

The offset of the models to get even older models.

0
limit int

The limit of the models to get.

50

Returns:

Type Description
List[Model]

List[Model]: Returns a list of model objects if successful.

Note

For details, see get_models 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)
models = np_qai.get_models()