Skip to content
Variational Denoising Network: Toward Blind Noise Modeling and Removal (NeurIPS, 2019) (Pytorch)
Python
Branch: master
Clone or download

README.md

VDN

Variational Denoising Network: Toward Blind Noise Modeling and Removal (NeurIPS, 2019) arXiv

Requirements and Dependencies

  • Ubuntu 16.04, cuda 10.0
  • Python 3.6, Pytorch 1.1.0
  • More detail (See environment.yml)

Image Denoising

Non-IID Gauss Noise Removal

In the training stage, we used the source images in Waterloo, CBSD432 and CImageNet400 as groundtruth, and the variance map of the noise was generated with Gaussian kernel. However, in the test stage, three different variance maps were adopted to generate noisy images to verify the generalization of VDN.

Testing

    python demo_test_simulation.py

Training

  1. Download the source images from the above links.
  2. Prepare the testing datasets:
    python datasets/prepare_data/simulation/noise_generate_nips_niid.py
  1. Begining training:
    python train_simulation.py --simulate_dir source_imgs_path --eps2 5e-5

Real-world Noise Removal

The real-world VDN denoiser was trained on the SIDD Medium Dataset, and directly tested on the SIDD and DND benchmarks.

Testing:

    python demo_test_benchmark.py

Training:

  1. Download the training and validation(noisy, groundtruth) datasets, and put the unzipped training dataset and the validation dataset into the floder "sidd_data_path".

  2. Writing the training and validation datasets into hdf5 fromat:

    python datasets/prepare_data/SIDD/big2small_train.py --data_dir sidd_data_path
    python datasets/prepare_data/SIDD/big2small_test.py --data_dir sidd_data_path
  1. Begin training:
    python train_simulation.py --SIDD_dir sidd_data_path --eps2 1e-6
You can’t perform that action at this time.