Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jabascal committed Jun 7, 2024
1 parent 09807f7 commit 8086701
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions spyrit/external/drunet.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ class DRUNet(UNetRes):
DRUNet is a pretrained plug-and-play denoising network that has been pretrained for a wide range of noise levels.
It admits the noise level as an input, so it does not require training.
DRUNet was proposed in the work
[ZhLZ21] Zhang, K.; Li, Y.; Zuo, W.; Zhang, L.; Van Gool, L.; Timofte, R..: Plug-and-Play Image Restoration with Deep Denoiser Prior. In: IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(10), 6360-6376, 2021.
[ZhLZ21] K. Zhang et al., Plug-and-Play Image Restoration with Deep Denoiser Prior. In: IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(10), 6360-6376, 2021.
Original Code: https://github.com/cszn/DPIR/blob/master/models/network_unet.py
Args:
:attr:`noise_level` (float): noise level value in the range [0, 255].
Expand All @@ -140,14 +141,14 @@ class DRUNet(UNetRes):
:attr:`upsample_mode` (str): upsample mode
Input / Output:
:attr:`x`: input images with shape :math:`(BC,n_channels,H,W)`
DRUNet has been tested only with :math:`n_channels=1` but
UNetRes can be used with :math:`n_channels>1`
:attr:`x`: input images with shape :math:(`BC`,`n_channels`,`H`,`W`).
DRUNet has been tested only with :math:`n_channels`=1 but
UNetRes can be used with :math:`n_channels`>1.
:attr:`output`: denoised images with shape :math:`(BC,n_channels,H,W)`
:attr:`output`: denoised images with shape :math:(`BC`,`n_channels`,`H`,`W`).
Attributes:
:attr:`noise_level` (tensor): noise level tensor with shape :math:`(1)`
:attr:`noise_level` (tensor): noise level tensor with shape :math:`(1)`.
"""

Expand Down

0 comments on commit 8086701

Please sign in to comment.