Update index.html
Browse files- index.html +4 -4
index.html
CHANGED
@@ -55,7 +55,7 @@
|
|
55 |
|
56 |
console.timeEnd("load model");
|
57 |
|
58 |
-
load_time =
|
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(
|
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(
|
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(){
|