|
|
|
|
|
|
|
|
tag = 'v6.1' # current release |
|
|
tag = 'v6.1' # current release |
|
|
|
|
|
|
|
|
if name in assets: |
|
|
if name in assets: |
|
|
|
|
|
url3 = 'https://drive.google.com/drive/folders/1EFQTEUeXWSFww0luse2jB9M1QNZQGwNl' # backup gdrive mirror |
|
|
safe_download( |
|
|
safe_download( |
|
|
file, |
|
|
file, |
|
|
url=f'https://github.com/{repo}/releases/download/{tag}/{name}', |
|
|
url=f'https://github.com/{repo}/releases/download/{tag}/{name}', |
|
|
# url2=f'https://storage.googleapis.com/{repo}/ckpt/{name}', # backup url (optional) |
|
|
|
|
|
|
|
|
url2=f'https://storage.googleapis.com/{repo}/{tag}/{name}', # backup url (optional) |
|
|
min_bytes=1E5, |
|
|
min_bytes=1E5, |
|
|
error_msg=f'{file} missing, try downloading from https://github.com/{repo}/releases/') |
|
|
|
|
|
|
|
|
error_msg=f'{file} missing, try downloading from https://github.com/{repo}/releases/{tag} or {url3}') |
|
|
|
|
|
|
|
|
return str(file) |
|
|
return str(file) |
|
|
|
|
|
|