mirror of
https://github.com/pstrueb/piper.git
synced 2026-05-19 20:18:01 +00:00
Add stats
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
import statistics
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
@@ -45,7 +46,12 @@ def main() -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
json.dump(
|
json.dump(
|
||||||
{"load_sec": load_sec, "synthesize_rtf": synthesize_rtf},
|
{
|
||||||
|
"load_sec": load_sec,
|
||||||
|
"rtf_mean": statistics.mean(synthesize_rtf),
|
||||||
|
"rtf_stdev": statistics.stdev(synthesize_rtf),
|
||||||
|
"synthesize_rtf": synthesize_rtf,
|
||||||
|
},
|
||||||
sys.stdout,
|
sys.stdout,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
import statistics
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
@@ -49,7 +50,12 @@ def main() -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
json.dump(
|
json.dump(
|
||||||
{"load_sec": load_sec, "synthesize_rtf": synthesize_rtf},
|
{
|
||||||
|
"load_sec": load_sec,
|
||||||
|
"rtf_mean": statistics.mean(synthesize_rtf),
|
||||||
|
"rtf_stdev": statistics.stdev(synthesize_rtf),
|
||||||
|
"synthesize_rtf": synthesize_rtf,
|
||||||
|
},
|
||||||
sys.stdout,
|
sys.stdout,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user