Skip to content

Commit 21fb163

Browse files
committed
Fix(align_tpm): forgotten trace
1 parent b4759c5 commit 21fb163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nitorch/tools/registration/affine_tpm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def fit_affine_tpm(dat, tpm, affine=None, affine_tpm=None, weights=None,
414414
end = '\n' if verbose >= 2 else '\r'
415415
print(f'({basis_name[:6]}){space} | {n_iter:02d} | {mi.mean():12.6g}', end=end)
416416

417-
if mi.mean() - mi0.mean() < 0: #1e-4:
417+
if mi.mean() - mi0.mean() < 1e-4:
418418
print('converged', mi.mean() - mi0.mean())
419419
break
420420

@@ -442,7 +442,7 @@ def fit_affine_tpm(dat, tpm, affine=None, affine_tpm=None, weights=None,
442442
h.diagonal(0, -1, -2).add_(h.diagonal(0, -1, -2).abs().max() * 1e-5)
443443
delta = lmdiv(h, g.unsqueeze(-1)).squeeze(-1)
444444

445-
plot_registration(dat, mov, f'{basis_name} | {n_iter}')
445+
# plot_registration(dat, mov, f'{basis_name} | {n_iter}')
446446

447447
if verbose == 1:
448448
print('')

0 commit comments

Comments
 (0)