Akjava commited on
Commit
0537f85
1 Parent(s): c5889e1

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -4
index.html CHANGED
@@ -55,7 +55,7 @@
55
 
56
  console.timeEnd("load model");
57
 
58
- load_time = load_startTime - performance.now()
59
  loaded_model_name = model_name
60
 
61
  let cmudictReady = loadCmudict(cmudict,'./dictionaries/cmudict-0.7b')
@@ -97,13 +97,13 @@
97
  }
98
  function update_infer_bench1(){
99
 
100
- const text = `${loaded_model_name} load time ${load_time.toFixed(2)} ms`;
101
  document.getElementById('result1').innerText=text
102
  }
103
 
104
  function update_infer_bench2(){
105
- const avg = total_infer_time/count_infer
106
- const text = `Infer Count ${count_infer} avg infer-time ${avg.toFixed(2)} ms`;
107
  document.getElementById('result2').innerText=text
108
  }
109
  function update_range(){
 
55
 
56
  console.timeEnd("load model");
57
 
58
+ load_time = (performance.now() - load_startTime)/1000 //sec
59
  loaded_model_name = model_name
60
 
61
  let cmudictReady = loadCmudict(cmudict,'./dictionaries/cmudict-0.7b')
 
97
  }
98
  function update_infer_bench1(){
99
 
100
+ const text = `${loaded_model_name} load time ${load_time.toFixed(1)} sec`;
101
  document.getElementById('result1').innerText=text
102
  }
103
 
104
  function update_infer_bench2(){
105
+ const avg = (total_infer_time/count_infer)/1000
106
+ const text = `Infer Count ${count_infer} avg infer-time ${avg.toFixed(1)} sec`;
107
  document.getElementById('result2').innerText=text
108
  }
109
  function update_range(){