Giter Site home page Giter Site logo

qengineering / tensorflow_lite_pose_rpi_64-bits Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 10.0 12.82 MB

TensorFlow Lite Posenet on bare Raspberry Pi 4 with 64-bit OS at 9.4 FPS

Home Page: https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html

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

C++ 100.00%
tensorflow-lite tensorflow-examples raspberry-pi-4 ubuntu1804 deep-learning cpp high-fps aarch64 armv7 armv8

tensorflow_lite_pose_rpi_64-bits's Introduction

output image Find this example on our SD-image

TensorFlow_Lite_Pose_RPi_64-bits

output image

TensorFlow Lite Posenet running at 9.4 FPS on bare Raspberry Pi 4 with Ubuntu

License

A fast C++ implementation of TensorFlow Lite Posenet on a bare Raspberry Pi 4 64-bit OS.
Once overclocked to 1825 MHz, the app runs at 9.4 FPS without any hardware accelerator.
Special made for a Raspberry Pi 4 see Q-engineering deep learning examples


Papers: https://medium.com/tensorflow/real-time-human-pose-estimation-in-the-browser-with-tensorflow-js-7dd0bc881cd5


Benchmark.

Frame rate Pose Lite : 9.4 FPS (RPi 4 @ 1825 MHz - 64 bits OS)
Frame rate Pose Lite : 5.0 FPS (RPi 4 @ 2000 MHz - 32 bits OS) see 32-OS


Dependencies.

To run the application, you have to:

  • A raspberry Pi 4 with a 64-bit operating system. It can be the Raspberry 64-bit OS, or Ubuntu 18.04 / 20.04. Install 64-bit OS
  • TensorFlow Lite framework installed. Install TensorFlow Lite
  • OpenCV 64 bit installed. Install OpenCV 4.5
  • 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/TensorFlow_Lite_Pose_RPi_64-bits/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:
Dance.mp4
posenet_mobilenet_v1_100_257x257_multi_kpt_stripped.tflite
TestTensorFlow_Lite_Pose.cpb
Pose_single.cpp


Running the app.

Run TestTensorFlow_Lite.cpb with Code::Blocks. More info or
if you want to connect a camera to the app, follow the instructions at Hands-On.
I fact you can run this example on any aarch64 Linux system.

See the movie at: https://www.youtube.com/watch?v=LxSR5JJRBoI


paypal

tensorflow_lite_pose_rpi_64-bits's People

Contributors

qengineering avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

tensorflow_lite_pose_rpi_64-bits's Issues

camera not working

It is not working with my camera on raspberry pi 4B, the camera I am using using the official pi camera, do you know how to get it working with raspi camera?

cannot find VerifyField<int8_t>

Hello - I did everything follow the instructions from https://qengineering.eu/install-tensorflow-2-lite-on-raspberry-64-os.html
for installing TensorFlow Lite on RPi4B with Bullseye 64-bits OS

Dependencies was fully installed and the C++ installation was successful, after exchanging the old version of flatbuffers and successful compilation, i got two libraries and two folders with header files.
2022-02-08-030833_1920x1080_scrot

but when i run TestTensorFlow_Lite.cpb with Code::Blocks, comes out the following errors. That VerifyField<int8_t> is missing.

2022-02-08-030032_1920x1080_scrot
2022-02-08-030319_1920x1080_scrot

could you please tell me, how can i solve this problem?

/usr/bin/ld: cannot find -ltensorflow-lite

Hello - I did everything follow your instructions for install TensorFlowLite on RPi4 and when I'm trying to build Pose project with code block I'm obtaining this error:

/usr/bin/ld cannot find -ltensorflow-lite

I was looking for a solution but I wasn't able to fix it. Did you maybe have a similar problem or do you have some ideas?

Shared libraries vs Static libraries...

I tried it under virtual Raspbian using VirtualBox

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.