Assistive navigation for the visually impaired โ YOLOv8n at 24.7 FPS on Raspberry Pi 5 + Hailo-8 NPU. 5-stage model compression, IMU sensor fusion, live 2D polar semantic map. Fully offline. No cloud. No GPU.
Four components working together โ fully portable on a USB-C power bank.
From a 6 MB FP32 model to a 4.5 MB Hailo HEF โ with accuracy actually improving at the end.
๐ก Why pruning improves accuracy
Removing the 20% of filters with the lowest L1-norm eliminates the filters that contribute the most quantization noise โ giving the INT8 quantizer cleaner weight distributions to round. mAP50 jumped from 0.6093 (PTQ) to 0.6793 (Pruned) โ an 11.5% improvement without any new training data.
All stages measured on the same 20-class COCO128 validation set.
| Stage | mAP50 | FPS (T4) | Size | |
|---|---|---|---|---|
| Baseline FP32 | 120.5 | 6.23 MB | ||
| PTQ INT8 | 214.4 | 5.57 MB | ||
| QAT INT8 | 186.6 | 5.65 MB | ||
| L1 Pruned INT8 | 218.3 | 5.65 MB | โ Deployed | |
| Hailo HEF on RPi5 | โ | 24.7 | 4.50 MB | โ Edge |
Six steps from camera frame to live polar map โ all running on the Raspberry Pi 5.
IISc Bengaluru ยท Department of Computational and Data Sciences
Instructor: Dr. Pandarasamy Arjunan
Training notebook, HEF model, RPi5 inference script, Nicla Vision firmware, and IEEE-format report โ all in the repo.