Real Time Inference on Raspberry Pi 4 and 5 (40 fps!)
Author: Tristan Rice
PyTorch has out of the box support for Raspberry Pi 4 and 5. This tutorial will guide you on how to setup a Raspberry Pi for running PyTorch and run a MobileNet v2 classification model in real time (30-40 fps) on the CPU.
This was all tested with Raspberry Pi 4 Model B 4GB but should work with the 2GB variant as well as on the 3B with reduced performance.
https://user-images.githubusercontent.com/909104/153093710-bc736b6f-69d9-4a50-a3e8-9f2b2c9e04fd.gif