From e51a5f90138c8852f8d25754bcf835a02137cbb0 Mon Sep 17 00:00:00 2001 From: Yujing Huang Date: Sat, 16 Mar 2024 09:04:26 -0400 Subject: [PATCH] restore diagnosis output --- samseg/ProbabilisticAtlas.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samseg/ProbabilisticAtlas.py b/samseg/ProbabilisticAtlas.py index 33b5448..9e5774d 100644 --- a/samseg/ProbabilisticAtlas.py +++ b/samseg/ProbabilisticAtlas.py @@ -191,10 +191,10 @@ def deformMesh(self, mesh, transform, data, mask, means, variances, mixtureWeigh globalTic = time.perf_counter() minLogLikelihoodTimesDeformationPrior, maximalDeformation = optimizer.step_optimizer_samseg() globalToc = time.perf_counter() - #print("maximalDeformation=%.4f minLogLikelihood=%.4f" % ( - #maximalDeformation, minLogLikelihoodTimesDeformationPrior)) + print("maximalDeformation=%.4f minLogLikelihood=%.4f" % ( + maximalDeformation, minLogLikelihoodTimesDeformationPrior)) historyOfDeformationCost.append(minLogLikelihoodTimesDeformationPrior) - #print( f" Total time spent: {globalToc-globalTic:0.4f} sec" ) + print( f" Total time spent: {globalToc-globalTic:0.4f} sec" ) historyOfMaximalDeformation.append(maximalDeformation) if maximalDeformation == 0: break @@ -325,7 +325,7 @@ def deformMesh(self, mesh, transform, data, mask, means, variances, mixtureWeigh historyOfMaximalDeformation.append(maximalDeformation) globalToc = time.perf_counter() - #print( f" Total time spent: {globalToc-globalTic:0.4f} sec" ) + print( f" Total time spent: {globalToc-globalTic:0.4f} sec" ) if computeHistoryOfDeformationCost: tic = time.perf_counter()