Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
f0cbab09
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
7
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f0cbab09
编写于
8月 22, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
8月 22, 2020
浏览文件
操作
浏览文件
下载
差异文件
!558 update shell script templates of mindwizard
Merge pull request !558 from liangyongxiong/wizard
上级
bd764482
cf9dd0f3
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
64 addition
and
30 deletion
+64
-30
mindinsight/wizard/README.md
mindinsight/wizard/README.md
+23
-6
mindinsight/wizard/README_CN.md
mindinsight/wizard/README_CN.md
+23
-6
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_distribute_train.sh-tpl
...lates/network/alexnet/scripts/run_distribute_train.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_distribute_train_gpu.sh-tpl
...s/network/alexnet/scripts/run_distribute_train_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_eval.sh-tpl
...rd/conf/templates/network/alexnet/scripts/run_eval.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_eval_gpu.sh-tpl
...onf/templates/network/alexnet/scripts/run_eval_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_standalone_train.sh-tpl
...lates/network/alexnet/scripts/run_standalone_train.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_standalone_train_gpu.sh-tpl
...s/network/alexnet/scripts/run_standalone_train_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/lenet/scripts/run_distribute_train.sh-tpl
...mplates/network/lenet/scripts/run_distribute_train.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/lenet/scripts/run_distribute_train_gpu.sh-tpl
...tes/network/lenet/scripts/run_distribute_train_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/lenet/scripts/run_eval.sh-tpl
...zard/conf/templates/network/lenet/scripts/run_eval.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/lenet/scripts/run_eval_gpu.sh-tpl
.../conf/templates/network/lenet/scripts/run_eval_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/lenet/scripts/run_standalone_train.sh-tpl
...mplates/network/lenet/scripts/run_standalone_train.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/lenet/scripts/run_standalone_train_gpu.sh-tpl
...tes/network/lenet/scripts/run_standalone_train_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_distribute_train.sh-tpl
...ates/network/resnet50/scripts/run_distribute_train.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_distribute_train_gpu.sh-tpl
.../network/resnet50/scripts/run_distribute_train_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_eval.sh-tpl
...d/conf/templates/network/resnet50/scripts/run_eval.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_eval_gpu.sh-tpl
...nf/templates/network/resnet50/scripts/run_eval_gpu.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_standalone_train.sh-tpl
...ates/network/resnet50/scripts/run_standalone_train.sh-tpl
+1
-1
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_standalone_train_gpu.sh-tpl
.../network/resnet50/scripts/run_standalone_train_gpu.sh-tpl
+1
-1
未找到文件。
mindinsight/wizard/README.md
浏览文件 @
f0cbab09
...
...
@@ -48,6 +48,7 @@ project
| |- config.py
# parameter configuration
| |- dataset.py
# data preprocessing
| |- lenet.py/resent.py/...
# network definition
| |- ...
|- eval.py
# evaluate network
|- train.py
# train network
|- README.md
...
...
@@ -78,23 +79,39 @@ $ mindwizard project
1: MNIST
[1]: 1
lene
t is generated in $PWD/project
projec
t is generated in $PWD/project
$ cd $PWD/project/scripts
```
### Training
Distributed training
```
# Ascend
Usage: bash run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
# GPU
Usage: bash run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
```
# distributed training
Usage: ./run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
# standalone training
Usage: ./run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
Standalone training
```
# Ascend
Usage: bash run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
# GPU
Usage: bash run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
```
### Evaluation
```
Usage: ./run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]
# Ascend
Usage: bash run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]
# GPU
Usage: bash run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]
```
mindinsight/wizard/README_CN.md
浏览文件 @
f0cbab09
...
...
@@ -48,6 +48,7 @@ project
| |- config.py
# 参数配置
| |- dataset.py
# 数据集处理
| |- lenet.py/resent.py/...
# 网络定义
| |- ...
|- eval.py
# 网络推理
|- train.py
# 网络训练
|- README.md
...
...
@@ -78,23 +79,39 @@ $ mindwizard project
1: MNIST
[1]: 1
lene
t is generated in $PWD/project
projec
t is generated in $PWD/project
$ cd $PWD/project/scripts
```
### 训练
多卡训练
```
# Ascend
Usage: bash run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
# GPU
Usage: bash run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
```
# 多卡训练
Usage: ./run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
# 单卡训练
Usage: ./run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
单卡训练
```
# Ascend
Usage: bash run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
# GPU
Usage: bash run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)
```
### 评估
```
Usage: ./run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]
# Ascend
Usage: bash run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]
# GPU
Usage: bash run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]
```
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_distribute_train.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
&&
[
$#
!=
3
]
then
echo
"Usage: sh run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_distribute_train_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_eval.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
then
echo
"Usage: sh run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]"
echo
"Usage:
ba
sh run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_eval_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
then
echo
"Usage: sh run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]"
echo
"Usage:
ba
sh run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_standalone_train.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/alexnet/scripts/run_standalone_train_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/lenet/scripts/run_distribute_train.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
&&
[
$#
!=
3
]
then
echo
"Usage: sh run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/lenet/scripts/run_distribute_train_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -15,7 +15,7 @@
# ============================================================================
if
[
$#
!=
1
]&&
[
$#
!=
2
]
then
echo
"Usage: sh run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/lenet/scripts/run_eval.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
then
echo
"Usage: sh run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]"
echo
"Usage:
ba
sh run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/lenet/scripts/run_eval_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
then
echo
"Usage: sh run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]"
echo
"Usage:
ba
sh run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/lenet/scripts/run_standalone_train.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/lenet/scripts/run_standalone_train_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_distribute_train.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
&&
[
$#
!=
3
]
then
echo
"Usage: sh run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_distribute_train.sh [RANK_TABLE_FILE] [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_distribute_train_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_distribute_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_eval.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
then
echo
"Usage: sh run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]"
echo
"Usage:
ba
sh run_eval.sh [DATASET_PATH] [CHECKPOINT_PATH]"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_eval_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
2
]
then
echo
"Usage: sh run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]"
echo
"Usage:
ba
sh run_eval_gpu.sh [DATASET_PATH] [CHECKPOINT_PATH]"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_standalone_train.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_standalone_train.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
mindinsight/wizard/conf/templates/network/resnet50/scripts/run_standalone_train_gpu.sh-tpl
浏览文件 @
f0cbab09
...
...
@@ -16,7 +16,7 @@
if
[
$#
!=
1
]
&&
[
$#
!=
2
]
then
echo
"Usage: sh run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
echo
"Usage:
ba
sh run_standalone_train_gpu.sh [DATASET_PATH] [PRETRAINED_CKPT_PATH](optional)"
exit
1
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录