speech_mos.pyが出力するCSVにBOMを追加
This commit is contained in:
@@ -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"])
|
||||||
|
|||||||
Reference in New Issue
Block a user