Download Model

download_model(self, model_id: str, local_path: str) → None

Download the model for a given model ID to the local path.

Parameters
  • model_id (str) – The ID of the model.

  • local_path (str) – The local path to save the downloaded model.

Raises

e – If an error occurs while downloading the model.

Example

from netspresso.compressor import ModelCompressor


compressor = ModelCompressor(email="YOUR_EMAIL", password="YOUR_PASSWORD")
compressor.download_model(
    model_id="YOUR_MODEL_ID",
    local_path="YOUR_LOCAL_PATH",  # ex) ./downloaded_model.h5
)