load_degradation#

deepinv.utils.load_degradation(name: str | Path, data_dir: str | Path | None = None, index: int = 0, download: bool = True) Tensor[source]#

Loads a degradation tensor from DeepInverse HuggingFace repository.

Parameters:
  • name (str, Path) – degradation name with file extension

  • data_dir (str, Path) – dataset root directory, defaults to None

  • index (int) – degradation index, defaults to 0

  • download (bool) – whether to download, defaults to True

Returns:

Tensor containing degradation.

Examples using load_degradation:#

Image deblurring with Total-Variation (TV) prior

Image deblurring with Total-Variation (TV) prior

DPIR method for PnP image deblurring.

DPIR method for PnP image deblurring.

Regularization by Denoising (RED) for Super-Resolution.

Regularization by Denoising (RED) for Super-Resolution.

Deep Equilibrium (DEQ) algorithms for image deblurring

Deep Equilibrium (DEQ) algorithms for image deblurring

Self-supervised learning with Equivariant Imaging for MRI.

Self-supervised learning with Equivariant Imaging for MRI.