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

Performance Degradation with YOLOv5 on CPU – Need Assistance in Improving FPS #61

Open
ranjith502 opened this issue Jan 3, 2024 · 0 comments

Comments

@ranjith502
Copy link

Dear play_with_tflite Contributors,

First and foremost, I would like to extend my sincere gratitude for your hard work in developing this library. It has been immensely beneficial to my learning journey, and I appreciate the clarity and quality of the code.

I am currently facing a performance issue while running YOLOv5lite on a CPU. I've made some modifications to main.cpp to enable camera support. Initially, the software runs as expected with a frame rate of approximately 10-12 FPS. However, after the first 10 frames, I observe a significant drop in performance, with FPS values plummeting to around 2-3 FPS.

This performance bottleneck is a critical issue for my project, as I aim to achieve near real-time processing speeds, ideally around 25 FPS, on a CPU-only setup. I understand that running advanced models like YOLOv5 exclusively on a CPU can be challenging, but I am seeking advice or potential optimizations that could help in improving the frame rate.

Screenshot from 2024-01-03 16-26-52
Screenshot from 2024-01-03 16-31-18

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

1 participant