Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Apr 30, 2024
1 parent a1a94c1 commit 8cdb1eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lensless/eval/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def benchmark(

if use_wandb:
assert epoch is not None, "epoch must be provided for wandb logging"
log_key = f"{_batch_idx}_{label}" if label is not None else f"{_batch_idx}"
log_key = (
f"{_batch_idx}_{label}" if label is not None else f"{_batch_idx}"
)
wandb.log({log_key: wandb.Image(fp)}, step=epoch)

# normalization
Expand Down
2 changes: 1 addition & 1 deletion lensless/recon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def __init__(
plot_image(psf_np, gamma=self.gamma)
fp_plot = "psf_original_plot.png"
plt.savefig(fp_plot)

if self.use_wandb:
wandb.log({"psf": wandb.Image(fp)}, step=0)
wandb.log({"psf_plot": wandb.Image(fp_plot)}, step=0)
Expand Down
2 changes: 1 addition & 1 deletion lensless/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def __init__(
split,
n_files=None,
psf=None,
rotate=False, # just the lensless image
rotate=False, # just the lensless image
downsample=1,
downsample_lensed=1,
display_res=None,
Expand Down

0 comments on commit 8cdb1eb

Please sign in to comment.