Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tflite model #1

Open
prpankajsingh opened this issue Nov 30, 2022 · 1 comment
Open

Custom tflite model #1

prpankajsingh opened this issue Nov 30, 2022 · 1 comment

Comments

@prpankajsingh
Copy link

Hi,
I am interested in your solution. I have few questions:

  1. Can we integrate our custom tflite object detection model (such as trained using google's automl)?
  2. If yes, How many FPS we may get on Raspberry Pi 4b using our custom trained tflite model (using automl) integrated with your GPIO based software.
  3. Currently, as per your documentation, trigger mechanism checks some criteria before raising it such as min probability of 50%, area occupied, motion etc..., Are these criteria customizable ?
  4. Currently trigger mechanism decides to raise the trigger based on some rules for every image. Is it possible, to add some additional criteria which will raise the trigger only iff it detects in more than certain number of frames (say 50%) of last 5 (or 10 or 20..) frames... this will increase the robustness of the trigger and will reduce the false positives.
@Qengineering
Copy link
Owner

@prpankajsingh,

  1. I'm using the ncnn framework running a Yolo deviate, wrapped in a lib. You can use a tailor made TF-lite, sure.
  2. Using flaoting points, most networks run at 2-5 FPS on a Raspberry Pi 4. Integers are much faster. Up to 20 FPS is possible.
  3. Criteria are all defined in a setting file. You can change them whenever you like.
  4. That's possible.

Do keep in mind, you have to program the above modifications yourself. All C++ code is provide on the image.
Especially the integration of TF-Lite can be cumbersome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants