Skip to content

Commit

Permalink
restore diagnosis output
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuang43 committed Mar 16, 2024
1 parent 828f0c8 commit e51a5f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samseg/ProbabilisticAtlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit e51a5f9

Please sign in to comment.