Skip to content

Commit

Permalink
Fix for random shifts. (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam authored Aug 8, 2024
1 parent 11e798e commit 3af7b14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lensless/recon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ def __init__(
clip_grad=1.0,
unrolled_output_factor=False,
random_rotate=False,
random_shift=False,
pre_proc_aux=False,
extra_eval_sets=None,
use_wandb=False,
Expand Down Expand Up @@ -554,7 +555,6 @@ def __init__(
post_process_unfreeze : int, optional
Epoch at which to unfreeze post process component. Default is None.
"""
global print

Expand Down Expand Up @@ -612,6 +612,9 @@ def __init__(
self.train_multimask = train_dataset.multimask
self.train_random_flip = train_dataset.random_flip
self.random_rotate = random_rotate
self.random_shift = random_shift
if self.random_shift:
raise NotImplementedError("Random shift not implemented yet.")

# check if Subset and if simulating dataset
self.simulated_dataset_trainable_mask = False
Expand Down

0 comments on commit 3af7b14

Please sign in to comment.