NuageHao / CA-NoiseGAN

The official implementation of our ECCV 2020 paper "Learning Camera-Aware Noise Models".

Home Page:https://arcchang1236.github.io/CA-NoiseGAN/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ECCV'20] CA-NoiseGAN

Python version support PyTorch version support

Project | Paper | Abstract | Long Video

Overview

CA-NoiseGAN is a PyTorch implementation of
"Learning Camera-Aware Noise Models",
Ke-Chi Chang, Ren Wang, Hung-Jin Lin, Yu-Lun Liu, Chia-Ping Chen, Yu-Lin Chang, Hwann-Tzong Chen
in European Conference on Computer Vision (ECCV) 2020 conference.

Modeling imaging sensor noise is a fundamental problem for image processing and computer vision applications. While most previous works adopt statistical noise models, real-world noise is far more complicated and beyond what these models can describe. To tackle this issue, we propose a data-driven approach, where a generative noise model is learned from real-world noise. The proposed noise model is camera-aware, that is, different noise characteristics of different camera sensors can be learned simultaneously, and a single learned noise model can generate different noise for different camera sensors. Experimental results show that our method quantitatively and qualitatively outperforms existing statistical noise models and learning-based methods.

Requirements

This test code is implemented under Python3.
Following libraries are required:

  • PyTorch == 1.1.0
  • see requirements.txt for more detail

If you want to visualize the results of Noise Flow, the libraries are also required:

Usage

  1. Prepare Data
    We prepare our test data as Data.zip in [Google Drive] and they are totally derived from SIDD dataset. Please unzip it and you can change the data_dir in config.yml into your data path.

  2. Download Pretrained Models
    We provide pretrained baseline models of noise models and denoisers as checkpoints.zip in [Google Dirve].
    Please unzip it under the root directory.

  3. Prepare Runtime Environment

    pip install -r requirements.txt
  4. Test the Noise Models and Denoisers
    You need to check the correctness of each path in config.yml.
    Moreover, you can modify the amount of samples and patch size. See config.yml for more detail. Then, you can run the following scripts.

    • Noise Models

      python test_noise_models.py --config config.yml
    • Denoisers

      python test_denoisers.py --config config.yml
  5. Visual Results
    The results will be saved in ./samples/, including raw images and sRGB images. We provide the metrices we used in our paper, you can evaluate the quantitative results of each model, too.

Citation

@misc{chang2020learning,
    title={Learning Camera-Aware Noise Models},
    author={Ke-Chi Chang and Ren Wang and Hung-Jin Lin and Yu-Lun Liu and Chia-Ping Chen and Yu-Lin Chang and Hwann-Tzong Chen},
    year={2020},
    eprint={2008.09370},
    archivePrefix={arXiv},
    primaryClass={cs.CV}
}

Resources

Acknowledgement

About

The official implementation of our ECCV 2020 paper "Learning Camera-Aware Noise Models".

https://arcchang1236.github.io/CA-NoiseGAN/

License:MIT License


Languages

Language:Python 100.0%