Semantic segmentation has emerged as a fundamental problem in computer vision, gaining particular importance in real-time applications such as autonomous driving. The main challenge is achieving high accuracy while operating under computational and hardware constraints. In this research, we present an FPGA-based implementation of real-time semantic segmentation leveraging the lightweight LMIINet architecture and the Coarse-Grained Reconfigurable Array for Machine Learning (CGRA4ML) hardware framework. The model was trained using Quantization-Aware Training (QAT) with 8-bit precision on the Cityscapes dataset, reducing memory footprint by a factor of four while enabling efficient fixed-point computations. Necessary modifications were applied to adapt the model to CGRA4ML constraints, including simplifying skip connections, employing hardware-friendly operations such as depthwise-separable and 1A-1 convolutions, and redesigning parts of the Flatten Transformer. Our implementation achieves approximately 90% pixel accuracy and 45% mean Intersection-over-Union (mIoU), operating in real-time at 20 frames per second (FPS) with 50.1 ms latency on the ZCU104 FPGA board. The results demonstrate the potential of CGRA4ML, with its flexibility in mapping modern layers and off-chip memory utilization for skip connections, provides a path for implementing advanced semantic segmentation networks on FPGA for real-time applications to outperform traditional GPU solutions in terms of power efficiency while maintaining competitive accuracy. The code for this project is publicly available at https://github.com/STAmirr/ cgra4ml_semantic_segmentation
Real-time semantic segmentation on FPGAs for autonomous vehicles with hls4ml
Politecnico di Milano(米兰理工大学);Institute of Physics Belgrade(贝尔格莱德物理研究所);University of Oxford(牛津大学);European Organization for Nuclear Research (CERN)(欧洲核子研究组织);ETH Zürich(苏黎世联邦理工学院);Chalmers University of Technology(查尔姆斯理工大学);Zenseact(Zenseact公司);University of Gothenburg(哥德堡大学);Fermi National Accelerator Laboratory(费米国家加速器实验室);Amazon(亚马逊公司);University of Washington(华盛顿大学);Massachusetts Institute of Technology(麻省理工学院)
ReS2tAC -- UAV-Borne Real-Time SGM Stereo Optimized for Embedded ARM and CUDA Devices
Fraunhofer Institute of Optronics, System Technologies and Image Exploitation (IOSB)(弗劳恩霍夫光学、系统技术与图像 exploitation 研究所);Fraunhofer Center for Machine Learning(弗劳恩霍夫机器学习中心);Karlsruhe Institute of Technology (KIT)(卡尔斯鲁厄理工学院);Institute of Photogrammetry and Remote Sensing, Karlsruhe Institute of Technology (KIT)(卡尔斯鲁厄理工学院摄影测量与遥感研究所);Vision and Fusion Laboratory, Karlsruhe Institute of Technology (KIT)(卡尔斯鲁厄理工学院视觉与融合实验室)