The invention relates to an
algorithm acceleration method for scene recognition and switching, and the method comprises the steps: training an OfficientNet model through an indoor and outdoor
data set, and obtaining the precision of the model; calculating the importance of each
convolution kernel of each layer of network of the OfficientNet; sorting is carried out, and
convolution kernels with low importance are deleted; finely adjusting the pruned model by using the
original data, and carrying out precision comparison to obtain a clipped model; and performing quantization operation on the
cut model, converting 32
floating point data in the model into 16
floating point data, performing fine adjustment, and further accelerating the reasoning speed of the model. According to the invention, the method of model
pruning and model quantification is applied to the accelerated optimization of the EfficentNet model, and the complexity of the model is reduced by effectively
cutting the convolutional layer of the EfficentNet model; and meanwhile,
model parameters are converted into 16 floating points, so that the reasoning speed of the model is greatly improved, the model precision is slightly reduced, and the model can be more favorably applied to embedded equipment.