Skip to content

Commit

Permalink
Small edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Sep 6, 2024
1 parent 68cc8d5 commit 189aaca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lensless/recon/gd.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ def reset(self):
H_flat = self._convolver._H.reshape(-1, self._psf_shape[3])
self._alpha = np.real(1.8 / np.max(Hadj_flat * H_flat, axis=0))

# TODO how was his value determined?
self._alpha = 1 / 4770.13
# # TODO how was his value determined?
# self._alpha = 1 / 4770.13

def _grad(self):
# make sure to sum on correct axis, and apply mask on correct dimensions
Expand Down
8 changes: 4 additions & 4 deletions scripts/recon/hyperspectral.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Apply gradient descent.
Apply FISTA for hyperspectral data recovery.
```
python scripts/recon/gradient_descent.py
python scripts/recon/hyperspectral.py
```
"""
Expand Down Expand Up @@ -70,8 +70,8 @@ def gradient_descent(
recon = HyperSpectralFISTA(
psf,
mask,
norm=None,
# norm="ortho",
# norm=None,
norm="ortho",
)
recon.set_data(data)
res = recon.apply(
Expand Down

0 comments on commit 189aaca

Please sign in to comment.