Coder Social home page Coder Social logo

craft-zhang / tensorflow-lite-cpp-examples Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 192.48 MB

Forked from TI Repo https://git.ti.com/git/apps/tensorflow-lite-examples.git

License: Apache License 2.0

C++ 65.42% Shell 32.99% CMake 1.60%
c classification cpp detection gem5-arm gem5-simulator mobilenet segmentation tensorflow-lite tflite

tensorflow-lite-cpp-examples's Introduction

Forked from TI Repo https://git.ti.com/git/apps/tensorflow-lite-examples.git

Tensorflow Lite demos with input via OpenCV and used for gem5 full system simulation

Procedure to build
----------------------------
Step 1: Set environment variables
    * Arm only:
      - export TARGET_TOOLCHAIN_PREFIX
      - export TF_SRC_DIR
      - export OPENCV_SRC_DIR

Step 2: Run "make" from the top-level directory to build the demos

Example:
  $ export TARGET_TOOLCHAIN_PREFIX=aarch64-linux-gnu-
  $ export TF_SRC_DIR="/home/craft/workspace/gem5/tensorflow_src"
  $ export OPENCV_SRC_DIR="/home/craft/workspace/gem5/opencv"

  $ make

Binaries to run on target
---------------------------

* Classification: run "tflite_classification" with command usage as below:
--tflite_model, -m: model_name.tflite
--input_src, -r: [0|1|2] input source: image 0, video 1, camera 2
--input_path, -i: path of the input image/video or video port for camera, e.g., 1 for /dev/video1
--labels, -l: labels for the model
--frame_cnt, -c: the number of frames to be used
--input_mean, -b: input mean
--input_std, -s: input standard deviation
--profiling, -p: [0|1], profiling or not
--threads, -t: number of threads

* Segmentation: run "tflite_segmentation" with command usage as below
--tflite_model, -m: model_name.tflite
--input_src, -r: [0|1|2] input source: image 0, video 1, camera 2
--input_path, -i: path of the input image/video or video port for camera, e.g., 1 for /dev/video1
--frame_cnt, -c: the number of frames to be used
--input_mean, -b: input mean
--input_std, -s: input standard deviation
--profiling, -p: [0|1], profiling or not
--threads, -t: number of threads

tensorflow-lite-cpp-examples's People

Contributors

craft-zhang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tensorflow-lite-cpp-examples's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.