Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small changes... #131

Merged
merged 16 commits into from
Aug 21, 2024
Merged
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Changed
Bugfix
~~~~~~

- Wavelength input to ``compute_psf`` for Mask class.
- Computation of average metric in batches.
- Support for grayscale PSF for RealFFTConvolve2D.
- Calling model.eval() before inference, and model.train() before training.
Expand Down
2 changes: 1 addition & 1 deletion lensless/hardware/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def compute_psf(self, distance_sensor=None, wavelength=None, intensity=True):

if self.use_torch:
psf = torch.zeros(
tuple(self.resolution) + (len(self.psf_wavelength),),
tuple(self.resolution) + (len(wavelength),),
dtype=torch.complex64,
device=self.torch_device,
)
Expand Down
Loading