Manuscript Offprint

arXiv:2609.37870

Learning from synthetic photorealistic raindrop for single image raindrop removal

Zhixiang Hao, Shaodi You, Yu Li, Kunming Li, Feng Lu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Raindrops adhered to camera lens or windshield are inevitable in rainy scenes and can become an issue for many computer vision systems such as autonomous driving. Because raindrop appearance is affected by too many parameters, it is unlikely to find an effective model based solution. Learning based methods are also problematic, because traditional learning method cannot properly model the complex appearance. Whereas deep learning method lacks sufficiently large and realistic training data. To solve it, in our work, we propose the first photo-realistic dataset of synthetic adherent raindrops with pixel-level mask for training. The rendering is physics based with consideration of the water dynamic, geometric and photometry. The dataset contains various types of rainy scenes and particularly the rainy driving scenes. Based on the modeling of raindrop imagery, we introduce a detection network which has the awareness of the raindrop refraction as well as its blurring. Based on that, we propose the removal network that can well recover the image structure. Rigorous experiments demonstrate the state-of-the-art performance of our proposed framework.

1. Introduction

Most computer vision studies assume that the input image is of good visibility and clean content. However, rainy weather causes several different types of degradation to the image captured. It is common that the raindrops hit and flow on a camera lens or a windscreen of the vehicle. These adherent raindrops can obstruct, deform, and/or blur part of the area in the imagery of the background scenes, and then significantly degrade the performances of many vision algorithms e.g. feature detection [26, 12, 25], track-

Figure

(a) Real-world raindrop image

(b) Ours

Figure

(c) Qian [24]

(d) Pix2Pix [17]

Figure 1. Visual comparison of raindrop removal in real rainy scenes. Our method removes most of raindrops although the raindrops have large variety.

ing [34, 5, 31], stereo correspondence [29, 30, 9], etc. A method to automatically remove the raindrop and recover the clear scene is, therefore, desired.

Unlike the rain streaks [36, 21], that mostly are thin and vertical stripes, adherent raindrops have more varieties in shape, position, and size, as can be seen in Fig. 1a. You et al. [39, 38, 37], Roser et al. [27], Eigen et al. [6] and Qian et al. [24] are a few example approaches focusing on detecting or removing the adherent raindrops. However, the method in [39] requires the rich temporal information, whereas the required video sequence cannot be applied to single image. Roser et al.'s method [27] can detect raindrop from a single image, but the model is over simplified and far from the real cases. Rather than model based methods, Eigen et al. [6] first adopt deep neural network, but the network only contains three layers and cannot properly learn the appearance of real raindrops. Qian et al. [24] integrate attention mechanism into GAN based CNNs, but their method is only tested on a small dataset. Although their dataset uses real raindrop, but the scene is in sunny day, which is not realistic. And therefore their method cannot fully handle real

∗^{*}Corresponding Author: Feng Lu

This work was supported by the National Natural Science Foundation of China (NSFC) under Grant 61972012 and Grant 61732016.

rainy scenes (Fig. 1c).

In this paper, we propose a physics driven as well as data driven method to detect and remove the adherent raindrops jointly. We utilize the realistic adherent raindrops imagery model proposed by Roser et al. [28] and You et al. [39]. Based on understanding the physics, we design a novel deep learning multi-tasks network which does both end to end detection and removal adherent raindrops from a single image. Unlike existing networks, the proposed network directly reflects the appearance of raindrop such that it is partially blended into the image and is a reflection of the background image. In brief, we separate the difficult task of restoring image into three sub-problems: (i) detect raindrop locations and shapes via a deeply supervised sub-network, and then (ii) restore adherent raindrop regions through deep learning network, subsequently (iii) a small CNN network is employed to smooth the blended image.

To enable proper training of the network, a new dataset is introduced which consisting photo-realistic rendering of the rainy scenes and clear scenes. The dataset uses Cityscapes dataset [4] as background image, which contains representative outdoor scenes. The dataset contains about 30K images. Each image has 50 to 70 raindrops with size varying from 0.8 to 1.5 centimeters, and the blurring level varying from 7 to 20 pixel.

This paper makes the following contributions:

• We propose a physics aware end-to-end neural network for joint raindrop detection and removal. The architecture is designed in cope with the physics of raindrop imagery.

• We develop a practical dataset of realistically rendered adherent raindrop images, which contains the pixel-level raindrop binary masks.

• The proposed method significantly out performances existing methods on all existing dataset and real-world rainy images.

References (80)