mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-04 17:59:19 +08:00
R1732 + W1514
This commit is contained in:
@@ -102,10 +102,8 @@ def main():
|
|||||||
log.info("Dataloader loaded! Now computing stats...")
|
log.info("Dataloader loaded! Now computing stats...")
|
||||||
params = compute_data_statistics(data_loader, cfg["n_feats"])
|
params = compute_data_statistics(data_loader, cfg["n_feats"])
|
||||||
print(params)
|
print(params)
|
||||||
json.dump(
|
with open(output_file, "w", encoding="utf-8") as dumpfile:
|
||||||
params,
|
json.dump(params, dumpfile)
|
||||||
open(output_file, "w"),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user