APP下载

基于分组卷积和空间注意力机制的单幅图像去雨方法

2020-08-26谭台哲柳博

电脑知识与技术 2020年20期

谭台哲 柳博

摘要:为更好地将图像去雨算法应用在户外监控、手机移动终端上,提出一种基于局部空间注意力机制的轻量级卷积神经网络。将图像去雨看作残差学习,既有利于从有雨图中去掉雨滴,又便于模型的训练与优化。深度可分离卷积作为模型提取特征的卷积操作,在不降低模型的性能情况下,显著降低模型的参数量与计算量。局部空问注意力模块利用空洞卷积提供较大的感受野来提取丰富的语义信息,有利于雨滴的检测与去除。在多个公开的数据集上进行对比与测试,证明模型去雨效果较好且速度较快。

关键词:单幅图像去雨;分组卷积;空洞卷积;空问注意力;残差学习

中图分类号:TP18 文献标识码:A

文章编号:1009-3044(2020)20-0028-04

Single Image De-Rain Method Based on Croup Convolution and Spatial Attention Mechanism

TAN Tai-zhe, BO Liu

(School of Computers, Guangdong University of Technology, Guangzhou 510000, China)

Abstract : In order to hetter apply the image de-raining algorithm to outdoor monitoring and mobile terminals , a lightweight convolu-tional neural network based on the local spatial attenticm mechanism is proposed. Taking the image to rain as residual learning isnot only beneficial for removing raindrops from the raining image, but also for training and optimization of the model. depthi~'iseconvolution. as a convolution operation for extracting features, significantly reduces the amount of parameters and calculations ofthe model without reducing the performance of the model. The local spatial attention module uses dilate convolution to provide alarger receptive fielcl to extract rich semantic information. which is conducive to the detection and removal of raindrops. Compari-son and testing on multiple public data sets prove that the model has better rain removal effect and faster speed.

Key words : single image derain;group convolution; dilate convolution; spatial attention: residual leaming

户外视频监控、无人驾驶、白然场景下的文本识别等基于计算机视觉算法的应用容易受到天气的影响,由于现有的算法设计以及训练模型所使用的數据集都基于天气情况较好这一假设,在如下雨、下雪、雾天等情况下算法的性能会有所降低。另一方面,随着手机等终端设备的普及,雨天拍摄的照片由于雨痕、雨滴、雨雾的存在影响拍照的主体,影响图像的美感,因此对基于视觉算法的应用而言去雨算法可以作为算法应用的预处理,提升算法在不良天下的性能,提升算法的鲁棒性。对人眼视觉感知而言,图像去雨可以将影响拍照主题的雨滴去除掉,恢复主体的信息。图像去雨可以分为单幅图像去雨和视频图像去雨,视频图像去雨因为有连续图像信息可以使用,相较于单幅图像难度较低,所以视频的去雨的研究较为成熟。……

登录APP查看全文