TPSeNCE: Towards Artifact-Free Realistic Rain Generation for Deraining and Object Detection in Rain

Shen Zheng,Changjie Lu,Srinivasa G. Narasimhan
2023-11-08
Abstract:Rain generation algorithms have the potential to improve the generalization of deraining methods and scene understanding in rainy conditions. However, in practice, they produce artifacts and distortions and struggle to control the amount of rain generated due to a lack of proper constraints. In this paper, we propose an unpaired image-to-image translation framework for generating realistic rainy images. We first introduce a Triangular Probability Similarity (TPS) constraint to guide the generated images toward clear and rainy images in the discriminator manifold, thereby minimizing artifacts and distortions during rain generation. Unlike conventional contrastive learning approaches, which indiscriminately push negative samples away from the anchors, we propose a Semantic Noise Contrastive Estimation (SeNCE) strategy and reassess the pushing force of negative samples based on the semantic similarity between the clear and the rainy images and the feature similarity between the anchor and the negative samples. Experiments demonstrate realistic rain generation with minimal artifacts and distortions, which benefits image deraining and object detection in rain. Furthermore, the method can be used to generate realistic snowy and night images, underscoring its potential for broader applicability. Code is available at <a class="link-external link-https" href="https://github.com/ShenZheng2000/TPSeNCE" rel="external noopener nofollow">this https URL</a>.
Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The paper aims to address two main issues in rainy image generation: artifacts and distortions that occur during image generation, and the difficulty in controlling the amount of generated rain. Specifically, existing rainy image generation methods produce various visual defects during the generation process and struggle to precisely control the amount of rain. These issues not only affect the quality of the generated images but also pose challenges for subsequent deraining and object detection under rainy conditions. To tackle these challenges, the paper proposes a new unpaired image-to-image translation framework called TPSeNCE. By introducing a Triangular Probability Similarity (TPS) loss to minimize artifacts and distortions during the generation process, and proposing a Semantic Noise Contrastive Estimation (SeNCE) strategy to optimize the amount of generated rain, the method aims to improve the quality of rainy images. Experimental results show that this method can generate high-quality rainy images and help improve deraining effects and object detection performance in rainy environments. Additionally, the method can be extended to generate realistic snowy and night scene images, demonstrating its broad application potential.