HaiderAbasi / OpenCV-Raspberry-Pi-4-Projects-on-the-Edge

Harnessing the power of Raspberry Pi 4 to build cutting-edge computer vision solutions. Whether you're interested in object detection, image classification, or real-time video analysis, this project will give you the tools you need to get started.
MIT License
0 stars 0 forks source link

Pytorch , TF Lite Model Loading and Logging #6

Open noshluk2 opened 1 year ago

noshluk2 commented 1 year ago

Setting up Tflite and Pytorch model running on RPI with easy to use on PC aswell

HaiderAbasi commented 1 year ago

@noshluk2 TFLite-> Looks like a no-show. Why? Speed:

1) Video example

ImageVideo

2) Community

ImageStackOverflow

3) YoloV4-tiny on NCNN (Q-Engineer)

Image YoloV4-tiny_NCNN

======================================================================

Why is this a concern?

No speed No tracking as most trackers work on tracking by detection. Meaning they run detection on every frame so slowness overpowered

Why do we need tracking?

We need tracking to Know!

Whats the solution?

noshluk2 commented 1 year ago

I am shifting your comment to issue #20 . As this is for Tflite and Pytorch. This is an enhancement task. I will look into NCNN working on rpi and will update you on issue #20

noshluk2 commented 1 year ago

Model : detect.tflite

Video Input : Walkers.mp4

Result

Image

HaiderAbasi commented 1 year ago

@noshluk2 Actually YoloV4 or any high accuracy model is a no show on tflite. But if you got tflite running.

Can you test this TfliteTrackerbyQengineering and what inference you get. For the moment. Let say we ignore the accuracy and there are 20 cars and car counter counts 40 and we are fine with it. taking this repo as an example. Try to see if you can get this running with .py script that you have and the rest of this running at the backend or converted to .py eitherway we want to say if it runs with a fair speed . (> 7 FPS)