Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 1.29 KB

readme.md

File metadata and controls

55 lines (47 loc) · 1.29 KB

Tengine examples

GitHub license

  • imagenet_classification(squeezenet, mobilenet, resnet50, alexnet, googlenet, inception_v3, inception_v4, vgg16)
  • yolov2
  • ssd
  • faster_rcnn
  • mtcnn
  • lighten_cnn
  • caffe_wrapper
    • cpp_classification(squeezenet, mobilenet)
    • mtcnn
  • tensorflow_wrapper
    • label_image(inception_v3, mobilenet)
  • mobilenet_ssd

Download required models

Download the models from Tengine model zoo (psw: 57vb)

How to build these examples

1. install Tengine

2. install opencv

    sudo apt-get install libopencv-dev

3. make examples

3.1 Linux

cd ~/tengine/examples
vim linux_build.sh

Set the correct Tengine path

mkdir build
cd build
../linux_build.sh
make -j4 

3.2 Android

cd ~/tengine/examples
vim android_build_armv7.sh or vim android_build_armv8.sh

Set the correct NDK path ,Tengine path ,Opencv path and protobuf path. if you want to run Tengine with OpenBlas, please add the correct blas path in android_build_armv7.sh or android_build_armv8.sh.eg: -DBLAS_DIR=/home/usr/openbla020_android

mkdir build
cd build
../android_build_armv7.sh or ../android_build_armv8.sh
make -j4