The embodiment of the invention provides a model optimization method,
electronic equipment and a storage medium. The method comprises the following steps: acquiring an initial quantization bit width and an initial
pruning rate of each convolutional layer in a BEV
perception model; on the basis of the initialized quantization bit width of each
convolution layer, quantizing the weight of the
convolution layer, and according to the initial
pruning rate of each
convolution layer and the importance
score vectors of the multiple output channels, obtaining
pruning masks of the output channels; based on the
loss function, the quantized weight and the pruning
mask training model, obtaining an initial deployment model; and carrying out online quantitative sensitivity evaluation training on the initial deployment model, and when an evaluation condition is met, taking the initial deployment model as a final deployment model. Therefore, the problems that the
domain adaptation and generalization ability is limited, the detection precision is reduced, the
domain adaptation and generalization ability is difficult to be efficiently utilized by NPU of edge chips such as
horizon lines, model evolution in the training process cannot be responded, and error accumulation is serious are solved, and structured sparsity, dynamic
adaptation and end-to-end collaborative optimization are achieved.