update msame/README_EN.md.
This commit is contained in:
+11
-11
@@ -1,10 +1,10 @@
|
||||
EN|[中文](README.md)
|
||||
|
||||
# Model Inference Tool: amexec
|
||||
# Model Inference Tool: msame
|
||||
|
||||
### Function
|
||||
|
||||
The amexec tool takes the offline model (.om) and the .bin file required by the model as the inputs, and outputs the model output data. Inferring on the same input data for multiple times is supported.
|
||||
The msame tool takes the offline model (.om) and the .bin file required by the model as the inputs, and outputs the model output data. Inferring on the same input data for multiple times is supported.
|
||||
|
||||
The model must be an offline model converted with the C7x version of ATC. The input .bin file must meet the input requirements of the model (multiple inputs are supported).
|
||||
|
||||
@@ -32,9 +32,9 @@ Install the C7x environments by referring to *Driver and Development Environment
|
||||
|
||||
**Environment requirements: The architecture is Arm and the C7x operating environment has been installed. If the preceding requirements are not meet, use method b to build the source code.**
|
||||
|
||||
Go to the **amexec** directory.
|
||||
Go to the **msame** directory.
|
||||
```
|
||||
cd $HOME/AscendProjects/tools/amexec/
|
||||
cd $HOME/AscendProjects/tools/msame/
|
||||
```
|
||||
|
||||
Go to the **out** directory.
|
||||
@@ -42,12 +42,12 @@ Go to the **out** directory.
|
||||
cd out
|
||||
```
|
||||
|
||||
The amexec tool is in the **out** directory.
|
||||
The msame tool is in the **out** directory.
|
||||
|
||||
|
||||
Run the tool in the command line.
|
||||
```
|
||||
./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
|
||||
./msame --model /home/HwHiAiUser/ljj/colorization.om --input /home/HwHiAiUser/ljj/colorization_input.bin --output /home/HwHiAiUser/ljj/MSAME/out/output1 --outfmt TXT --loop 2
|
||||
```
|
||||
|
||||
If there are multiple inputs, separate them by commas (,). Note that no space is allowed on either side of the commas.
|
||||
@@ -56,20 +56,20 @@ For details about other parameters, run the **--help** command.
|
||||
#### b. Build and run the source code.
|
||||
|
||||
**Environment requirements: The C7x operating development has been installed (both co-deployment and separate deployment are available).**
|
||||
Source code build is supported. If you need to modify the code, the code needs to be rebuilt. Run the following command to go to the **amexec** directory:
|
||||
Source code build is supported. If you need to modify the code, the code needs to be rebuilt. Run the following command to go to the **msame** directory:
|
||||
```
|
||||
cd $HOME/AscendProjects/tools/amexec/
|
||||
cd $HOME/AscendProjects/tools/msame/
|
||||
```
|
||||
Execute the build script.
|
||||
```
|
||||
./build.sh g++ $HOME/AscendProjects/tools/amexec/out
|
||||
./build.sh g++ $HOME/AscendProjects/tools/msame/out
|
||||
```
|
||||
The first parameter specifies the compiler, which is determined by the operating environment.
|
||||
The second parameter specifies the directory for amexec. To specify a relative directory, ensure that it is relative to the **out** directory.
|
||||
The second parameter specifies the directory for msame. To specify a relative directory, ensure that it is relative to the **out** directory.
|
||||
|
||||
## Precautions
|
||||
|
||||
The amexec running user must have the permission to create the directory and execute amexec in the directory. Check the permissions in advance.
|
||||
The msame running user must have the permission to create the directory and execute msame in the directory. Check the permissions in advance.
|
||||
Currently, dumping and dynamic batch are not supported.
|
||||
|
||||
## Parameter Description
|
||||
|
||||
Reference in New Issue
Block a user