speech_mos.pyが出力するCSVにBOMを追加

This commit is contained in:
Serick
2024-02-21 23:45:48 +09:00
parent b693d4aa28
commit c8778e98f1

View File

@@ -99,7 +99,7 @@ for model_file, step, scores in results:
logger.info(f"{model_file}: {scores[-1]}") logger.info(f"{model_file}: {scores[-1]}")
with open( 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: ) as f:
writer = csv.writer(f) writer = csv.writer(f)
writer.writerow(["model_path"] + ["step"] + test_texts + ["mean"]) writer.writerow(["model_path"] + ["step"] + test_texts + ["mean"])