GithubHelp home page GithubHelp logo

qengineering / yolact-ncnn-raspberry-pi-4 Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 3.0 857 KB

Yolact running on the ncnn framework on a bare Raspberry Pi 4 with 64 OS, overclocked to 1950 MHz

Home Page: https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html

License: BSD 3-Clause "New" or "Revised" License

C++ 100.00%
yolact ncnn raspberry-pi-4 raspberry-pi-64-os aarch64 cpp deep-learning ncnn-framework ncnn-model raspberry-pi

yolact-ncnn-raspberry-pi-4's Introduction

output image Find this example on our SD-image

Yolact-ncnn on Raspberry Pi 64 bits

output image

Yolact with the ncnn framework.

License

The frame rate is about 3.5 sec per image (RPi overclocked to 1950 MHz)
Special made for a bare Raspberry Pi see Q-engineering deep learning examples

Paper: https://openaccess.thecvf.com/content_ICCV_2019/papers/Bolya_YOLACT_Real-Time_Instance_Segmentation_ICCV_2019_paper.pdf


Benchmark.

Model size objects mAP RPi 4 64-OS 1950 MHz
YoloV5n 640x640 nano 80 28.0 1.4 - 2.0 FPS
YoloV5s 640x640 small 80 37.4 1.0 FPS
YoloV5l 640x640 large 80 49.0 0.25 FPS
YoloV5x 640x640 x-large 80 50.7 0.15 FPS
Yoact 550x550 80 28.2 0.28 FPS

Dependencies.

To run the application, you have to:

  • A raspberry Pi 4 with a 32 or 64-bit operating system. It can be the Raspberry 64-bit OS, or Ubuntu 18.04 / 20.04. Install 64-bit OS
  • The Tencent ncnn framework installed. Install ncnn
  • OpenCV 64 bit installed. Install OpenCV 4.3
  • Code::Blocks installed. ($ sudo apt-get install codeblocks)

Installing the app.

To extract and run the network in Code::Blocks
$ mkdir MyDir
$ cd MyDir
$ wget https://github.com/Qengineering/Yolact-ncnn/archive/refs/heads/master.zip
$ unzip -j master.zip
Remove master.zip and README.md as they are no longer needed.
$ rm master.zip
$ rm README.md

Your MyDir folder must now look like this:
dog.jpg
elephant.jpeg
girafe.jpeg
mumbai.jpg
onyx.jpeg
result_elephant.png
result_zebra.png
Yolact.cpb
yolact.cpp
yolact.bin (download this file from Gdrive )
yolact.param


Running the app.

Run Yolact.cpb with Code::Blocks.
For more info follow the instructions at Hands-On.

Many thanks to nihui again!


paypal

yolact-ncnn-raspberry-pi-4's People

Contributors

qengineering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yolact-ncnn-raspberry-pi-4's Issues

Yolact NCNN Android

Hi,
Do you have implemented an Demo Android app for Yolact with NCNN ? I would like to try out inference on it. It will be really helpful to me. Thank you in advance..

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.