Giter Site home page Giter Site logo

nnv12's Introduction

NNV12

This repo is a DNN framework for Boosting DNN Cold Inference. This repo is based on ncnn.


Benchmark on Android Phone CPU

The following instructions are executed on a PC with an operating system of Ubuntu 22.04.

  1. Install NDK and adb.

    $ mkdir ./NDK && cd ./NDK
    $ wget https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip
    $ unzip ./android-ndk-r21e-linux-x86_64.zip
    $ echo export ANDROID_NDK=$HOME/NDK/android-ndk-r21e >> ~/.bashrc
    $ source ~/.bashrc
    $ sudo apt install adb
  2. Connect PC and android phone via USB cable.

  3. Clone this repo.

    $ git clone --recursive https://github.com/Yeeethan00/NNV12.git 
    $ cd ./NNV12
  4. Build and push models to android phone.

    $ cd ./scripts
    $ chmod +x ./init_arm64.sh
    $ ./init_arm64.sh
  5. Deploy models.

    $ chmod +x ./deployed_arm64.sh
    $ ./deployed_arm64.sh
  6. Run NNV12.

    $ chmod +x ./run_arm64.sh
    $ ./run_arm64.sh
  7. The result of latency is shown in "./scripts/output.csv".

There are results get from Meizu 16T (Snapdragon 855).

Model latency(ms)
alexnet 120.123
googlenet 56.401
mobilenet 22.084
mobilenet_v2 25.346
resnet18 59.672
resnet50 103.136
shufflenet 13.576
shufflenet_v2 12.033
squeezenet 14.139
efficientnet_b0 27.235
mobilenetv2_yolov3 25.258
mobilenet_yolo 25.953

Benchmark on Jetson Nano GPU

The following instructions are executed on a Jetson Nano.

  1. Install Vulkan and CMake.

    $ cd ./scripts
    $ chmod +x ./install_jetson.sh
    $ ./install_jetson.sh
  2. Clone this repo.

    $ git clone --recursive https://github.com/Yeeethan00/NNV12.git 
    $ cd ./NNV12
  3. Build project.

    $ chmod +x ./init_jetson.sh
    $ ./init_jetson.sh
  4. Deploy models.

    $ chmod +x ./deployed_jetson.sh
    $ ./deployed_jetson.sh
  5. Run NNV12.

    $ chmod +x ./run_jetson.sh
    $ ./run_jetson.sh
  6. The result of latency is shown in "./scripts/output.csv".

There are results get from Jetson Nano.

Model latency(ms)
alexnet 262.942
googlenet 161.181
mobilenet 86.916
mobilenet_v2 102.992
resnet18 183.460
resnet50 295.534
shufflenet 61.941
shufflenet_v2 75.309
squeezenet 96.929
efficientnet_b0 141.834
mobilenetv2_yolov3 150.258
mobilenet_yolo 91.953

nnv12's People

Contributors

ayounes-nviso avatar bug1989 avatar caishanli avatar chosungmann avatar cmdbug avatar cook avatar corea avatar daquexian avatar dependabot[bot] avatar eric612 avatar gemfield avatar guoxiawang avatar howave avatar kalcohol avatar lzx1413 avatar ncnnnnn avatar nihui avatar nullptr-leo avatar proydakov avatar restyled-io[bot] avatar rogerou avatar shuangliu1992 avatar timen avatar tpoisonooo avatar xieydd avatar yirongjie avatar youzainn avatar zchrissirhcz avatar zhiliu6 avatar zhiqwang avatar

Watchers

 avatar

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.