Group channel pruning and spatial attention distilling for object detection

被引:0
|
作者
Yun Chu
Pu Li
Yong Bai
Zhuhua Hu
Yongqing Chen
Jiafeng Lu
机构
[1] Hainan University,School of Information and Communication Engineering
[2] Peking University,School of Software and Microelectronics
来源
Applied Intelligence | 2022年 / 52卷
关键词
Model compression; Object detection; Group channel pruning; Knowledge distillation;
D O I
暂无
中图分类号
学科分类号
摘要
Due to the over-parameterization of neural networks, many model compression methods based on pruning and quantization have emerged. They are remarkable in reducing the size, parameter number, and computational complexity of the model. However, most of the models compressed by such methods need the support of special hardware and software, which increases the deployment cost. Moreover, these methods are mainly used in classification tasks, and rarely directly used in detection tasks. To address these issues, for the object detection network we introduce a three-stage model compression method: dynamic sparse training, group channel pruning, and spatial attention distilling. Firstly, to select out the unimportant channels in the network and maintain a good balance between sparsity and accuracy, we put forward a dynamic sparse training method, which introduces a variable sparse rate, and the sparse rate will change with the training process of the network. Secondly, to reduce the effect of pruning on network accuracy, we propose a novel pruning method called group channel pruning. In particular, we divide the network into multiple groups according to the scales of the feature layer and the similarity of module structure in the network, and then we use different pruning thresholds to prune the channels in each group. Finally, to recover the accuracy of the pruned network, we use an improved knowledge distillation method for the pruned network. Especially, we extract spatial attention information from the feature maps of specific scales in each group as knowledge for distillation. In the experiments, we use YOLOv4 as the object detection network and PASCAL VOC as the training dataset. Our method reduces the parameters of the model by 64.7% and the calculation by 34.9%. When the input image size is 416×416, compared with the original network model with 256MB size and 87.1 accuracies, our compressed model achieves 86.6 accuracies with 90MB size. To demonstrate the generality of our method, we replace the backbone to Darknet53 and Mobilenet and also achieve satisfactory compression results.
引用
收藏
页码:16246 / 16264
页数:18
相关论文
共 50 条
  • [1] Group channel pruning and spatial attention distilling for object detection
    Chu, Yun
    Li, Pu
    Bai, Yong
    Hu, Zhuhua
    Chen, Yongqing
    Lu, Jiafeng
    APPLIED INTELLIGENCE, 2022, 52 (14) : 16246 - 16264
  • [2] Multimodal Object Detection by Channel Switching and Spatial Attention
    Cao, Yue
    Bin, Junchi
    Hamari, Jozsef
    Blasch, Erik
    Liu, Zheng
    2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS, CVPRW, 2023, : 403 - 411
  • [3] Localization -aware channel pruning for object detection
    Xie, Zihao
    Zhu, Li
    Zhao, Lin
    Tao, Bo
    Liu, Liman
    Tao, Wenbing
    NEUROCOMPUTING, 2020, 403 : 400 - 408
  • [4] Hybrid spatial and channel attention in post-accident object detection
    Kim, Junyoung
    Lee, Soomok
    IET INTELLIGENT TRANSPORT SYSTEMS, 2025, 19 (01)
  • [5] Channel-Spatial Mutual Attention Network for 360° Salient Object Detection
    Zhang, Yi
    Hamidouche, Wassim
    Deforges, Olivier
    2022 26TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION (ICPR), 2022, : 3436 - 3442
  • [6] On the Optimality of Spatial Attention for Object Detection
    Harel, Jonathan
    Koch, Christof
    ATTENTION IN COGNITIVE SYSTEMS, 2009, 5395 : 1 - 14
  • [7] Channel pruning guided by spatial and channel attention for DNNs in intelligent edge computing
    Liu, Mengran
    Fang, Weiwei
    Ma, Xiaodong
    Xu, Wenyuan
    Xiong, Naixue
    Ding, Yi
    APPLIED SOFT COMPUTING, 2021, 110 (110)
  • [8] Underwater Object Detection Algorithm Based on Adding Channel and Spatial Fusion Attention Mechanism
    Wang, Xingyao
    Xue, Gang
    Huang, Shuting
    Liu, Yanjun
    JOURNAL OF MARINE SCIENCE AND ENGINEERING, 2023, 11 (06)
  • [9] SCANET: SPATIAL-CHANNEL ATTENTION NETWORK FOR 3D OBJECT DETECTION
    Lu, Haihua
    Chen, Xuesong
    Zhang, Guiying
    Zhou, Qiuhao
    Ma, Yanbo
    Zhao, Yong
    2019 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2019, : 1992 - 1996
  • [10] Evolutionary channel pruning for real-time object detection
    Yang, Changcai
    Lin, Zhijie
    Lan, Ziyang
    Chen, Riqing
    Wei, Lifang
    Liu, Yizhang
    KNOWLEDGE-BASED SYSTEMS, 2024, 287