Download
download_data
download_data(
link=Option(
var.TRAIN_DATA_URL,
help="Link to the train data on Yandex disk or GitHub",
),
save_dir=Option(
var.DATA_DIR,
help="Path where to store downloaded data",
),
yandex_disk=Option(
False,
is_flag=True,
help="If the link is to Yandex disk",
),
)
Download train data from Yandex disk or GitHub.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
link |
str, default
|
Sharing link to the train data on Yandex disk or GitHub. |
Option(var.TRAIN_DATA_URL, help='Link to the train data on Yandex disk or GitHub')
|
save_dir |
Path, default
|
Path where to store downloaded data. |
Option(var.DATA_DIR, help='Path where to store downloaded data')
|
yandex_disk |
bool, default
|
If the link is to Yandex disk. |
Option(False, is_flag=True, help='If the link is to Yandex disk')
|
Source code in src/trecover/app/cli/download.py
download_artifacts
download_artifacts(
version=Option("latest", help="Artifacts' version"),
archive_link=Option(
None,
help="Link to the artifacts archive on Yandex disk or GitHub",
),
save_dir=Option(
var.INFERENCE_DIR,
help="Path where to save downloaded artifacts",
),
yandex_disk=Option(
False,
is_flag=True,
help="If the archive_link is to Yandex disk",
),
show=Option(
False,
is_flag=True,
help="Print available artifacts' versions",
),
)
Download model artifacts by specified version or archive_link to Yandex disk or GitHub.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
version |
str, default
|
Artifacts' version. |
Option('latest', help="Artifacts' version")
|
archive_link |
str, default
|
Sharing link to the model artifacts archive on Yandex disk or GitHub. |
Option(None, help='Link to the artifacts archive on Yandex disk or GitHub')
|
save_dir |
Path, default
|
Path where to save downloaded artifacts. |
Option(var.INFERENCE_DIR, help='Path where to save downloaded artifacts')
|
yandex_disk |
bool, default
|
If the link is to Yandex disk. |
Option(False, is_flag=True, help='If the archive_link is to Yandex disk')
|
show |
bool, default
|
Print available artifacts' versions. |
Option(False, is_flag=True, help="Print available artifacts' versions")
|