The invention discloses a low-power-consumption low-resource-occupancy cross-network-layer data flow method for a target detection
system of mobile
terminal equipment, and
hardware structure design of the corresponding target detection
system is carried out based on the data flow method. In the reasoning process of the YOLOv2 target detection network designed by the invention, after quantitative reconstruction, calculation of a main convolutional layer, a scale scaling layer, a maximum
pooling layer and a reordering layer is carried out. The process of executing YOLOv2 network reasoning by the mobile
terminal equipment target detection
system comprises the following steps of: inputting an input feature map into a linear convolutional layer circuit to execute parallel MAC (
Media Access Control) calculation to obtain a convolutional output feature map; inputting the
convolution output feature map into a scale scaling layer circuit for scale scaling operation; if the subsequent layer is the maximum
pooling layer, inputting the
convolution output feature map into the maximum
pooling operation of a maximum pooling layer circuit; if the subsequent layer is a reordering layer, inputting the
convolution output feature map into a reordering layer circuit for reordering operation; and according to the quantized and reconstructed YOLO
network structure, repeating the on-
chip cross-network-layer execution with the convolutional layer as the center until calculation of all network
layers in the
network structure is completed. By adopting a multi-
level data multiplexing strategy and a multi-level
buffer design, data
multiplexing of the input feature map and the multi-channel convolution kernel weight in the
chip is maximized, a large amount of extra off-
chip data
heavy load generating
power consumption and
delay is reduced, the
power consumption of a target detection system and occupation of on-chip memory resources are reduced to the minimum, and the detection efficiency of the target detection system is improved. Compared with the work of other related literatures, the method is more suitable for mobile
terminal equipment with extremely limited hardware resources and
power consumption.