Before conducting model pruning, the model needs to be analyzed first. The main purpose of this process is to find the optimal pruning strategy, which will be used later to prune the model. Run the following command to start the analysis:
./vai_p_darknet pruner ana pruning/cfg pruning/yolov3-voc_final.weights
Depending on the size of model and validation dataset, the ana command may takes dozens of hours. Running ana with multi-gpu can greatly accelerate the running speed. The following command runs with four GPUs.
./vai_p_darknet pruner ana pruning/cfg pruning/yolov3-voc_final.weights -gpus 0,1,2,3