aboutsummaryrefslogtreecommitdiff
path: root/tests/ModelAccuracyTool-Armnn/README.md
blob: 2a8c977968b03c3bec7b7ce1a9dd7c00bf504a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# The ModelAccuracyTool-Armnn

The `ModelAccuracyTool-Armnn` is a program for measuring the Top 5 accuracy results of a model against an image dataset.

Prerequisites:
1. The model is in .armnn format model file. The `ArmnnConverter` can be used to convert a model to this format.
2. The ImageNet test data is in raw tensor file format. The `ImageTensorGenerator` can be used to convert the test
images to this format.

|Cmd:|||
| ---|---|---|
| -h | --help                   | Display help messages |
| -m | --model-path             | Path to armnn format model file |
| -c | --compute                | Which device to run layers on by default. Possible choices: CpuRef, CpuAcc, GpuAcc |
| -d | --data-dir               | Path to directory containing the ImageNet test data |
| -i | --input-name             | Identifier of the input tensors in the network separated by comma |
| -o | --output-name            | Identifier of the output tensors in the network separated by comma |
| -v | --validation-labels-path | Path to ImageNet Validation Label file |

Example usage: <br>
<code>./ModelAccuracyTool -m /path/to/model/model.armnn -c CpuRef -d /path/to/test/directory/ -i input -o output
-v /path/to/file/val.txt</code>