Skip to content

Commit

Permalink
Update optimize_deformations_rigid.py
Browse files Browse the repository at this point in the history
  • Loading branch information
schwabjohannes authored Dec 19, 2024
1 parent 9502ff1 commit 0cc9031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamight/deformations/optimize_deformations_rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ def optimize_deformations_rigid(
pass
epoch_t = time.time() - start_time

if epoch % 1 == 0 or (final > finalization_epochs) or (epoch == n_epochs-1):
if epoch % 5 == 0 or (final > finalization_epochs) or (epoch == n_epochs-1):

with torch.no_grad():
V_h1 = decoder_half1.generate_consensus_volume().cpu()
Expand Down Expand Up @@ -1410,7 +1410,7 @@ def optimize_deformations_rigid(
checkpoint_file = checkpoints_directory / \
f'{epoch:03}.pth'
torch.save(checkpoint, checkpoint_file)
if epoch % 1 == 0 and epoch > 0:
if epoch % 10 == 0 and epoch > 0:
write_reconstruction_script(
output_directory, refinement_star_file, checkpoint_file, gpu_id, decoder_half1.n_bodies)
subprocess.call(output_directory /
Expand Down

0 comments on commit 0cc9031

Please sign in to comment.