journal article·2022-08-24Open access

Accelerated Inference of Face Detection under Edge-Cloud Collaboration

Weiwei Zhang, Hongbo Zhou, Jian Mo, Chenghui Zhen, Ming Ji

Applied Sciences· Volume 12· Issue 17

Abstract

Model compression makes it possible to deploy face detection models on devices with limited computing resources. Edge–cloud collaborative inference, as a new paradigm of neural network inference, can significantly reduce neural network inference latency. Inspired by these two techniques, this paper adopts a two-step acceleration strategy for the CenterNet model. Firstly, the model pruning method is used to prune the convolutional layer and the deconvolutional layer to obtain a preliminary acceleration effect. Secondly, the neural network is segmented by the optimizer to make full use of the computing resources on the edge and the cloud to further accelerate the inference of the neural network. In the first strategy, we achieve a 62.12% reduction in inference latency compared to the state-of-the-art object detection model Blazeface. Additionally, with a two-step speedup strategy, our method is only 26.5% of the baseline when the bandwidth is 500 kbps.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Face recognition and analysis · Video Surveillance and Tracking Methods · Face and Expression Recognition

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

College of Engineering, Huaqiao University, Quanzhou 362021, China

Information and Communication Engineering, Huaqiao University, Xiamen 361021, China

Funding

Natural Science Foundation of China · Technology Development Foundation of Quanzhou City

References (37)

Show source-provided references
1. Xu, T., Du, D.K., He, Z., and Liu, J. (2018, January 8–14). Pyramidbox: A context-assisted single shot face detector. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.
2. Zhu, Y., Cai, H., Zhang, S., Wang, C., and Xiong, Y. (2020). Tinaface: Strong but simple baseline for face detection. arXiv.
3. Chi, C., Zhang, S., Xing, J., Lei, Z., Li, S.Z., and Zou, X. (February, January 27). Selective refinement network for high performance face detection. Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
4. Deng, H., Feng, Z., Qian, G., Lv, X., Li, H., and Li, G. (2021). MFCosface: A Masked-Face Recognition Algorithm Based on Large Margin Cosine Loss. Appl. Sci., 11.10.3390/app11167310 ↗
5. A robust approach of facial orientation recognition from facial features
6. Zhuang, L., Li, J., Shen, Z., Gao, H., and Zhang, C. (2017, January 22–29). Learning Efficient Convolutional Networks through Network Slimming. Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy.
7. He, Y., Zhang, X., and Sun, J. (2017, January 22–29). Channel pruning for accelerating very deep neural networks. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.155 ↗
8. He, Y., Lin, J., Liu, Z., Wang, H., Li, L., and Han, S. (2018, January 8–14). AMC: Automl for model compression and acceleration on mobile devices. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_48 ↗
9. Ding, X., Ding, G., Guo, Y., and Han, J. (2019, January 15–20). Centripetal sgd for pruning very deep convolutional networks with complicated structure. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00508 ↗
10. Lin, S., Ji, R., Yan, C., Zhang, B., Cao, L., Ye, Q., Huang, F., and Doermann, D. (2019, January 15–20). Towards optimal structured cnn pruning via generative adversarial learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00290 ↗
11. Song, H., Mao, H., and Dally, W.J. (2016, January 2–4). Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. Proceedings of the 4th International Conference on Learning Representations (ICLR), San Juan, Puerto Rico.
12. Neurosurgeon: Collaborative Intelligence between the Cloud and Mobile Edge10.1145/3093336.3037698 ↗
13. Robust real-time face detection10.1023/B:VISI.0000013087.49260.fb ↗
14. On the design of cascades of boosted ensembles for face detection10.1007/s11263-007-0060-1 ↗
15. Pham, M.T., and Cham, T. (2007, January 14–21). Fast training and selection of haar features using statistics in boosting-based face detection. Proceedings of the 2007 IEEE 11th International Conference on Computer Vision, Rio De Janeiro, Brazil.10.1109/ICCV.2007.4409038 ↗
16. Liu, Y., Tang, X., Wu, X., Han, J., Liu, J., and Ding, E. (2019). Hambox: Delving into online high-quality anchors mining for detecting outer faces. arXiv.10.1109/CVPR42600.2020.01306 ↗
17. Li, J., Wang, Y., Wang, C., Tai, Y., Qian, J., Yang, J., Wang, C., Li, J., and Huang, F. (2019, January 15–20). DSFD: Dual shot face detector. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00520 ↗
18. Duan, K., Bai, S., Xie, L., Qi, H., Huang, Q., and Tian, Q. (2019, January 15–20). Centernet: Keypoint triplets for object detection. Proceedings of the IEEE/CVF International Conference on Computer vision(CVPR), Long Beach, CA, USA.10.1109/ICCV.2019.00667 ↗
19. Zhang, S., Zhu, X., Lei, Z., Shi, H., Wang, X., and Li, S.Z. (2017, January 1–4). Faceboxes: A CPU real-time face detector with high accuracy. Proceedings of the 2017 IEEE International Joint Conference on Biometrics (IJCB), Denver, CO, USA.10.1109/BTAS.2017.8272675 ↗
20. Veit, A., and Belongie, S. (2018, January 8–14). Convolutional networks with adaptive inference graphs. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01246-5_1 ↗
21. Boomerang: On-demand cooperative deep neural network inference for edge intelligence on the industrial Internet of Things10.1109/MNET.001.1800506 ↗
22. Teerapittayanon, S., McDanel, B., and Kung, H.S. (2017, January 5–8). Distributed deep neural networks over the cloud, the edge and end devices. Proceedings of the 2017 IEEE 37th International Conference on Distributed Computing Systems (ICDCS), Atlanta, GA, USA.10.1109/ICDCS.2017.226 ↗
23. Shao, J., Zhang, H., Mao, Y., and Zhang, J. (2021, January 6–11). Branchy-GNN: A device-edge co-inference framework for efficient point cloud processing. Proceedings of the ICASSP 2021–2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Toronto, ON, Canada.10.1109/ICASSP39728.2021.9414831 ↗
24. Jiang, N., Xiong, Z., Tian, H., Zhao, X., Du, X., Zhao, C., and Wang, J. (2022). PruneFaceDet: Pruning lightweight face detection network by sparsity training. Cogn. Comput. Syst., early view.10.1049/ccs2.12065 ↗
25. Zhao, X., Liang, X., Zhao, C., Tang, M., and Wang, J. (2019). Real-time multi-scale face detector on embedded devices. Sensors, 19.10.3390/s19092158 ↗
26. Zhu, J., TPark, a., Isola, P., and Efros, A.A. (2017, January 22–29). Unpaired image-to-image translation using cycle-consistent adversarial networks. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.244 ↗
27. Jaderberg, M., Simonyan, K., and Zisserman, A. (2015, January 7–12). Spatial transformer networks. Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada.
28. Li, E., Zhou, Z., and Chen, X. (2018, January 20). Edge intelligence: On-demand deep learning model co-inference with device-edge synergy. Proceedings of the 2018 Workshop on Mobile Edge Communications, Budapest, Hungary.10.1145/3229556.3229562 ↗
29. Tolias, G., Sicre, R., and Jégou, H. (2015). Particular object retrieval with integral max-pooling of CNN activations. arXiv.
30. Efficient inference with tensorrt
31. Boqueo, G.G., Daya, L.I.O., Eugenio, M.E.S., Lumagas, A.G., and Guzman, F.E.D. (2019, January 23–25). Extensive assessment of various network interruption tools. Proceedings of the 2019 IEEE 4th International Conference on Computer and Communication Systems (ICCCS), Singapore.10.1109/CCOMS.2019.8821709 ↗
32. Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., and Antiga, L. (2019, January 8–14). Pytorch: An imperative style, high-performance deep learning library. Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada.
33. Zhang, S., Zhu, X., Lei, Z., Shi, H., Wang, X., and Li, S.Z. (2017, January 22–29). S3fd: Single shot scale-invariant face detector. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.30 ↗
34. Najibi, M., Samangouei, P., Chellappa, R., and Davis, L.S. (2017, January 22–29). Ssh: Single stage headless face detector. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.522 ↗
35. Abdelatti, M., Hendawi, A., and Sodhi, M. (2021, January 10–14). Optimizing a GPU-accelerated genetic algorithm for the vehicle routing problem. Proceedings of the Genetic and Evolutionary Computation Conference Companion, Lille, France.10.1145/3449726.3459458 ↗
36. Bazarevsky, V., Kartynnik, Y., Vakunov, A., Raveendran, K., and Grundmann, M. (2019). Blazeface: Sub-millisecond neural face detection on mobile gpus. arXiv.
37. Deng, J., Guo, J., Ververas, E., Kotsia, I., and Zafeiriou, S. (2020, January 13–19). Retinaface: Single-shot multi-level face localisation in the wild. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00525 ↗