All Projects → PINTO0309 → TPU-MobilenetSSD

PINTO0309 / TPU-MobilenetSSD

Licence: MIT license
Edge TPU Accelerator / Multi-TPU + MobileNet-SSD v2 + Python + Async + LattePandaAlpha/RaspberryPi3/LaptopPC

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to TPU-MobilenetSSD

MobileNetV2-PoseEstimation
Tensorflow based Fast Pose estimation. OpenVINO, Tensorflow Lite, NCS, NCS2 + Python.
Stars: ✭ 99 (+20.73%)
Mutual labels:  raspberrypi, lattepanda, tensorflow-lite
Open nsfw android
🔥🔥🔥色情图片离线识别,基于TensorFlow实现。识别只需20ms,可断网测试,成功率99%,调用只要一行代码,从雅虎的开源项目open_nsfw移植,该模型文件可用于iOS、java、C++等平台
Stars: ✭ 1,586 (+1834.15%)
Mutual labels:  tensorflowlite, tensorflow-lite
efficientnet-jax
EfficientNet, MobileNetV3, MobileNetV2, MixNet, etc in JAX w/ Flax Linen and Objax
Stars: ✭ 114 (+39.02%)
Mutual labels:  tpu, mobilenetv2
TPU-Posenet
Edge TPU Accelerator / Multi-TPU / Multi-Model + Posenet/DeeplabV3/MobileNet-SSD + Python + Sync / Async + LaptopPC / RaspberryPi
Stars: ✭ 39 (-52.44%)
Mutual labels:  raspberrypi, tpu
Keras Oneclassanomalydetection
[5 FPS - 150 FPS] Learning Deep Features for One-Class Classification (AnomalyDetection). Corresponds RaspberryPi3. Convert to Tensorflow, ONNX, Caffe, PyTorch. Implementation by Python + OpenVINO/Tensorflow Lite.
Stars: ✭ 102 (+24.39%)
Mutual labels:  raspberrypi, mobilenetv2
pico-loud talking detector
A tinyML system using a Raspberry Pi Pico and TensorFlow Lite for Microcontrollers to detect loud talking. It can be utilized to encourage people to eat quietly to prevent the spread of the coronavirus and help in the fight against COVID
Stars: ✭ 17 (-79.27%)
Mutual labels:  raspberrypi, tensorflowlite
pico-mnist
Number recognition with MNIST on Raspberry Pi Pico + TensorFlow Lite for Microcontrollers
Stars: ✭ 44 (-46.34%)
Mutual labels:  raspberrypi, tensorflow-lite
TFLite-ModelMaker-EfficientDet-Colab-Hands-On
TensorFlow Lite Model Makerで物体検出を行うハンズオン用資料です(Hands-on for object detection with TensorFlow Lite Model Maker)
Stars: ✭ 15 (-81.71%)
Mutual labels:  colaboratory, tensorflow-lite
Pi-Pool
Cardano Stakepool on Raspberry Pi
Stars: ✭ 204 (+148.78%)
Mutual labels:  raspberrypi
aw-clock
Astronomy/weather clock
Stars: ✭ 41 (-50%)
Mutual labels:  raspberrypi
OpenCV Raspberry pi TBB
Latest pre-compiled binary of Pre-released & Stable OpenCV (4.0.0) along with TBB (2018-Update 6) for Raspberry Pi.
Stars: ✭ 46 (-43.9%)
Mutual labels:  raspberrypi
Tensorflow-Lite-Object-Detection-with-the-Tensorflow-Object-Detection-API
Run object detection on edge devices using Tensorflow Lite
Stars: ✭ 23 (-71.95%)
Mutual labels:  tensorflow-lite
Torrent-To-Google-Drive-Downloader
Simple notebook to stream torrent files to Google Drive using Google Colab and python3.
Stars: ✭ 256 (+212.2%)
Mutual labels:  colaboratory
PiHueEntertainment
An application that can handle the Hue Entertainment Areas on a Raspberry Pi
Stars: ✭ 28 (-65.85%)
Mutual labels:  raspberrypi
MPU-9250-Sensors-Data-Collect
MPU9250 (MPU6500 + AK8963) I2C Driver in Python for Raspbery PI
Stars: ✭ 51 (-37.8%)
Mutual labels:  raspberrypi
MSXPi
Interface for MSX to Connect and use Raspberry Pi resources
Stars: ✭ 61 (-25.61%)
Mutual labels:  raspberrypi
xbvr
Tool to organize and stream your VR porn library
Stars: ✭ 186 (+126.83%)
Mutual labels:  raspberrypi
mobilevit-pytorch
A PyTorch implementation of "MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer".
Stars: ✭ 349 (+325.61%)
Mutual labels:  mobilenetv2
yamete
Yamete - Hentai downloader in PHP CLI - Easy site downloader PHP system
Stars: ✭ 63 (-23.17%)
Mutual labels:  raspberrypi
Age-Gender Estimation TF-Android
Age + Gender Estimation on Android with TensorFlow Lite
Stars: ✭ 34 (-58.54%)
Mutual labels:  tensorflow-lite

TPU-MobilenetSSD

Environment

  1. LattePanda Alpha (Ubuntu16.04) / RaspberryPi3 (Raspbian) / LaptopPC (Ubuntu16.04)
  2. Edge TPU Accelerator (Supports multi-TPU)
  3. USB Camera (Playstationeye)

My articles

1.I tested the operating speed of MobileNet-SSD v2 using Google Edge TPU Accelerator with RaspberryPi3 (USB2.0) and LaptopPC (USB3.1) (MS-COCO)

2.Structure visualization of Tensorflow Lite model files (.tflite)

3.I wanted to speed up the operation of the Edge TPU Accelerator as little as possible, so I tried to generate a .tflite of MobileNetv2-SSDLite (Pascal VOC) and compile it into a TPU model. Part 1

4.Since I wanted to speed up the operation of the Edge TPU Accelerator as little as possible, I transferred and learned MobileNetv2-SSD / MobileNetv1-SSD + MS-COCO with Pascal VOC and generated .tflite. Docker Part 2

5.Since we wanted to speed up the operation of the Edge TPU Accelerator as little as possible, I transferred and learned MS-COCO with Pascal VOC and generated .tflite, Google Colaboratory [GPU]. Part 3

6.Edge TPU Accelerator + custom model MobileNetv2-SSDLite .tflite generation 【Success】 Docker compilation Part.4

7.[150 FPS ++] Connect three Coral Edge TPU accelerators to infer parallelism and get ultra-fast object detection inference performance ーTo the extreme of useless high performanceー

LattePanda Alpha Core m3 + USB 3.0 + Google Edge TPU Accelerator + MobileNet-SSD v2 + Async mode

320x240
about 80 - 90 FPS
https://youtu.be/LERXuDXn0kY

01

LattePanda Alpha Core m3 + USB 3.0 + Google Edge TPU Accelerator + MobileNet-SSD v2 + Async mode

640x480
about 60 - 80 FPS
https://youtu.be/OFEQHCQ5MsM

02

Core i7 + USB 3.0 + Google Edge TPU Accelerator / Multi-TPUs x3 + MobileNet-SSD v2 + Async mode

320x240
about 150 FPS++
https://youtu.be/_qE9kmk8gUA

03 04

Environment construction procedure

$ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add-
$ echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
$ sudo apt-get update
$ sudo apt-get upgrade edgetpu
$ wget https://dl.google.com/coral/edgetpu_api/edgetpu_api_latest.tar.gz -O edgetpu_api.tar.gz --trust-server-names
$ tar xzf edgetpu_api.tar.gz
$ cd edgetpu_api
$ bash ./install.sh

Usage

MobileNet-SSD-TPU-async.py -> USB camera animation and inference are asynchronous (The frame is slightly off.)
MobileNet-SSD-TPU-sync.py -> USB camera animation and inference are synchronous (The frame does not shift greatly.)

If you use USB3.0 USBHub and connect multiple TPUs, it automatically detects multiple TPUs and processes inferences in parallel at high speed.

$ git clone https://github.com/PINTO0309/TPU-MobilenetSSD.git
$ cd TPU-MobilenetSSD
$ python3 MobileNet-SSD-TPU-async.py
usage: MobileNet-SSD-TPU-async.py [-h] [--model MODEL] [--label LABEL]
                                  [--usbcamno USBCAMNO]

optional arguments:
  -h, --help           show this help message and exit
  --model MODEL        Path of the detection model.
  --label LABEL        Path of the labels file.
  --usbcamno USBCAMNO  USB Camera number.

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].