Skip to content
Snippets Groups Projects
Unverified Commit c958cc31 authored by i-robot's avatar i-robot Committed by Gitee
Browse files

!4011 修改office/others的环境变量设置

Merge pull request !4011 from JoeyLin/office-others
parents 0a03c237 98464195
No related branches found
No related tags found
No related merge requests found
Showing
with 25 additions and 70 deletions
fallow
rouge
\ No newline at end of file
......@@ -338,6 +338,8 @@ Parameters for both training and evaluation can be set in default_config.yaml.
## Inference Process
**Before inference, please refer to [Environment Variable Setting Guide](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README.md) to set environment variables.**
### [Export MindIR](#contents)
```shell
......
......@@ -361,6 +361,8 @@ BGCF包含两个主要模块。首先是抽样,它生成基于节点复制的
## 推理过程
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### [导出MindIR](#contents)
```shell
......
......@@ -49,16 +49,6 @@ echo "dataset path: "$dataset_path
echo "need preprocess: "$need_preprocess
echo "device id: "$device_id
export ASCEND_HOME=/usr/local/Ascend/
if [ -d ${ASCEND_HOME}/ascend-toolkit ]; then
export ASCEND_HOME=/usr/local/Ascend/ascend-toolkit/latest
else
export ASCEND_HOME=/usr/local/Ascend/latest
fi
export PATH=$ASCEND_HOME/compiler/ccec_compiler/bin:$PATH
export LD_LIBRARY_PATH=$ASCEND_HOME/lib64:/usr/local/Ascend/driver/lib64:$LD_LIBRARY_PATH
export ASCEND_OPP_PATH=$ASCEND_HOME/opp
function preprocess_data()
{
if [ -d preprocess_Result ]; then
......
......@@ -268,6 +268,8 @@ Parameters for both training and evaluation can be set in default_config.yaml.
## Inference Process
**Before inference, please refer to [Environment Variable Setting Guide](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README.md) to set environment variables.**
### [Export MindIR](#contents)
```shell
......
......@@ -265,6 +265,8 @@
## 推理过程
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### [导出MindIR](#contents)
```shell
......
......@@ -57,16 +57,6 @@ echo "dataset path: "$dataset_path
echo "need preprocess: "$need_preprocess
echo "device id: "$device_id
export ASCEND_HOME=/usr/local/Ascend/
if [ -d ${ASCEND_HOME}/ascend-toolkit ]; then
export ASCEND_HOME=/usr/local/Ascend/ascend-toolkit/latest
else
export ASCEND_HOME=/usr/local/Ascend/latest
fi
export PATH=$ASCEND_HOME/compiler/ccec_compiler/bin:$PATH
export LD_LIBRARY_PATH=$ASCEND_HOME/lib64:/usr/local/Ascend/driver/lib64:$LD_LIBRARY_PATH
export ASCEND_OPP_PATH=$ASCEND_HOME/opp
function preprocess_data()
{
if [ -d preprocess_Result ]; then
......
......@@ -241,6 +241,8 @@ Test set results: cost= 1.00983 accuracy= 0.81300 time= 0.39083
## Inference Process
**Before inference, please refer to [Environment Variable Setting Guide](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README.md) to set environment variables.**
### [Export MindIR](#contents)
```shell
......
......@@ -248,6 +248,8 @@ Test set results: cost= 1.00983 accuracy= 0.81300 time= 0.39083
## 推理过程
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### [导出MindIR](#contents)
```shell
......
......@@ -57,16 +57,6 @@ echo "dataset path: "$dataset_path
echo "need preprocess: "$need_preprocess
echo "device id: "$device_id
export ASCEND_HOME=/usr/local/Ascend/
if [ -d ${ASCEND_HOME}/ascend-toolkit ]; then
export ASCEND_HOME=/usr/local/Ascend/ascend-toolkit/latest
else
export ASCEND_HOME=/usr/local/Ascend/latest
fi
export PATH=$ASCEND_HOME/compiler/ccec_compiler/bin:$PATH
export LD_LIBRARY_PATH=$ASCEND_HOME/lib64:/usr/local/Ascend/driver/lib64:$LD_LIBRARY_PATH
export ASCEND_OPP_PATH=$ASCEND_HOME/opp
function preprocess_data()
{
if [ -d preprocess_Result ]; then
......
......@@ -838,6 +838,8 @@ The `export_ckpt_file` parameter is required, and `file_format` should be in ["A
### [Inference Process](#contents)
**Before inference, please refer to [Environment Variable Setting Guide](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README.md) to set environment variables.**
#### Usage
Before performing inference, the mindir file must be exported by export.py. Input files must be in bin format.
......
......@@ -810,6 +810,8 @@ python export.py --config_path [/path/*.yaml] --export_ckpt_file [CKPT_PATH] --e
## 推理过程
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### 用法
在执行推理之前,需要通过export.py导出mindir文件。输入数据文件为bin格式。
......
......@@ -66,16 +66,6 @@ echo "schema_file_path: "$schema_file_path
echo "need preprocess: "$need_preprocess
echo "device id: "$device_id
export ASCEND_HOME=/usr/local/Ascend/
if [ -d ${ASCEND_HOME}/ascend-toolkit ]; then
export ASCEND_HOME=/usr/local/Ascend/ascend-toolkit/latest
else
export ASCEND_HOME=/usr/local/Ascend/latest
fi
export PATH=$ASCEND_HOME/compiler/ccec_compiler/bin:$PATH
export LD_LIBRARY_PATH=$ASCEND_HOME/lib64:/usr/local/Ascend/driver/lib64:$LD_LIBRARY_PATH
export ASCEND_OPP_PATH=$ASCEND_HOME/opp
function preprocess_data()
{
if [ -d preprocess_Result ]; then
......
......@@ -458,6 +458,8 @@ R5@10: 0.97746
## 310推理
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### 导出模型
```shell
......
......@@ -52,16 +52,6 @@ echo "need preprocess: "$need_preprocess
echo "device id: "$device_id
echo "dataset: "$dataset
export ASCEND_HOME=/usr/local/Ascend/
if [ -d ${ASCEND_HOME}/ascend-toolkit ]; then
export ASCEND_HOME=/usr/local/Ascend/ascend-toolkit/latest
else
export ASCEND_HOME=/usr/local/Ascend/latest
fi
export PATH=$ASCEND_HOME/compiler/ccec_compiler/bin:$PATH
export LD_LIBRARY_PATH=$ASCEND_HOME/lib64:/usr/local/Ascend/driver/lib64:$LD_LIBRARY_PATH
export ASCEND_OPP_PATH=$ASCEND_HOME/opp
function preprocess_data()
{
if [ -d preprocess_result ]; then
......
......@@ -309,6 +309,8 @@ bash run_export.sh [TASK_NAME] [CHECK_POINT_PATH] [FILE_FORMAT]
## 推理过程
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### 推理
在还行推理之前我们需要先导出模型。Air模型只能在昇腾910环境上导出,mindir可以在任意环境上导出。batch_size只支持1。
......
......@@ -48,16 +48,6 @@ echo "eval_data_file_path: "$eval_data_file_path
echo "need preprocess: "$need_preprocess
echo "device id: "$device_id
export ASCEND_HOME=/usr/local/Ascend/
if [ -d ${ASCEND_HOME}/ascend-toolkit ]; then
export ASCEND_HOME=/usr/local/Ascend/ascend-toolkit/latest
else
export ASCEND_HOME=/usr/local/Ascend/latest
fi
export PATH=$ASCEND_HOME/compiler/ccec_compiler/bin:$PATH
export LD_LIBRARY_PATH=$ASCEND_HOME/lib64:/usr/local/Ascend/driver/lib64:$LD_LIBRARY_PATH
export ASCEND_OPP_PATH=$ASCEND_HOME/opp
function preprocess_data()
{
if [ -d preprocess_result ]; then
......
......@@ -213,6 +213,8 @@ bash scripts/run_classifier_eval_{platform}.sh
## 310推理
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### 导出模型
```shell
......
......@@ -48,16 +48,6 @@ echo "eval_data_file_path: "$eval_data_file_path
echo "need preprocess: "$need_preprocess
echo "device id: "$device_id
export ASCEND_HOME=/usr/local/Ascend/
if [ -d ${ASCEND_HOME}/ascend-toolkit ]; then
export ASCEND_HOME=/usr/local/Ascend/ascend-toolkit/latest
else
export ASCEND_HOME=/usr/local/Ascend/latest
fi
export PATH=$ASCEND_HOME/compiler/ccec_compiler/bin:$PATH
export LD_LIBRARY_PATH=$ASCEND_HOME/lib64:/usr/local/Ascend/driver/lib64:$LD_LIBRARY_PATH
export ASCEND_OPP_PATH=$ASCEND_HOME/opp
function preprocess_data()
{
if [ -d preprocess_result ]; then
......
......@@ -443,6 +443,8 @@ bash export.sh [CKPT_FILE] [EXPORT_PATH] [TASK_TYPE]
## 推理过程
**推理前需参照 [环境变量设置指引](https://gitee.com/mindspore/models/tree/master/utils/ascend310_env_set/README_CN.md) 进行环境变量设置。**
### 用法
在执行推理之前,需要通过export.py导出mindir文件。输入数据文件为bin格式。
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment