Functions¶
Download model files of a specified model from a remote source.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file
|
Path | str
|
URL or path to the MLM-STAC JSON metadata file |
required |
output_dir
|
Path | str
|
Target directory for downloaded files |
required |
Returns:
| Type | Description |
|---|---|
ModelLoader
|
ModelLoader instance pointing to the downloaded model |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If any of the specified files fail to download |
Source code in mlstac/main.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |