Skip to content

yyfz/Neural-Gradient-Regularizer

Repository files navigation

Neural-Gradient-Regularizer

This repository contains official implementation of Neural Gradient Regularizer (NGR).

Owing to its significant success, the prior imposed on gradient maps has consistently been a subject of great interest in the field of image processing. Total variation (TV), one of the most representative regularizers, is known for its ability to capture the intrinsic sparsity prior underlying gradient maps. Nonetheless, TV and its variants often underestimate the gradient maps, leading to the weakening of edges and details whose gradients should not be zero in the original image (i.e., image structures is not describable by sparse priors of gradient maps). Recently, total deep variation (TDV) has been introduced, assuming the sparsity of feature maps, which provides a flexible regularization learned from large-scale datasets for a specific task. However, TDV requires to retrain the network with image/task variations, limiting its versatility. To alleviate this issue, in this paper, we propose a neural gradient regularizer (NGR) that expresses the gradient map as the output of a neural network. Unlike existing methods, NGR does not rely on any subjective sparsity or other prior assumptions on image gradient maps, thereby avoiding the underestimation of gradient maps. NGR is applicable to various image types and different image processing tasks, functioning in a zero-shot learning fashion, making it a versatile and plugand-play regularizer. Extensive experimental results demonstrate the superior performance of NGR over state-of-the-art counterparts for a range of different tasks, further validating its effectiveness and versatility.

Getting Started

Only Pytorch 2.0.0 and some basic packages are required, please install them by pip or conda.

Please download our example datas from this.

Running by following script:

$ python RGB_inpainting.py
$ python MC_inpainting.py
$ python decloud.py
$ python video_denoising.py
$ python HSI_denoising.py

Reference Results

Inpainting

148089 claire PA
PSNR 23.96 41.05 33.78
SSIM 0.761 0.990 0.962

Decloud

Forish Mountain
PSNR 35.98
SSIM 0.933

Denoising

WDC akiyo
PSNR 27.66 35.86
SSIM 0.837 0.967

About

This repository contains official implementation of Neural Gradient Regularizer (NGR).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages