OpenViSTAI · Agents · Blockchain · Crypto
Menu
Image & Video AI

Deraindrop

Deraindrop is a Python research implementation of an attentive generative adversarial network that removes raindrops from single images. It includes local prediction and paired-image evaluation scripts.

Independent OpenViST project profile, based on linked sources.

Deraindrop — OpenViST project profile in Image & Video AI.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you need a locally run research model and have an environment compatible with its documented Linux, Python 2.7, CUDA/cuDNN, and PyTorch 0.3.1 requirements.

Who it is for

  • Computer-vision researchers studying image restoration and visual attention.
  • Developers who want to run raindrop-removal predictions on local image collections.
  • Researchers evaluating restorations against aligned image and ground-truth pairs.

Documented uses

  • Generate restored versions of images obscured by raindrops on glass or a camera lens.
  • Run model predictions over images stored in local input and output directories.
  • Evaluate predictions quantitatively against paired ground-truth images.
Before you choose

Requirements & limits

The repository is public on GitHub and the README documents local installation and command-line prediction and testing.

  • The README targets an older software environment: Python 2.7 and PyTorch 0.3.1.
  • The listed prerequisites include an NVIDIA GPU, CUDA, and cuDNN.
  • Quantitative evaluation uses paired images, and the README identifies test_a as the better-aligned evaluation subset.
  • Raindrop-obscured regions may have lost scene information, so their restoration is generated rather than a guaranteed reconstruction of the original.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Run demo prediction on local images

Use the documented demo mode to process an input image directory and save restored images to an output directory.

Before you start

  • Linux
  • Python 2.7
  • NVIDIA GPU with CUDA and cuDNN; the README specifies CUDA 8.0
  • PyTorch 0.3.1 and its dependencies
  • A cloned DeRaindrop repository and input images

Steps

  1. Clone the repository and install PyTorch and the project dependencies.

  2. Place images in an input directory, following the README's example of ./demo/input/.

  3. Run CUDA_VISIBLE_DEVICES=gpu_id python predict.py --mode demo --input_dir ./demo/input/ --output_dir ./demo/output/, substituting the GPU identifier and desired directories.

  4. Inspect the output directory for restored images.

Expected outcome

The model writes predicted restorations to the specified output directory.

Guide limitations

  • The documented environment is an older stack: Python 2.7 and PyTorch 0.3.1, with CUDA 8.0 listed.
  • Restoration of occluded content is a model output; the original scene information may be lost behind raindrops.
Source-based practical guide

Evaluate predictions against paired ground truth

Run the documented quantitative test mode on the aligned test_a images and their ground-truth pairs.

Before you start

  • The repository's documented Linux, Python 2.7, NVIDIA GPU with CUDA/cuDNN, and PyTorch 0.3.1 setup
  • The test_a dataset arranged under the repository with data and gt directories

Steps

  1. Place the test_a dataset under the DeRaindrop directory, with images in ./test_a/data/ and corresponding ground truth in ./test_a/gt/.

  2. Run CUDA_VISIBLE_DEVICES=gpu_id python predict.py --mode test --input_dir ./test_a/data/ --gt_dir ./test_a/gt/, substituting the GPU identifier.

  3. Review the evaluation result produced by the test workflow.

Expected outcome

The test mode evaluates predictions using paired input and ground-truth images.

Guide limitations

  • The README specifies test_a for quantitative evaluation because its image pairs have good alignment.
  • The README reports a 0.06 PSNR decrease from the paper result due to masking some information, such as vehicle license plates.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
18 October 2026
Original website title
rui1996/DeRaindrop · Official homepage title · retained in its source language