Merge pull request #67 from serick4126/exportcsv_append_sig

speech_mos.pyが出力するCSVにBOMを追加
This commit is contained in:
litagin02
2024-02-22 09:59:05 +09:00
committed by GitHub

View File

@@ -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"])