From c8778e98f18d839472bbcc748bd4455885dca6ed Mon Sep 17 00:00:00 2001 From: Serick Date: Wed, 21 Feb 2024 23:45:48 +0900 Subject: [PATCH] =?UTF-8?q?speech=5Fmos.py=E3=81=8C=E5=87=BA=E5=8A=9B?= =?UTF-8?q?=E3=81=99=E3=82=8BCSV=E3=81=ABBOM=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- speech_mos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech_mos.py b/speech_mos.py index 8464223..d69a23a 100644 --- a/speech_mos.py +++ b/speech_mos.py @@ -99,7 +99,7 @@ for model_file, step, scores in results: logger.info(f"{model_file}: {scores[-1]}") with open( - mos_result_dir / f"mos_{model_name}.csv", "w", encoding="utf-8", newline="" + mos_result_dir / f"mos_{model_name}.csv", "w", encoding="utf_8_sig", newline="" ) as f: writer = csv.writer(f) writer.writerow(["model_path"] + ["step"] + test_texts + ["mean"])