Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.43 KB

BENCHMARKS.rst

File metadata and controls

51 lines (32 loc) · 1.43 KB

Benchmarks

In order to measure FPS, power and latency of the Hailo Model Zoo networks you can use the HailoRT command line interface.
For more information please refer to the HailoRT documentation in hailo.ai.

Example

The HailoRT command line interface works with the Hailo Executable File (HEF) of the model.
To generate the HEF file use the following command:
hailomz compile <model_name>
After building the HEF you will be able to measure the performance of the model by using the HailoRT command line interface.
Example for measuring performance of resnet_v1_50:
hailortcli benchmark resnet_v1_50.hef

Example output:

=======
Summary
=======
FPS     (hw_only)                 = 1328.83
        (streaming)               = 1328.8
Latency (hw)                      = 2.93646 ms
Power in streaming mode (average) = 3.19395 W
                        (max)     = 3.20456 W

Using Datasets from the Hailo Model Zoo

To use datasets from the Hailo Model Zoo, you can use the command:

python hailo_model_zoo/tools/conversion_tool.py /path/to/tfrecord_file resnet_v1_50

which will generate a bin file with serialized images. This bin file can be used inside the HailoRT:

hailortcli benchmark resnet_v1_50.hef --input-files tfrecord_file.bin