Code Monkey home page Code Monkey logo

fan's Introduction

Frequency Attention Network

This repository is for Frequency Attention Network(FAN) introduced in the following paper

Frequency Attention Network: Blind Noise Removal for Real Images, ACCV, 2020

The checkpoint files can be downloaded here. Checkpoint The extracted code is ev3w.

Requirement and Dependecies

  • Python 3.6, torch 1.1.0
  • More details(see requirements.txt)

Abstract

With outstanding feature extraction capabilities, deep convolutional neural networks(CNNs) have achieved extraordinary improvements in image denoising tasks. However, because of the difference of statistical characteristics of signal-dependent noise and signal-independent noise, it is hard to model real noise for training and blind real image denoising is still an important challenge problem. In this work we propose a method for blind image denoising that combines frequency domain analysis and attention mechanism, named frequency attention network(FAN). We adopt wavelet transform to convert images from spatial domain to frequency domain with more sparse features to utilize spectral information and structure information. For the denoising task, the objective of the neural network is to estimate the optimal solution of the wavelet coeffcients of the clean image by nonlinear characteristics, which makes FAN possess good interpretability. Meanwhile, spatial and channel mechanisms are employed to enhance feature maps at different scales for capturing contextual information. Extensive experiments on the synthetic noise dataset and two real-world noise benchmarks indicate the superiority of our method over other competing methods at different noise type cases in blind image denoising.

Network Architecture

FAN Architecture

Our proposed method FAN contains two subnetwork -- Est-Net and De-Net. Est-Net is to estimate the noise level map which plays the role of guidance. De-Net is for image denoising.

Spatial-Channel Attention Block

The SCAB combines the spatial attention mechanism and channel attention mechanism. The spatial mechanism can reweight the feature maps based on the position of different feature maps while the channel mechanism can focus on different types of features.

Results on AWGN

Test on sigma=50

Test on the LIVE1 dataset with the addiative gaussian white noise of sigma = 50.

Results on Real Noise Dataset

Test on SIDD Dataset

One example of test on SIDD dataset.

Test on DND Dataset

One example of test on DND dataset.

Code User Guide

Test Additive White Gaussian Noise(AWGN)

python test_awgn.py --ckpt[trained model] --img_dir[dataset directory] --sigma[sigma] --gpu[GPU or CPU]

Test Real-World Noise

python test_real_noise.py --ckpt[trained model] --img_dir[dataset directory] --is_gt[whether to compare ground truth(please set False when test the DND dataset)] --gpu[GPU or CPU]

fan's People

Contributors

momo1689 avatar

Watchers

 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.