NPU Accelerator: Quantized Real-Time Vehicle Detection on PYNQ-Z1 Using FINN
Organizations: Intigia · DFKI
Abstract
This paper presents the design, optimization, implementation, and on-board validation of a neural processing unit (NPU) accelerator for real-time vehicle detection on the resource-constrained Xilinx Zynq XC7Z020 device of the PYNQ-Z1 board. The work follows a hardware/software co-design methodology that combines quantization-aware training (QAT), lightweight YOLO-derived detectors, Brevitas/QONNX model export, FINN dataflow compilation, Vivado implementation, and physical benchmarking on the target board. Four simultaneous engineering requirements define successful deployment: throughput above 30 frames/s (FPS), energy efficiency above 7 FPS/W, programmable-logic (PL) hardware latency below 50 ms, and Pascal VOC detection accuracy above 0.55 [email protected]. The design space includes LP-YOLO and LP-YOLO Slim variants, a custom YOLOv3-tiny reference, 4-bit and mixed low-bit quantization, 320320 and 256256 inputs, manual and automatic FIFO sizing, and programmable-logic clocks from 100 to 200 MHz. The final LP-YOLO Slim configuration uses a 256256 input, w2a4 quantization, and a 142.86 MHz PL clock. With batch 100 it reaches 35.66 FPS at 2.91 W, corresponding to 12.25 FPS/W, while measured PL latency is 45.11 ms and VOC [email protected] is 0.594. This is the only evaluated configuration for which the supplied measurements satisfy all four requirements simultaneously. The results show that low-bit QAT, architectural slimming, FINN folding and FIFO optimization, and moderate clock scaling can jointly provide a practical real-time detector on a small Zynq FPGA.
Figures & tables
| Implementation | CLK | Batch | FPS | Power | FPS/W | E2E Lat. | HW-PL Lat. | mAP VOC | mAP COCO |
|---|---|---|---|---|---|---|---|---|---|
| (MHz) | (W) | (ms) | (ms) | ||||||
| LP-YOLO 320 w4a4, FIFO depth 6 | 100 | 100 | 22.15 | 2.00 | 11.075 | 66.47 | 62.41 | – | – |
| LP-YOLO 320 w4a4, FIFO depth 6 | 200 | 100 | 44.29 | 2.18 | 20.317 | 35.48 | 31.73 | – | – |
| LP-YOLO 320 w4a4, FIFO automatic | 100 | 100 | 35.00 | 2.15 | 16.279 | 44.96 | 40.82 | 0.390 | 0.270 |
| LP-YOLO Slim 256 w2a4 | 142.86 | 100 | 35.66 | 2.91 | 12.25 | 49.77 | 45.11 | 0.594 | 0.492 |
| YOLOv3-tiny custom w4a4 | 100 | 100 | 12.35 | 2.08 | 5.938 | 101.02 | 94.87 | 0.761 | 0.559 |
| KPI | Target | Measured | Status |
|---|---|---|---|
| Throughput | FPS | 35.66 FPS | PASS |
| Efficiency | FPS/W | 12.25 FPS/W | PASS |
| HW latency | ms | 45.11 ms | PASS |
| [email protected] VOC | 0.594 | PASS |
FPGA-Based Neural Network Acceleration
Field-programmable gate array (FPGA)-based neural network acceleration maps models to reconfigurable hardware for fast, energy-efficient inference.
See all 89 papers