Coder Social home page Coder Social logo

ip-derain / nitedr-nighttime-image-de-raining Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cidanshi/nitedr-nighttime-image-de-raining

0.0 0.0 0.0 74.26 MB

Official implementation for “NiteDR: Nighttime Image De-Raining with Cross-View Sensor Cooperative Learning for Dynamic Driving Scenes.”

Python 100.00%

nitedr-nighttime-image-de-raining's Introduction

NiteDR-Nighttime-Image-De-raining

About

Codes for NiteDR: Nighttime Image De-Raining with Cross-View Sensor Cooperative Learning for Dynamic Driving Scenes.

-[ArXiv]

Contents

Abstract

In real-world environments, outdoor imaging systems are often affected by disturbances such as rain degradation. Especially, in nighttime driving scenes, insufficient and uneven lighting shrouds the scenes in darkness, resulting degradation of both the image quality and visibility. Particularly, in the field of autonomous driving, the visual perception ability of RGB sensors experiences a sharp decline in such harsh scenarios. Additionally, driving assistance systems suffer from reduced capabilities in capturing and discerning the surrounding environment, posing a threat to driving safety. Single-view information captured by single-modal sensors cannot comprehensively depict the entire scene. To address these challenges, we developed an image de-raining framework tailored for rainy nighttime driving scenes. It aims to remove rain artifacts, enrich scene representation, and restore useful information. Specifically, we introduce cooperative learning between visible and infrared images captured by different sensors. By cross-view fusion of these multi-source data, the scene within the images gains richer texture details and enhanced contrast. We constructed an information cleaning module called CleanNet as the first stage of our framework. Moreover, we designed an information fusion module called FusionNet as the second stage to fuse the clean visible images with infrared images. Using this stage-by-stage learning strategy, we obtain de-rained fusion images with higher quality and better visual perception. Extensive experiments demonstrate the effectiveness of our proposed Cross-View Cooperative Learning (CVCL) in adverse driving scenarios in low-light rainy environments. The proposed approach addresses the gap in the utilization of existing rain removal algorithms in specific low-light conditions.

Installation

- python == 3.8.12    torch == 1.9.0+cu111   torchaudio == 0.9.0   torchvision == 0.10.0+cu111
- opencv-python == 4.8.1.78
- scikit-image == 0.21.0
- scikit-learn == 1.3.1
- numpy == 1.24.4   Pillow == 9.5.0   matplotlib == 3.7.3
- scipy == 1.10.1
- tensorboard == 1.13.0
- tqdm == 4.66.1
- pytorch-msssim == 1.0.0

Dataset

Our RoadScene-rain dataset can be downloaded from Google drive and placed in the folder './dataset/RoadScene-rain/'.

Usage

Network Architecture

Our CleanNet is implemented in './basicsr/models/archs/CLformer_arch.py'. Our FusionNet is implemented in 'Dense.py' and 'refine.py'.

Training

1. Preparation

Download the pretrained vgg16 model from Google drive and place it in the folder './mdoel/'.

2. Information Cleaning Training

Run

CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 --master_port=4321 Cl_train.py --launcher pytorch --is_train --use_tb_logger --dist --use_grad_clip

and the trained model is available in './expeiments/de-raining/checkpoints/'.

3. Cross-View Information Fusion Training

Run

CUDA_VISIBLE_DEVICES=0, python Fu_train.py --train_root_dir 'Path of the training images' --derained_checkpoint_dir 'Path of the de-raining model' --model_path 'Path to save the fusion checkpoint' --fusion_refine_model 'fusion model name' 

and the trained model is available in './experiments/fusion/checkpoints/'.

Testing

1. Pretrained models

Please download the pretrained models from Google drive and place them in the folder './checkpoints/'. Do not forget to modify the model path in the CLFU_test.py.

2. Testing

Run

CUDA_VISIBLE_DEVICES=0, python CLFU_test.py --test_root_dir 'Path of the testing images' --derained_checkpoint_dir 'Path of the de-raining model' --save_path 'Path to save testing results'

NiteDR

Illustration of our model

1. Overall Framework

2. CleanNet

3. FusionNet

Qualitative results

1. Visual results of our method compared with de-raining methods

2. Visual results of our method compared with fusion methods

Quantitative results

nitedr-nighttime-image-de-raining's People

Contributors

cidanshi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.