# export_dl_artifacts
下载深度学习工具箱的项目工件
函数库: TyDeepLearning
# 语法
export_dl_artifacts(names=[], target_dir=".")
# 说明
export_dl_artifacts(names=[], target_dir=".") 用于离线环境用户统一下载深度学习工具箱的项目工件。
# 示例
下载深度学习工具箱的项目工件
下载深度学习工具箱的项目工件到当前路径。
using TyDeepLearning
set_backend(:torch)
export_dl_artifacts()
[ Info: Downloading 11 files for Deep Learning Toolbox, this may take more than ten minutes...
Downloaded artifact: models-bert
[ Info: Copying 1 / 11
Downloaded artifact: VPR_dataset
[ Info: Copying 2 / 11
Downloaded artifact: abalone_dataset
[ Info: Copying 3 / 11
Downloaded artifact: flights_dataset
[ Info: Copying 4 / 11
Downloaded artifact: iris_dataset
[ Info: Copying 5 / 11
Downloaded artifact: torch_model_checkpoints
[ Info: Copying 6 / 11
Downloaded artifact: models-align
[ Info: Copying 7 / 11
Downloaded artifact: digit_dataset
[ Info: Copying 8 / 11
Downloaded artifact: imagenet
[ Info: Copying 9 / 11
Downloaded artifact: models-albert
[ Info: Copying 10 / 11
Downloaded artifact: simplefit_dataset
[ Info: Copying 11 / 11
[ Info: Done!
[ Info: 11 artifacts have been successfully downloaded into c:\Users\TR\Desktop\syslab_file\TyDeepLearning.jl\artifacts dir. You can copy this to your target device's artifacts dir.
下载完成后,将当前路径下的artifacts 合并至目标设备的 ~/.julia/artifacts。不同设备与环境的下载路径存在差异,以实际输出路径为准。也可以通过 target_dir 参数指定路径。
# 输入参数
names - 项目工件字符串向量
默认为空,即下载全部工件,可通过下列工件名指定下载。
| 项目工件 | 简介 |
|---|---|
| "abalone_dataset" | 鲍鱼年龄数据集 |
| "digit_dataset" | 手写数字数据集 |
| "flights_dataset" | 航班数据集 |
| "imagenet" | ImageNet 数据集类别 |
| "iris_dataset" | 鸢尾花数据集 |
| "models-albert" | ALBERT 预训练网络 |
| "models-bert" | BERT 预训练网络 |
| "models-align" | ALIGN 预训练网络 |
| "simplefit_dataset" | 简易拟合数据集 |
| "torch_model_checkpoints" | pytorch 预训练模型 |
| "VPR_dataset" | 语音识别数据集 |
数据类型: Vector
target_dir - 目标路径字符串
深度学习工件下载后自动复制到目标路径下的 "artifacts" 文件夹内,目标路径默认为当前目录 ".",离线环境用户可将该路径下的 "artifacts" 合并至目标设备的 "~/.julia/artifacts"。
数据类型: String