Mercurial > hg > orthanc-stone
changeset 2029:0cb8796c2a9b deep-learning
measure time for deep learning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 23 Dec 2022 16:58:13 +0100 |
parents | 84ad648b86ac |
children | a56f7ed0cdf9 |
files | Applications/StoneWebViewer/WebApplication/app.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js Tue Dec 20 08:50:56 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Fri Dec 23 16:58:13 2022 +0100 @@ -606,7 +606,8 @@ virtualSeriesThumbnails: {}, deepLearningReady: false, - deepLearningProgress: 0 // Floating-point number in the range [0..1] + deepLearningProgress: 0, // Floating-point number in the range [0..1] + deepLearningStartTime: null } }, computed: { @@ -1294,6 +1295,7 @@ ApplyDeepLearning: function() { stone.ApplyDeepLearningModel(this.GetActiveCanvas()); + app.deepLearningStartTime = performance.now(); }, ChangeActiveSeries: function(offset) { @@ -1734,4 +1736,5 @@ window.addEventListener('DeepLearningStep', function(args) { app.deepLearningProgress = args.detail.progress; + console.log('Elapsed time: ' + Math.round(performance.now() - app.deepLearningStartTime) + 'ms'); });