nathanrooy / rpi-urban-mobility-tracker

The easiest way to count pedestrians, cyclists, and vehicles on edge computing devices or live video feeds.
GNU General Public License v3.0
121 stars 37 forks source link

frame rate while using TPU? #4

Closed GOBish closed 4 years ago

GOBish commented 4 years ago

When using the edgeTPU (-tpu option) and -display option, I am getting frame rates of only 1 FPS or so. Is this expected? I would have expected better performance.

Thanks!

nathanrooy commented 4 years ago

Yes, that sounds about right. If you drop the -display flag it should reach ~10fps on an rpi.

GOBish commented 4 years ago

That is interesting -- I would have expected a higher frame rate with RPi 4 (4gb) + Coral EdgeTPU. Using a mobilenet model I get >30fps with object detection and my experiments with SORT in the past have not significantly slowed that.