def download_from_cloud(model_file_name, json_url, h5_url):
print('Downloading from cloud')
json_file_name, h5_file_name = SequenceModel.get_full_file_names(model_file_name)
downloaded_json = get_file(os.path.normpath(json_file_name), origin=json_url)
if downloaded_json != json_file_name:
shutil.copy(downloaded_json, json_file_name)
downloaded_h5 = get_file(os.path.normpath(h5_file_name), origin=h5_url)
if downloaded_h5 != h5_file_name:
shutil.copy(downloaded_h5, h5_file_name)
评论列表
文章目录