tree: 1aa973087944134f108b4541c4df3e12424769e0 [path history] [tgz]
  1. ModelAccuracyTool-Armnn.cpp
  2. README.md
tests/ModelAccuracyTool-Armnn/README.md

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--helpDisplay help messages
-m--model-pathPath to armnn format model file
-c--computeWhich device to run layers on by default. Possible choices: CpuRef, CpuAcc, GpuAcc. Default: CpuAcc, CpuRef
-d--data-dirPath to directory containing the ImageNet test data
-i--input-nameIdentifier of the input tensors in the network separated by comma
-o--output-nameIdentifier of the output tensors in the network separated by comma
-v--validation-labels-pathPath to ImageNet Validation Label file

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