From 94f4c685873d42e75bc186e75bccaa0d5b306aa9 Mon Sep 17 00:00:00 2001 From: HuaweiAscend Date: Tue, 28 Jul 2020 16:37:03 +0800 Subject: [PATCH] update amexec/readMe.md. --- amexec/readMe.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/amexec/readMe.md b/amexec/readMe.md index 2052d5f..4053bf1 100755 --- a/amexec/readMe.md +++ b/amexec/readMe.md @@ -6,8 +6,7 @@ 模型必须是通过c7x版本的atc工具转换的om模型,输入bin文件需要符合模型的输入要求(支持模型多输入) ### 使用环境 -Centos7.6或Ubuntu16.4 -必须按照《驱动和开发环境安装指南》装好C7x环境 +按照《驱动和开发环境安装指南》装好C7x环境。 ### 获取 1. 下载压缩包方式获取。 @@ -24,6 +23,10 @@ Centos7.6或Ubuntu16.4 ### 使用方法 +#### a. 使用已编译好的工具直接运行。 + + **环境要求:架构为arm、已安装c7x的运行环境。如环境不符,请使用方法b,进行源码编译。** + 进入amexec目录 ``` cd $HOME/AscendProjects/tools/amexec/ @@ -39,11 +42,12 @@ cd out ``` ./amexec --model /home/HwHiAiUser/ljj/colorization.om --input /home/HwHiAiUser/ljj/colorization_input.bin --output /home/HwHiAiUser/ljj/AMEXEC/out/output1 --outfmt TXT --loop 2 ``` -loop为可选参数,默认值1。 -如果有多个输入,需要用“,”隔开。 +如果有多个输入,需要用**英文逗号**隔开,注意逗号两边不能有空格。 其他参数详情可使用--help查询。 -### 编译 + +#### b. 源码编译运行。 + **环境要求:已安装c7x的开发运行环境,分设合设都可以。** 工具也支持源码编译,或者使用者需要添加或者修改代码,使用者重新编译 进入amexec目录 ``` @@ -57,8 +61,8 @@ cd $HOME/AscendProjects/tools/amexec/ 第二个参数指定工具生成的目录,填相对路径的话,是相对out目录。 ## 注意事项 -运行工具的用户在当前目录需要有创建目录以及执行工具的权限,使用前请自行检查。 -dump、profiling以及动态多batch功能暂不支持。 +运行工具的用户在当前目录需要有创建目录以及执行工具的权限,使用前请自行检查。 +dump、动态多batch功能暂不支持。 ## 参数说明 @@ -68,5 +72,8 @@ dump、profiling以及动态多batch功能暂不支持。 | --input | 模型需要的输入 | | --output | 推理数据输出路径 | | --outfmt | 输出数据的格式,TXT或者BIN | -| --loop | 推理次数 [1,100],可选参数默认1 | +| --loop | 推理次数 [1,100],可选参数,默认1,profiler为true时,推荐为1 | +| --debug | 调试开关,可打印model的desc信息,true或者false,可选参数,默认fasle | +| --profiler | profiling开关,可选参数,默认false | +| --device | 指定运行设备 [0,255],可选参数,默认0 | | --help | 工具使用帮助信息 | \ No newline at end of file