-
Notifications
You must be signed in to change notification settings - Fork 272
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
model.predict to slow (Low FPS) while running deep_pi_car.py #17
Comments
OK I found some reason/optimisation, after trying multiplae version of TF (2.4, 2.3, 2.0, 1.14 and1.15) an kera (2.4.3, 2.3 and 2.2.4) You have to train the model with those version install as well in google colab : the beginning of my file end_to_end_lane_follower.py look like this now: import cv2 _SHOW_IMAGE = False class EndToEndLaneFollower(object):
` |
Last detail, I also disactivate all the create_video_recorder in deep_pi_car.py to free CPU ressource to run the model |
i got issue to i use raspberry pi 3 B+ if i start deep pi car. py camara FPS 1 and delay 8000ms how can i solve that problem? |
I'm not that far yet (self learning process) @dkclssha123, however I got some really latency on Raspberry pi 4. To fix it, I overclocked it to 2GHz and it works quite well now. |
Hello,
First of all thanks for the great work and tutorial.
I managed to train my own model following your instruction.
When I run the coco_object_detection.py the FPS are turning around 16 FPS (which seem normale according to your explanation)
but when I execute deep_pi_car.py, the FPS of the model.predict are so low that the pi-car front wheels turn way to late and always get out of the track. (same track working fine in opencv mode).
When I execute python3 end_to_end_lane_follower.py, the diff between the desired and the model never excide 6, so I guess the model is ok, i seem that only its execution is slow.
I am running on an Pi4 with:
Python 3.7.3
tf version 2.3.0
numpy version 1.20.3
keras version 2.4.3
Do you have any idea how to debug/fix this low FPS ?
Thanks in advance for your help
The text was updated successfully, but these errors were encountered: