R2Inference/Examples/TensorFlow-Lite: Difference between revisions
< R2Inference | Examples
No edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
</noinclude> | </noinclude> | ||
{{DISPLAYTITLE:R2Inference - TensorFlow-Lite Examples|noerror}} | {{DISPLAYTITLE:R2Inference - TensorFlow-Lite Examples|noerror}} | ||
__TOC__ | |||
R2Inference provide several examples to highlight its usage with different architectures and frameworks. The models used for this examples can be downloaded from our [[R2Inference/Model Zoo|Model Zoo]]. | R2Inference provide several examples to highlight its usage with different architectures and frameworks. The models used for this examples can be downloaded from our [[R2Inference/Model Zoo|Model Zoo]]. | ||
= Preparation = | == Preparation == | ||
To test the Tensorflow-Lite example you will need a Tensorflow-Lite C++ API compatible graph file. You can obtain the model from the [[R2Inference/Model Zoo|Model Zoo]]. | To test the Tensorflow-Lite example you will need a Tensorflow-Lite C++ API compatible graph file. You can obtain the model from the [[R2Inference/Model Zoo|Model Zoo]]. | ||
= Inception v2 = | == Inception v2 == | ||
This example is located in <code> r2inference/examples/r2i/tflite </code>. | This example is located in <code> r2inference/examples/r2i/tflite </code>. |
Revision as of 20:58, 16 March 2020
Make sure you also check R2Inference's companion project: GstInference |
R2Inference |
---|
Introduction |
Getting started |
Supported backends |
Examples |
Model Zoo |
Contact Us |
|
R2Inference provide several examples to highlight its usage with different architectures and frameworks. The models used for this examples can be downloaded from our Model Zoo.
Preparation
To test the Tensorflow-Lite example you will need a Tensorflow-Lite C++ API compatible graph file. You can obtain the model from the Model Zoo.
Inception v2
This example is located in r2inference/examples/r2i/tflite
.
To use this example run:
./inception -i [JPG input Image] -m [Tflite Model] -s [Model Input Size]
For example evaluating this image:
Should produce the following output:
./inception -i Plane_example_input.jpg -m graph_inceptionv2.tflite -s 224 Loading Model: graph_inceptionv2.tflite Setting model to engine Loading image: Plane_example_input.jpg Configuring frame Starting engine Predicting... Highest probability is label 405 (0.704471) Stopping engine
According to the ImageNet labels 405 corresponds to an 'airship'.