arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.10172cs.CV
收藏

通过直方图Transformer恢复恶劣天气条件下的图像

Restoring Images in Adverse Weather Conditions via Histogram Transformer

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);School of Cyber Science and Technology, Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区网络空间安全学院);Guangdong Provincial Key Laboratory of Information Security Technology(广东省信息安全技术重点实验室);Wechat Business Group, Tencent(腾讯微信事业群)

Shangquan Sun, Wenqi Ren, Xinwei Gao, Rui Wang, Xiaochun Cao

AI总结:

本文提出Histoformer,通过直方图自注意力机制和动态范围卷积,将空间特征按强度分区间处理以捕捉长距离相似退化像素,并引入皮尔逊相关系数损失,有效恢复恶劣天气下的图像。

摘要:

基于Transformer的恶劣天气图像恢复方法已取得显著进展。大多数方法沿通道维度或在空间固定范围块内使用自注意力以减少计算量。然而,这种折中导致在捕捉长距离空间特征方面存在局限。受天气导致的退化因素主要引起相似遮挡和亮度变化的观察启发,本文提出了一种高效的直方图Transformer(Histoformer),用于恢复受恶劣天气影响的图像。它由一种称为直方图自注意力的机制驱动,该机制将空间特征排序并分割为基于强度的直方图区间。随后,在区间之间或每个区间内应用自注意力,以选择性地关注动态范围的空间特征,并共同处理长距离的相似退化像素。为了增强直方图自注意力,我们提出了一种动态范围卷积,使传统卷积能够对相似像素而非邻域像素进行操作。我们还观察到,常见的逐像素损失忽略了输出与真实值之间的线性关联和相关性。因此,我们提出利用皮尔逊相关系数作为损失函数,强制恢复的像素遵循与真实值相同的顺序。大量实验证明了我们提出方法的有效性和优越性。我们已在Github上发布了代码。

英文摘要:

Transformer-based image restoration methods in adverse weather have achieved significant progress. Most of them use self-attention along the channel dimension or within spatially fixed-range blocks to reduce computational load. However, such a compromise results in limitations in capturing long-range spatial features. Inspired by the observation that the weather-induced degradation factors mainly cause similar occlusion and brightness, in this work, we propose an efficient Histogram Transformer (Histoformer) for restoring images affected by adverse weather. It is powered by a mechanism dubbed histogram self-attention, which sorts and segments spatial features into intensity-based bins. Self-attention is then applied across bins or within each bin to selectively focus on spatial features of dynamic range and process similar degraded pixels of the long range together. To boost histogram self-attention, we present a dynamic-range convolution enabling conventional convolution to conduct operation over similar pixels rather than neighbor pixels. We also observe that the common pixel-wise losses neglect linear association and correlation between output and ground-truth. Thus, we propose to leverage the Pearson correlation coefficient as a loss function to enforce the recovered pixels following the identical order as ground-truth. Extensive experiments demonstrate the efficacy and superiority of our proposed method. We have released the codes in Github.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑