Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schwabjohannes authored Mar 5, 2024
1 parent bfbe159 commit 721e727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dynamight/deformations/optimize_deformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def optimize_deformations(
fits = True
print('consensus gaussian models initialized')
torch.cuda.empty_cache()
gpu_box = decoder_half1.vol_box
except Exception as error:
torch.cuda.empty_cache()
print(
Expand All @@ -360,7 +361,7 @@ def optimize_deformations(
Ivol = Ivol[0, 0]
decoder_half1.vol_box = decoder_half1.vol_box//2
decoder_half2.vol_box = decoder_half2.vol_box//2
gpu_box = decoder_half1.vol_box

decoder_half1.vol_box = decoder_half1.box_size
decoder_half2.vol_box = decoder_half2.box_size
if mask_file:
Expand Down

0 comments on commit 721e727

Please sign in to comment.