UNet#

class deepinv.models.UNet(in_channels=1, out_channels=1, residual=True, circular_padding=False, cat=True, bias=True, batch_norm=True, scales=4)[source]#

Bases: Denoiser

U-Net convolutional denoiser.

This network is a fully convolutional denoiser based on the U-Net architecture. The number of downsample steps can be controlled with the scales parameter. The number of trainable parameters increases with the number of scales.

Warning

When using the bias-free batch norm BFBatchNorm2d via batch_norm="biasfree", NaNs may be encountered during training, causing the whole training procedure to fail.

Parameters:
forward(x, sigma=None, **kwargs)[source]#

Run the denoiser on noisy image. The noise level is not used in this denoiser.

Parameters:

Examples using UNet:#

Imaging inverse problems with adversarial networks

Imaging inverse problems with adversarial networks

Tour of MRI functionality in DeepInverse

Tour of MRI functionality in DeepInverse

Training a reconstruction network.

Training a reconstruction network.

Image transformations for Equivariant Imaging

Image transformations for Equivariant Imaging

Self-supervised learning from incomplete measurements of multiple operators.

Self-supervised learning from incomplete measurements of multiple operators.

Self-supervised denoising with the Neighbor2Neighbor loss.

Self-supervised denoising with the Neighbor2Neighbor loss.

Self-supervised denoising with the Generalized R2R loss.

Self-supervised denoising with the Generalized R2R loss.

Self-supervised learning with measurement splitting

Self-supervised learning with measurement splitting

Self-supervised denoising with the SURE loss.

Self-supervised denoising with the SURE loss.

Self-supervised denoising with the UNSURE loss.

Self-supervised denoising with the UNSURE loss.