sciai.utils.download_resource

View Source On Gitee
sciai.utils.download_resource(model_name: str, is_force=False)[source]

Download the dataset and(or) checkpoint files for model named model_name. If the model config contains “data_status”, then it will download data according to “remote_data_path”(if it has) or “model_path”.

Parameters
  • model_name (str) – The name of target model.

  • is_force (bool) – Whether download the dataset by force.

Raises

ValueError – If model_name is not a supported model name.