Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Aug 7, 2024
1 parent b27b973 commit b797160
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lensless/recon/multi_wiener.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
skip_pre=False,
):
"""
Constructor for Multi-Wiener Deconvolution Network (MWDN) as proposed in:
Constructor for Multi-Wiener Deconvolution Network (MWDN) as proposed in:
https://opg.optica.org/oe/fulltext.cfm?uri=oe-31-23-39088&id=541387
Parameters
Expand Down Expand Up @@ -169,7 +169,7 @@ def __init__(
def _prepare_process_block(self, process):
"""
Method for preparing the pre or post process block.
Parameters
----------
process : :py:class:`function` or :py:class:`~torch.nn.Module`, optional
Expand Down Expand Up @@ -283,6 +283,7 @@ def reconstruction_error(self, prediction, lensless):
convolver = self._convolver
if not convolver.pad:
prediction = convolver._pad(prediction)

Fx = convolver.convolve(prediction)
Fy = lensless

Expand Down
2 changes: 0 additions & 2 deletions lensless/recon/trainable_inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@


class TrainableInversion(TrainableReconstructionAlgorithm):
""" """

def __init__(self, psf, dtype=None, K=1e-4, **kwargs):
"""
Constructor for trainable inversion component as proposed in
Expand Down
1 change: 1 addition & 0 deletions lensless/recon/trainable_recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def __init__(
compensation_residual : bool, optional
Whether to use residual connection in compensation layer.
"""

assert isinstance(psf, torch.Tensor), "PSF must be a torch.Tensor"
super(TrainableReconstructionAlgorithm, self).__init__(
psf, dtype=dtype, n_iter=n_iter, **kwargs
Expand Down

0 comments on commit b797160

Please sign in to comment.